Skip to content

Commit

Permalink
release: v0.6.1 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Jul 31, 2024
2 parents 862750b + 10a4d32 commit e82545e
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## v0.6.1

### [0.6.1](https://github.com/openfga/python-sdk/compare/v0.6.0...v0.6.1) (2024-07-31)
- feat: add support for specifying consistency when evaluating or reading (#129)
Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag
`enable-consistency-params` enabled. See the [v1.5.7 release notes](https://github.com/openfga/openfga/releases/tag/v1.5.7) for details.

- feat: add OpenTelemetry metrics reporting

## v0.6.0

### [0.6.0](https://github.com/openfga/python-sdk/compare/v0.5.0...v0.6.0) (2024-06-28)
Expand Down
2 changes: 1 addition & 1 deletion example/example1/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

NAME = "example1"
VERSION = "0.0.1"
REQUIRES = ["openfga-sdk >= 0.6.0"]
REQUIRES = ["openfga-sdk >= 0.6.1"]

setup(
name=NAME,
Expand Down
2 changes: 1 addition & 1 deletion openfga_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
"""

__version__ = "0.6.0"
__version__ = "0.6.1"

from openfga_sdk.api.open_fga_api import OpenFgaApi
from openfga_sdk.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion openfga_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0"
DEFAULT_USER_AGENT = "openfga-sdk python/0.6.1"


def random_time(loop_count, min_wait_in_ms):
Expand Down
2 changes: 1 addition & 1 deletion openfga_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 1.x\n"
"SDK Package Version: 0.6.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 0.6.1".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion openfga_sdk/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0",
"User-Agent": "openfga-sdk (python) 0.6.1",
}
)

Expand Down
2 changes: 1 addition & 1 deletion openfga_sdk/sync/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0"
DEFAULT_USER_AGENT = "openfga-sdk python/0.6.1"


def random_time(loop_count, min_wait_in_ms):
Expand Down
2 changes: 1 addition & 1 deletion openfga_sdk/sync/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0",
"User-Agent": "openfga-sdk (python) 0.6.1",
}
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from setuptools import find_packages, setup

NAME = "openfga-sdk"
VERSION = "0.6.0"
VERSION = "0.6.1"
REQUIRES = []


Expand Down
4 changes: 2 additions & 2 deletions test/api/open_fga_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ async def test_check_api_token(self, mock_request):
{
"Accept": "application/json",
"Content-Type": "application/json",
"User-Agent": "openfga-sdk python/0.6.0",
"User-Agent": "openfga-sdk python/0.6.1",
"Authorization": "Bearer TOKEN1",
}
)
Expand Down Expand Up @@ -1574,7 +1574,7 @@ async def test_check_custom_header(self, mock_request):
{
"Accept": "application/json",
"Content-Type": "application/json",
"User-Agent": "openfga-sdk python/0.6.0",
"User-Agent": "openfga-sdk python/0.6.1",
"Custom Header": "custom value",
}
)
Expand Down
2 changes: 1 addition & 1 deletion test/oauth2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0",
"User-Agent": "openfga-sdk (python) 0.6.1",
}
)
mock_request.assert_called_once_with(
Expand Down
2 changes: 1 addition & 1 deletion test/sync/oauth2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0",
"User-Agent": "openfga-sdk (python) 0.6.1",
}
)
mock_request.assert_called_once_with(
Expand Down
4 changes: 2 additions & 2 deletions test/sync/open_fga_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ async def test_check_api_token(self, mock_request):
{
"Accept": "application/json",
"Content-Type": "application/json",
"User-Agent": "openfga-sdk python/0.6.0",
"User-Agent": "openfga-sdk python/0.6.1",
"Authorization": "Bearer TOKEN1",
}
)
Expand Down Expand Up @@ -1574,7 +1574,7 @@ async def test_check_custom_header(self, mock_request):
{
"Accept": "application/json",
"Content-Type": "application/json",
"User-Agent": "openfga-sdk python/0.6.0",
"User-Agent": "openfga-sdk python/0.6.1",
"Custom Header": "custom value",
}
)
Expand Down

0 comments on commit e82545e

Please sign in to comment.