Skip to content

Commit

Permalink
chore(python-sdk): dependency updates (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored Nov 5, 2024
2 parents d2af985 + 9d94ff1 commit 7b799e7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.10"
cache: "pip"
Expand All @@ -98,7 +98,7 @@ jobs:
python setup.py sdist bdist_wheel

- name: Publish package
uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3
uses: pypa/gh-action-pypi-publish@fb13cb306901256ace3dab689990e13a5550ffaa # v1.11.0

create-release:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions config/clients/python/template/test-requirements.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

mock >= 5.1.0, < 6
autoflake==2.3.1
black==24.8.0
black==24.10.0
flake8 >= 7.0.0, < 8
griffe >= 0.41.2, < 2
isort==5.13.2
pytest-cov >= 5, < 6
pyupgrade==3.17.0
pytest-cov >= 5, < 7
pyupgrade==3.19.0
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ class TestOpenFgaClient(IsolatedAsyncioTestCase):
post_params=[],
body={
"authorization_model_id": "01GXSA8YR785C4FYS3C0RTG7B1",
"type": "document",
"type": "document",
"relation": "reader",
"user": "user:81684243-9356-4421-8fbf-a4f8d36aa31b",
"consistency": "MINIMIZE_LATENCY",
Expand Down Expand Up @@ -1939,6 +1939,7 @@ class TestOpenFgaClient(IsolatedAsyncioTestCase):

# First, mock the response
mock_request.side_effect = mock_check_requests

configuration = self.configuration
configuration.store_id = store_id
{{#asyncio}}async {{/asyncio}}with OpenFgaClient(configuration) as api_client:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{>partial_header}}

from unittest import IsolatedAsyncioTestCase
import unittest

import {{packageName}}{{^asyncio}} as openfga_sdk{{/asyncio}}

Expand Down Expand Up @@ -133,7 +132,7 @@ class TestCredentials(IsolatedAsyncioTestCase):
credential.validate_credentials_config()


class TestCredentialsIssuer(unittest.TestCase):
class TestCredentialsIssuer(IsolatedAsyncioTestCase):
def setUp(self):
# Setup a basic configuration that can be modified per test case
self.configuration = CredentialConfiguration(api_issuer="https://example.com")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ class TestOpenFgaClient(IsolatedAsyncioTestCase):
body={
"tuple_key": {
"object": "document:2021-budget",
"relation": "reader",
"relation": "reader",
"user": "user:81684243-9356-4421-8fbf-a4f8d36aa31b"
},
"page_size": 50,
Expand Down Expand Up @@ -1947,6 +1947,7 @@ class TestOpenFgaClient(IsolatedAsyncioTestCase):

# First, mock the response
mock_request.side_effect = mock_check_requests

configuration = self.configuration
configuration.store_id = store_id
with OpenFgaClient(configuration) as api_client:
Expand Down

0 comments on commit 7b799e7

Please sign in to comment.