From c2063aa1dbd51e9c8c1f36f58c19ea80af785216 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Thu, 23 Jan 2025 14:02:56 -0600 Subject: [PATCH] release: v0.9.1 --- CHANGELOG.md | 11 +++++++++-- VERSION.txt | 2 +- example/example1/requirements.txt | 2 +- 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, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4594fe4..23939f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog -## [Unreleased](https://github.com/openfga/python-sdk/compare/v0.9.0...HEAD) +## [Unreleased](https://github.com/openfga/python-sdk/compare/v0.9.1...HEAD) + +## v0.9.1 + +### [0.9.1](https://github.com/openfga/python-sdk/compare/v0.9.0...v0.9.1) (2025-01-23) + +- feat: add `/streamed-list-objects` endpoint support (#163) +- feat: add `contextual_tuples` support for `/expand` endpoint requests (#164) ## v0.9.0 @@ -69,7 +76,7 @@ Please note that if you use third-party OpenTelemetry tooling to visualize the a ### [0.7.0](https://github.com/openfga/python-sdk/compare/v0.6.1...v0.7.0) (2024-08-30) - feat: enhancements to OpenTelemetry support (#120) - + Note this introduces some breaking changes to our metrics: 1. `fga-client.request.method` is now in TitleCase to match the naming conventions in the Protos, e.g. `Check`, `ListObjects`, etc.. 2. Due to possible high costs for attributes with high cardinality, we are no longer including the following attributes by default: diff --git a/VERSION.txt b/VERSION.txt index ac39a10..f374f66 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.9.0 +0.9.1 diff --git a/example/example1/requirements.txt b/example/example1/requirements.txt index ba25f4e..1bec09a 100644 --- a/example/example1/requirements.txt +++ b/example/example1/requirements.txt @@ -4,7 +4,7 @@ attrs >= 23.1.0 frozenlist >= 1.4.1 idna >= 3.6 multidict >= 6.0.4 -openfga-sdk >= 0.9.0 +openfga-sdk >= 0.9.1 python-dateutil >= 2.8.2 urllib3 >= 2.1.0 yarl >= 1.9.4 diff --git a/example/example1/setup.py b/example/example1/setup.py index 9ec4f5b..aba37d3 100644 --- a/example/example1/setup.py +++ b/example/example1/setup.py @@ -14,7 +14,7 @@ NAME = "example1" VERSION = "0.0.1" -REQUIRES = ["openfga-sdk >= 0.9.0"] +REQUIRES = ["openfga-sdk >= 0.9.1"] setup( name=NAME, diff --git a/openfga_sdk/__init__.py b/openfga_sdk/__init__.py index 0c4b396..c9d0b75 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.0" +__version__ = "0.9.1" 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 841d87e..00d19ee 100644 --- a/openfga_sdk/api_client.py +++ b/openfga_sdk/api_client.py @@ -36,7 +36,7 @@ from openfga_sdk.telemetry import Telemetry from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes -DEFAULT_USER_AGENT = "openfga-sdk python/0.9.0" +DEFAULT_USER_AGENT = "openfga-sdk python/0.9.1" def random_time(loop_count, min_wait_in_ms): diff --git a/openfga_sdk/configuration.py b/openfga_sdk/configuration.py index 9bfa253..4be1370 100644 --- a/openfga_sdk/configuration.py +++ b/openfga_sdk/configuration.py @@ -515,7 +515,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.x\n" - "SDK Package Version: 0.9.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 0.9.1".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/openfga_sdk/oauth2.py b/openfga_sdk/oauth2.py index 5f46c76..e463e61 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.0", + "User-Agent": "openfga-sdk (python) 0.9.1", } ) diff --git a/openfga_sdk/sync/api_client.py b/openfga_sdk/sync/api_client.py index 51a898b..fa63e3a 100644 --- a/openfga_sdk/sync/api_client.py +++ b/openfga_sdk/sync/api_client.py @@ -35,7 +35,7 @@ from openfga_sdk.telemetry import Telemetry from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes -DEFAULT_USER_AGENT = "openfga-sdk python/0.9.0" +DEFAULT_USER_AGENT = "openfga-sdk python/0.9.1" def random_time(loop_count, min_wait_in_ms): diff --git a/openfga_sdk/sync/oauth2.py b/openfga_sdk/sync/oauth2.py index a666b05..5b10cda 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.0", + "User-Agent": "openfga-sdk (python) 0.9.1", } ) diff --git a/setup.py b/setup.py index 57e4def..76dcf66 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import find_packages, setup NAME = "openfga-sdk" -VERSION = "0.9.0" +VERSION = "0.9.1" REQUIRES = [] diff --git a/test/api/open_fga_api_test.py b/test/api/open_fga_api_test.py index 10a766d..a593d96 100644 --- a/test/api/open_fga_api_test.py +++ b/test/api/open_fga_api_test.py @@ -1544,7 +1544,7 @@ async def test_check_api_token(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.0", + "User-Agent": "openfga-sdk python/0.9.1", "Authorization": "Bearer TOKEN1", } ) @@ -1598,7 +1598,7 @@ async def test_check_custom_header(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.0", + "User-Agent": "openfga-sdk python/0.9.1", "Custom Header": "custom value", } ) diff --git a/test/oauth2_test.py b/test/oauth2_test.py index 7f50ce3..b90265a 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.0", + "User-Agent": "openfga-sdk (python) 0.9.1", } ) mock_request.assert_called_once_with( diff --git a/test/sync/oauth2_test.py b/test/sync/oauth2_test.py index f5d81f0..01bdb7b 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.0", + "User-Agent": "openfga-sdk (python) 0.9.1", } ) 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 57ba736..4b1be94 100644 --- a/test/sync/open_fga_api_test.py +++ b/test/sync/open_fga_api_test.py @@ -1544,7 +1544,7 @@ async def test_check_api_token(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.0", + "User-Agent": "openfga-sdk python/0.9.1", "Authorization": "Bearer TOKEN1", } ) @@ -1598,7 +1598,7 @@ async def test_check_custom_header(self, mock_request): { "Accept": "application/json", "Content-Type": "application/json", - "User-Agent": "openfga-sdk python/0.9.0", + "User-Agent": "openfga-sdk python/0.9.1", "Custom Header": "custom value", } )