CP-1897 Fix versioning issue.

This commit is contained in:
João Malés 2024-07-04 12:52:20 +01:00
parent 7d7bdeae04
commit 759c32aca5
25 changed files with 23 additions and 69 deletions

View File

@ -3,4 +3,4 @@ current_version = 1.0.0
commit = False
tag = False
[bumpversion:file:thousandeyes-sdk-core/src/thousandeyes_sdk/core/__init__.py]
[bumpversion:file:.version]

1
.version Normal file
View File

@ -0,0 +1 @@
1.0.0

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -18,7 +18,7 @@ where = ["src/"]
include = ["thousandeyes_sdk.core"]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -1,25 +0,0 @@
# Copyright 2024 Cisco Systems, Inc. and its affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
from . import exceptions
from .api_client import ApiClient
from .api_response import ApiResponse
from .configuration import Configuration
from .version import Version
import os.path
__version__ = "1.0.0"

View File

@ -1,22 +0,0 @@
# Copyright 2024 Cisco Systems, Inc. and its affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
import thousandeyes_sdk.core
class Version:
@staticmethod
def get() -> str:
return thousandeyes_sdk.core.__version__

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [

View File

@ -15,7 +15,7 @@ dependencies = [
]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}
version = {file = ".version"}
[project.optional-dependencies]
test = [