mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
CP-1897 Fix versioning issue.
This commit is contained in:
parent
759c32aca5
commit
b12ba886ac
@ -3,4 +3,5 @@ current_version = 1.0.0
|
|||||||
commit = False
|
commit = False
|
||||||
tag = False
|
tag = False
|
||||||
|
|
||||||
|
[bumpversion:file:thousandeyes-sdk-core/src/thousandeyes_sdk/core/__init__.py]
|
||||||
[bumpversion:file:.version]
|
[bumpversion:file:.version]
|
||||||
|
|||||||
@ -18,7 +18,7 @@ where = ["src/"]
|
|||||||
include = ["thousandeyes_sdk.core"]
|
include = ["thousandeyes_sdk.core"]
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.setuptools.dynamic]
|
||||||
version = {file = ".version"}
|
version = {attr = "thousandeyes_sdk.core.__version__"}
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
test = [
|
test = [
|
||||||
|
|||||||
25
thousandeyes-sdk-core/src/thousandeyes_sdk/core/__init__.py
Normal file
25
thousandeyes-sdk-core/src/thousandeyes_sdk/core/__init__.py
Normal 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"
|
||||||
22
thousandeyes-sdk-core/src/thousandeyes_sdk/core/version.py
Normal file
22
thousandeyes-sdk-core/src/thousandeyes_sdk/core/version.py
Normal 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__
|
||||||
Loading…
Reference in New Issue
Block a user