Skip to content

Commit a00f039

Browse files
authored
release: v0.7.2 (#133)
2 parents bacf16c + 83cc2e5 commit a00f039

14 files changed

+29
-15
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## v0.7.2
4+
5+
### [0.7.2](https://github.com/openfga/python-sdk/compare/v0.7.1...v0.7.2) (2024-09-22)
6+
7+
This release includes improvements to the OpenTelemetry configuration API introduced in the previous releases
8+
9+
- refactor: improve OpenTelemetry configuration (#127)
10+
11+
This release also includes fixes for several bugs identified in previous releases:
12+
13+
- fix: ensure max_parallel_requests is an int value in batch_check (#132)
14+
- fix: inconsistency in 429 handling between sync/async client (#131)
15+
- fix: ensure telemetry is reported when API exceptions are raised (#127)
16+
317
## v0.7.1
418

519
### [0.7.1](https://github.com/openfga/python-sdk/compare/v0.7.0...v0.7.1) (2024-09-16)

example/example1/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ attrs >= 23.1.0
44
frozenlist >= 1.4.1
55
idna >= 3.6
66
multidict >= 6.0.4
7-
openfga-sdk >= 0.7.1
7+
openfga-sdk >= 0.7.2
88
python-dateutil >= 2.8.2
99
urllib3 >= 2.1.0
1010
yarl >= 1.9.4

example/example1/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
NAME = "example1"
1616
VERSION = "0.0.1"
17-
REQUIRES = ["openfga-sdk >= 0.7.1"]
17+
REQUIRES = ["openfga-sdk >= 0.7.2"]
1818

1919
setup(
2020
name=NAME,

openfga_sdk/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
1111
"""
1212

13-
__version__ = "0.7.1"
13+
__version__ = "0.7.2"
1414

1515
from openfga_sdk.api.open_fga_api import OpenFgaApi
1616
from openfga_sdk.api_client import ApiClient

openfga_sdk/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from openfga_sdk.telemetry import Telemetry
3737
from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes
3838

39-
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.1"
39+
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.2"
4040

4141

4242
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def to_debug_report(self):
539539
"OS: {env}\n"
540540
"Python Version: {pyversion}\n"
541541
"Version of the API: 1.x\n"
542-
"SDK Package Version: 0.7.1".format(env=sys.platform, pyversion=sys.version)
542+
"SDK Package Version: 0.7.2".format(env=sys.platform, pyversion=sys.version)
543543
)
544544

545545
def get_host_settings(self):

openfga_sdk/oauth2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def _obtain_token(self, client):
8383
{
8484
"Accept": "application/json",
8585
"Content-Type": "application/x-www-form-urlencoded",
86-
"User-Agent": "openfga-sdk (python) 0.7.1",
86+
"User-Agent": "openfga-sdk (python) 0.7.2",
8787
}
8888
)
8989

openfga_sdk/sync/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from openfga_sdk.telemetry import Telemetry
3636
from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes
3737

38-
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.1"
38+
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.2"
3939

4040

4141
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/sync/oauth2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _obtain_token(self, client):
8383
{
8484
"Accept": "application/json",
8585
"Content-Type": "application/x-www-form-urlencoded",
86-
"User-Agent": "openfga-sdk (python) 0.7.1",
86+
"User-Agent": "openfga-sdk (python) 0.7.2",
8787
}
8888
)
8989

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from setuptools import find_packages, setup
1717

1818
NAME = "openfga-sdk"
19-
VERSION = "0.7.1"
19+
VERSION = "0.7.2"
2020
REQUIRES = []
2121

2222

test/api/open_fga_api_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ async def test_check_api_token(self, mock_request):
15201520
{
15211521
"Accept": "application/json",
15221522
"Content-Type": "application/json",
1523-
"User-Agent": "openfga-sdk python/0.7.1",
1523+
"User-Agent": "openfga-sdk python/0.7.2",
15241524
"Authorization": "Bearer TOKEN1",
15251525
}
15261526
)
@@ -1574,7 +1574,7 @@ async def test_check_custom_header(self, mock_request):
15741574
{
15751575
"Accept": "application/json",
15761576
"Content-Type": "application/json",
1577-
"User-Agent": "openfga-sdk python/0.7.1",
1577+
"User-Agent": "openfga-sdk python/0.7.2",
15781578
"Custom Header": "custom value",
15791579
}
15801580
)

test/oauth2_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def test_get_authentication_obtain_client_credentials(self, mock_request):
8484
{
8585
"Accept": "application/json",
8686
"Content-Type": "application/x-www-form-urlencoded",
87-
"User-Agent": "openfga-sdk (python) 0.7.1",
87+
"User-Agent": "openfga-sdk (python) 0.7.2",
8888
}
8989
)
9090
mock_request.assert_called_once_with(

test/sync/oauth2_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_get_authentication_obtain_client_credentials(self, mock_request):
8484
{
8585
"Accept": "application/json",
8686
"Content-Type": "application/x-www-form-urlencoded",
87-
"User-Agent": "openfga-sdk (python) 0.7.1",
87+
"User-Agent": "openfga-sdk (python) 0.7.2",
8888
}
8989
)
9090
mock_request.assert_called_once_with(

test/sync/open_fga_api_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ async def test_check_api_token(self, mock_request):
15201520
{
15211521
"Accept": "application/json",
15221522
"Content-Type": "application/json",
1523-
"User-Agent": "openfga-sdk python/0.7.1",
1523+
"User-Agent": "openfga-sdk python/0.7.2",
15241524
"Authorization": "Bearer TOKEN1",
15251525
}
15261526
)
@@ -1574,7 +1574,7 @@ async def test_check_custom_header(self, mock_request):
15741574
{
15751575
"Accept": "application/json",
15761576
"Content-Type": "application/json",
1577-
"User-Agent": "openfga-sdk python/0.7.1",
1577+
"User-Agent": "openfga-sdk python/0.7.2",
15781578
"Custom Header": "custom value",
15791579
}
15801580
)

0 commit comments

Comments
 (0)