From 2572bd365ba2e5c43156c0cee04c4f57cefaf723 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Wed, 26 Mar 2025 09:41:19 -0500 Subject: [PATCH] release: v0.9.3 --- CHANGELOG.md | 8 ++++++-- VERSION.txt | 2 +- example/example1/requirements.txt | 3 +-- example/example1/setup.py | 2 +- openfga_sdk/__init__.py | 2 +- openfga_sdk/api_client.py | 2 +- openfga_sdk/configuration.py | 2 +- openfga_sdk/oauth2.py | 2 +- openfga_sdk/sync/api_client.py | 2 +- openfga_sdk/sync/oauth2.py | 2 +- setup.py | 2 +- test/api/open_fga_api_test.py | 4 ++-- test/oauth2_test.py | 2 +- test/sync/oauth2_test.py | 2 +- test/sync/open_fga_api_test.py | 4 ++-- 15 files changed, 22 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9a44c92..9ab88585 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,14 @@ ## [Unreleased](https://github.com/openfga/python-sdk/compare/v0.9.2...HEAD) +### [0.9.3](https://github.com/openfga/python-sdk/compare/v0.9.2...v0.9.3) (2025-03-26) + +- fix: urllib3 compatibility < v2 (#179) + ### [0.9.2](https://github.com/openfga/python-sdk/compare/v0.9.1...v0.9.2) (2025-03-25) -- fix(telemetry): fixes for telemetry attributes and metrics tracking -- fix: REST client should not close after `stream` request +- fix(telemetry): fixes for telemetry attributes and metrics tracking (#177) +- fix: REST client should not close after `stream` request (#172) ## v0.9.1 diff --git a/VERSION.txt b/VERSION.txt index 2003b639..965065db 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.9.2 +0.9.3 diff --git a/example/example1/requirements.txt b/example/example1/requirements.txt index 03e1fdc4..be190055 100644 --- a/example/example1/requirements.txt +++ b/example/example1/requirements.txt @@ -4,9 +4,8 @@ attrs >= 23.1.0 frozenlist >= 1.4.1 idna >= 3.6 multidict >= 6.0.4 -openfga-sdk >= 0.9.2 +openfga-sdk >= 0.9.3 python-dateutil >= 2.8.2 urllib3 >= 2.1.0 yarl >= 1.9.4 python-dotenv >= 1, <2 - diff --git a/example/example1/setup.py b/example/example1/setup.py index de4ef05e..b4b7b4c4 100644 --- a/example/example1/setup.py +++ b/example/example1/setup.py @@ -15,7 +15,7 @@ NAME = "example1" VERSION = "0.0.1" -REQUIRES = ["openfga-sdk >= 0.9.2"] +REQUIRES = ["openfga-sdk >= 0.9.3"] setup( name=NAME, diff --git a/openfga_sdk/__init__.py b/openfga_sdk/__init__.py index 5c47fb57..7b577e0f 100644 --- a/openfga_sdk/__init__.py +++ b/openfga_sdk/__init__.py @@ -10,7 +10,7 @@ NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT. """ -__version__ = "0.9.2" +__version__ = "0.9.3" from openfga_sdk.api.open_fga_api import OpenFgaApi from openfga_sdk.api_client import ApiClient diff --git a/openfga_sdk/api_client.py b/openfga_sdk/api_client.py index 1a9d24ca..b68d2c54 100644 --- a/openfga_sdk/api_client.py +++ b/openfga_sdk/api_client.py @@ -39,7 +39,7 @@ from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes -DEFAULT_USER_AGENT = "openfga-sdk python/0.9.2" +DEFAULT_USER_AGENT = "openfga-sdk python/0.9.3" def random_time(loop_count, min_wait_in_ms): diff --git a/openfga_sdk/configuration.py b/openfga_sdk/configuration.py index 81c4e6e2..e308dbac 100644 --- a/openfga_sdk/configuration.py +++ b/openfga_sdk/configuration.py @@ -517,7 +517,7 @@ def to_debug_report(self): f"OS: {sys.platform}\n" f"Python Version: {sys.version}\n" "Version of the API: 1.x\n" - "SDK Package Version: 0.9.1" + "SDK Package Version: 0.9.3" ) def get_host_settings(self): diff --git a/openfga_sdk/oauth2.py b/openfga_sdk/oauth2.py index a6271489..6a7bff80 100644 --- a/openfga_sdk/oauth2.py +++ b/openfga_sdk/oauth2.py @@ -83,7 +83,7 @@ async def _obtain_token(self, client): { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "openfga-sdk (python) 0.9.2", + "User-Agent": "openfga-sdk (python) 0.9.3", } ) diff --git a/openfga_sdk/sync/api_client.py b/openfga_sdk/sync/api_client.py index 9ae34f65..8333e950 100644 --- a/openfga_sdk/sync/api_client.py +++ b/openfga_sdk/sync/api_client.py @@ -38,7 +38,7 @@ from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes -DEFAULT_USER_AGENT = "openfga-sdk python/0.9.2" +DEFAULT_USER_AGENT = "openfga-sdk python/0.9.3" def random_time(loop_count, min_wait_in_ms) -> float: diff --git a/openfga_sdk/sync/oauth2.py b/openfga_sdk/sync/oauth2.py index 1b62e830..3858770f 100644 --- a/openfga_sdk/sync/oauth2.py +++ b/openfga_sdk/sync/oauth2.py @@ -83,7 +83,7 @@ def _obtain_token(self, client): { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "openfga-sdk (python) 0.9.2", + "User-Agent": "openfga-sdk (python) 0.9.3", } ) diff --git a/setup.py b/setup.py index 305ecf47..6c996b48 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ NAME = "openfga-sdk" -VERSION = "0.9.2" +VERSION = "0.9.3" REQUIRES = [] diff --git a/test/api/open_fga_api_test.py b/test/api/open_fga_api_test.py index dc474dc2..2114deee 100644 --- a/test/api/open_fga_api_test.py +++ b/test/api/open_fga_api_test.py @@ -1547,7 +1547,7 @@ async def test_check_api_token(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.2", + "User-Agent": "openfga-sdk python/0.9.3", "Authorization": "Bearer TOKEN1", } ) @@ -1601,7 +1601,7 @@ async def test_check_custom_header(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.2", + "User-Agent": "openfga-sdk python/0.9.3", "Custom Header": "custom value", } ) diff --git a/test/oauth2_test.py b/test/oauth2_test.py index e820f829..535b964d 100644 --- a/test/oauth2_test.py +++ b/test/oauth2_test.py @@ -84,7 +84,7 @@ async def test_get_authentication_obtain_client_credentials(self, mock_request): { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "openfga-sdk (python) 0.9.2", + "User-Agent": "openfga-sdk (python) 0.9.3", } ) mock_request.assert_called_once_with( diff --git a/test/sync/oauth2_test.py b/test/sync/oauth2_test.py index 8f9bf2aa..dd6ed8f2 100644 --- a/test/sync/oauth2_test.py +++ b/test/sync/oauth2_test.py @@ -84,7 +84,7 @@ def test_get_authentication_obtain_client_credentials(self, mock_request): { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "openfga-sdk (python) 0.9.2", + "User-Agent": "openfga-sdk (python) 0.9.3", } ) mock_request.assert_called_once_with( diff --git a/test/sync/open_fga_api_test.py b/test/sync/open_fga_api_test.py index 0827b09d..292e24c7 100644 --- a/test/sync/open_fga_api_test.py +++ b/test/sync/open_fga_api_test.py @@ -1547,7 +1547,7 @@ async def test_check_api_token(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.2", + "User-Agent": "openfga-sdk python/0.9.3", "Authorization": "Bearer TOKEN1", } ) @@ -1601,7 +1601,7 @@ async def test_check_custom_header(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.2", + "User-Agent": "openfga-sdk python/0.9.3", "Custom Header": "custom value", } )