Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.0.2 #25

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fireblocks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fireblocks/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion fireblocks/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion fireblocks/user_agent_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fireblocks"
version = "1.0.0"
version = "1.0.2"
description = "Fireblocks API"
authors = ["Fireblocks <[email protected]>"]
license = "MIT License"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions test/fireblocks/test_user_agent_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading