diff --git a/fireblocks/__init__.py b/fireblocks/__init__.py index 875687e..d1fdfe4 100644 --- a/fireblocks/__init__.py +++ b/fireblocks/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "1.0.2" # import apis into sdk package from fireblocks.api.api_user_api import ApiUserApi diff --git a/fireblocks/api_client.py b/fireblocks/api_client.py index 1d2d695..fb9ff8f 100644 --- a/fireblocks/api_client.py +++ b/fireblocks/api_client.py @@ -88,7 +88,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.0.0/python" + self.user_agent = "OpenAPI-Generator/1.0.2/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/fireblocks/configuration.py b/fireblocks/configuration.py index c23200a..bcd53e3 100644 --- a/fireblocks/configuration.py +++ b/fireblocks/configuration.py @@ -424,7 +424,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.6.2\n" - "SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 1.0.2".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/fireblocks/user_agent_util.py b/fireblocks/user_agent_util.py index e0a91f5..2fe2148 100644 --- a/fireblocks/user_agent_util.py +++ b/fireblocks/user_agent_util.py @@ -16,7 +16,7 @@ class UserAgentUtil: @staticmethod def get_user_agent(is_anonymous_platform: bool, custom_user_agent: str) -> str: - user_agent = "fireblocks/sdk/python/1.0.0" + user_agent = "fireblocks/sdk/python/1.0.2" if not is_anonymous_platform: os_type = platform.system() os_version = platform.release() diff --git a/pyproject.toml b/pyproject.toml index 0649cbe..8a7aea4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fireblocks" -version = "1.0.0" +version = "1.0.2" description = "Fireblocks API" authors = ["Fireblocks "] license = "MIT License" diff --git a/setup.py b/setup.py index 9a99879..3e57223 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "fireblocks" -VERSION = "1.0.0" +VERSION = "1.0.2" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/test/fireblocks/test_user_agent_util.py b/test/fireblocks/test_user_agent_util.py index 7ff8ccc..c5bb08a 100644 --- a/test/fireblocks/test_user_agent_util.py +++ b/test/fireblocks/test_user_agent_util.py @@ -21,10 +21,10 @@ def mock_platform(mocker): mocker.patch('platform.machine', return_value="x86_64") @pytest.mark.parametrize("is_anonymous_platform, user_agent, expected", [ - (False, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.0 (Linux 5.4.0-42-generic; x86_64)"), - (True, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.0"), - (False, None, "fireblocks/sdk/python/1.0.0 (Linux 5.4.0-42-generic; x86_64)"), - (True, None, "fireblocks/sdk/python/1.0.0")]) + (False, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.2 (Linux 5.4.0-42-generic; x86_64)"), + (True, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.2"), + (False, None, "fireblocks/sdk/python/1.0.2 (Linux 5.4.0-42-generic; x86_64)"), + (True, None, "fireblocks/sdk/python/1.0.2")]) def test_get_user_agent(mock_platform, is_anonymous_platform, user_agent, expected): # Create an instance of UserAgentUtil util = UserAgentUtil()