CP-1897 Fix versioning issue.

This commit is contained in:
João Malés 2024-07-04 12:58:17 +01:00 committed by João Malés
parent 759c32aca5
commit b12ba886ac
4 changed files with 49 additions and 1 deletions

View File

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

View File

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

View File

@ -0,0 +1,25 @@
# 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

@ -0,0 +1,22 @@
# 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__