mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
CP-2184 add bumpversion (#8)
This commit is contained in:
parent
ad2ff796aa
commit
4025dc7126
6
.bumpversion.cfg
Normal file
6
.bumpversion.cfg
Normal file
@ -0,0 +1,6 @@
|
||||
[bumpversion]
|
||||
current_version = 1.0.0
|
||||
commit = False
|
||||
tag = False
|
||||
|
||||
[bumpversion:glob:*/src/thousandeyes_sdk/client/version.py]
|
||||
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "thousandeyes-sdk-client"
|
||||
version = "1.0.0"
|
||||
dynamic = ["version"]
|
||||
authors = [
|
||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||
]
|
||||
@ -13,6 +13,9 @@ dependencies = [
|
||||
"typing-extensions >=4.7.1",
|
||||
]
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = "thousandeyes_sdk.client.__version__"}
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = [
|
||||
"pytest~=7.1.3",
|
||||
|
||||
@ -2,3 +2,8 @@ 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__ = Version.get()
|
||||
|
||||
@ -67,8 +67,6 @@ class ApiClient:
|
||||
if header_name is not None:
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'ThousandEyesSDK-Python/1.0.0'
|
||||
self.client_side_validation = configuration.client_side_validation
|
||||
|
||||
def __enter__(self):
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
import os.path
|
||||
|
||||
class Version:
|
||||
@staticmethod
|
||||
def get() -> str:
|
||||
return "1.0.0"
|
||||
Loading…
Reference in New Issue
Block a user