Skip to content

Commit 60d1edd

Browse files
committed
release(v0.3.2): with allow custom ssl certs + help package
1 parent dd1e8e8 commit 60d1edd

13 files changed

Lines changed: 20 additions & 14 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.3.2
4+
5+
### [0.3.2](https://github.com/openfga/python-sdk/compare/v0.3.1...v0.3.2) (2023-12-15)
6+
- feat: allow passing ssl certs to client configuration
7+
- feat: setup openfga_sdk.help for bug info
8+
39
## v0.3.1
410

511
### [0.3.1](https://github.com/openfga/python-sdk/compare/v0.3.0...v0.3.1) (2023-12-01)

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.1
1+
0.3.2

openfga_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
1515
"""
1616

17-
__version__ = "0.3.1"
17+
__version__ = "0.3.2"
1818

1919
from openfga_sdk.client.client import OpenFgaClient
2020
from openfga_sdk.client.configuration import ClientConfiguration

openfga_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from openfga_sdk.exceptions import ApiValueError, ApiException, FgaValidationException, RateLimitExceededError
3535

3636

37-
DEFAULT_USER_AGENT = 'openfga-sdk python/0.3.1'
37+
DEFAULT_USER_AGENT = 'openfga-sdk python/0.3.2'
3838

3939

4040
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def to_debug_report(self):
439439
"OS: {env}\n"\
440440
"Python Version: {pyversion}\n"\
441441
"Version of the API: 0.1\n"\
442-
"SDK Package Version: 0.3.1".\
442+
"SDK Package Version: 0.3.2".\
443443
format(env=sys.platform, pyversion=sys.version)
444444

445445
def get_host_settings(self):

openfga_sdk/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def _obtain_token(self, client):
5454
'grant_type': "client_credentials",
5555
}
5656
headers = urllib3.response.HTTPHeaderDict(
57-
{'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'openfga-sdk (python) 0.3.1'})
57+
{'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'openfga-sdk (python) 0.3.2'})
5858
raw_response = await client.POST(token_url, headers=headers, body=body)
5959
if 200 <= raw_response.status <= 299:
6060
try:

openfga_sdk/sync/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from openfga_sdk.exceptions import ApiValueError, ApiException, FgaValidationException, RateLimitExceededError
3535

3636

37-
DEFAULT_USER_AGENT = 'openfga-sdk python/0.3.1'
37+
DEFAULT_USER_AGENT = 'openfga-sdk python/0.3.2'
3838

3939

4040
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/sync/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _obtain_token(self, client):
5454
'grant_type': "client_credentials",
5555
}
5656
headers = urllib3.response.HTTPHeaderDict(
57-
{'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'openfga-sdk (python) 0.3.1'})
57+
{'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'openfga-sdk (python) 0.3.2'})
5858
raw_response = client.POST(token_url, headers=headers, body=body)
5959
if 200 <= raw_response.status <= 299:
6060
try:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages # noqa: H301
1616

1717
NAME = "openfga-sdk"
18-
VERSION = "0.3.1"
18+
VERSION = "0.3.2"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

test/test_oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def test_get_authentication_obtain_client_credentials(self, mock_request):
8282
self.assertGreaterEqual(client._access_expiry_time,
8383
current_time + timedelta(seconds=int(120)))
8484
expected_header = urllib3.response.HTTPHeaderDict(
85-
{'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'openfga-sdk (python) 0.3.1'})
85+
{'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'openfga-sdk (python) 0.3.2'})
8686
mock_request.assert_called_once_with(
8787
'POST',
8888
'https://www.testme.com/oauth/token',

0 commit comments

Comments
 (0)