Skip to content

Commit fc6fa95

Browse files
authored
Merge pull request #30 from fireblocks/fireblocks-api-spec/generated/2648
Generated SDK #2648
2 parents 41379bb + 7b8239c commit fc6fa95

File tree

8 files changed

+36
-11
lines changed

8 files changed

+36
-11
lines changed

.github/workflows/create-pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Create Pull Request
2+
3+
on:
4+
push:
5+
branches:
6+
- 'fireblocks-api-spec/generated/*'
7+
8+
jobs:
9+
create-pull-request:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository code
14+
uses: actions/checkout@v4
15+
16+
- name: Create pull request
17+
run: |
18+
gh pr create \
19+
--title "${{ github.event.commits[0].message }}" \
20+
--body "This PR was automatically generated." \
21+
--base master \
22+
--head ${{ github.ref }} \
23+
--reviewer asafs932,zoharsf,YoavBZ
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

fireblocks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.0.2"
18+
__version__ = "1.0.3"
1919

2020
# import apis into sdk package
2121
from fireblocks.api.api_user_api import ApiUserApi

fireblocks/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
self.default_headers[header_name] = header_value
8989
self.cookie = cookie
9090
# Set default User-Agent.
91-
self.user_agent = "OpenAPI-Generator/1.0.2/python"
91+
self.user_agent = "OpenAPI-Generator/1.0.3/python"
9292
self.client_side_validation = configuration.client_side_validation
9393

9494
def __enter__(self):

fireblocks/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def to_debug_report(self):
424424
"OS: {env}\n"
425425
"Python Version: {pyversion}\n"
426426
"Version of the API: 1.6.2\n"
427-
"SDK Package Version: 1.0.2".format(env=sys.platform, pyversion=sys.version)
427+
"SDK Package Version: 1.0.3".format(env=sys.platform, pyversion=sys.version)
428428
)
429429

430430
def get_host_settings(self):

fireblocks/user_agent_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class UserAgentUtil:
1717
@staticmethod
1818
def get_user_agent(is_anonymous_platform: bool, custom_user_agent: str) -> str:
19-
user_agent = "fireblocks/sdk/python/1.0.2"
19+
user_agent = "fireblocks/sdk/python/1.0.3"
2020
if not is_anonymous_platform:
2121
os_type = platform.system()
2222
os_version = platform.release()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fireblocks"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "Fireblocks API"
55
authors = ["Fireblocks <[email protected]>"]
66
license = "MIT License"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "fireblocks"
25-
VERSION = "1.0.2"
25+
VERSION = "1.0.3"
2626
PYTHON_REQUIRES = ">=3.8"
2727
REQUIRES = [
2828
"urllib3 >= 1.25.3, < 2.1.0",
@@ -42,7 +42,7 @@
4242
description="Fireblocks API",
4343
author="Fireblocks",
4444
author_email="[email protected]",
45-
url="https://pypi.org/project/fireblocks",
45+
url="https://github.com/fireblocks/py-sdk/tree/master",
4646
keywords=["Fireblocks", "SDK", "Fireblocks API"],
4747
python_requires=PYTHON_REQUIRES,
4848
install_requires=REQUIRES,

test/fireblocks/test_user_agent_util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def mock_platform(mocker):
2121
mocker.patch('platform.machine', return_value="x86_64")
2222

2323
@pytest.mark.parametrize("is_anonymous_platform, user_agent, expected", [
24-
(False, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.2 (Linux 5.4.0-42-generic; x86_64)"),
25-
(True, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.2"),
26-
(False, None, "fireblocks/sdk/python/1.0.2 (Linux 5.4.0-42-generic; x86_64)"),
27-
(True, None, "fireblocks/sdk/python/1.0.2")])
24+
(False, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.3 (Linux 5.4.0-42-generic; x86_64)"),
25+
(True, "customUserAgent", "customUserAgent fireblocks/sdk/python/1.0.3"),
26+
(False, None, "fireblocks/sdk/python/1.0.3 (Linux 5.4.0-42-generic; x86_64)"),
27+
(True, None, "fireblocks/sdk/python/1.0.3")])
2828
def test_get_user_agent(mock_platform, is_anonymous_platform, user_agent, expected):
2929
# Create an instance of UserAgentUtil
3030
util = UserAgentUtil()

0 commit comments

Comments
 (0)