CP-2184 change versioning for python SDK (#18)

* CP-2184 change versioning for python SDK

* CP-2184 use single version
This commit is contained in:
Bruno Marques 2024-06-07 12:42:40 +01:00 committed by GitHub
parent f079bff20b
commit 5ed40a2ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View File

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

View File

@ -13,6 +13,10 @@ dependencies = [
"typing-extensions >=4.7.1",
]
[tool.setuptools.packages.find]
where = ["src/"]
include = ["thousandeyes_sdk.core"]
[tool.setuptools.dynamic]
version = {attr = "thousandeyes_sdk.core.__version__"}

View File

@ -6,4 +6,4 @@ from .version import Version
import os.path
__version__ = Version.get()
__version__ = "1.0.0"

View File

@ -1,6 +1,6 @@
import os.path
import thousandeyes_sdk.core
class Version:
@staticmethod
def get() -> str:
return "1.0.0"
return thousandeyes_sdk.core.__version__