Skip to content

Commit 87be180

Browse files
committed
chore(deps): upgrade dependencies after dropping Python 3.9.
Upgrade runtime and development dependencies to their latest stable releases now that Python 3.9 and PyPy 3.9 are dropped, and replace the legacy PyPy cryptography upper-bound cap with cryptography >= 50.0.2. Also configure asyncio_default_fixture_loop_scope for pytest-asyncio 1.x and fix a redundant self-comparison caught by pylint 4.x in test_tenant_mgt.py.
1 parent 6bafd5a commit 87be180

4 files changed

Lines changed: 26 additions & 25 deletions

File tree

‎integration/test_tenant_mgt.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ def test_update_tenant():
8080
tenant = tenant_mgt.create_tenant(
8181
display_name='py-update-test', allow_password_sign_up=True, enable_email_link_sign_in=True)
8282
try:
83-
tenant = tenant_mgt.update_tenant(
83+
updated_tenant = tenant_mgt.update_tenant(
8484
tenant.tenant_id, display_name='updated-py-tenant', allow_password_sign_up=False,
8585
enable_email_link_sign_in=False)
86-
assert isinstance(tenant, tenant_mgt.Tenant)
87-
assert tenant.tenant_id == tenant.tenant_id
88-
assert tenant.display_name == 'updated-py-tenant'
89-
assert tenant.allow_password_sign_up is False
90-
assert tenant.enable_email_link_sign_in is False
86+
assert isinstance(updated_tenant, tenant_mgt.Tenant)
87+
assert updated_tenant.tenant_id == tenant.tenant_id
88+
assert updated_tenant.display_name == 'updated-py-tenant'
89+
assert updated_tenant.allow_password_sign_up is False
90+
assert updated_tenant.enable_email_link_sign_in is False
9191
finally:
9292
tenant_mgt.delete_tenant(tenant.tenant_id)
9393

‎requirements.txt‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
astroid == 3.3.11
2-
pylint == 3.3.9
3-
pytest >= 8.4.2
4-
pytest-cov >= 2.4.0
1+
astroid == 4.3.4
2+
pylint == 4.1.3
3+
pytest >= 9.2.0
4+
pytest-cov >= 7.1.0
55
pytest-localserver >= 0.10.0
6-
pytest-asyncio >= 0.26.0
7-
pytest-mock >= 3.15.1
6+
pytest-asyncio >= 1.4.1
7+
pytest-mock >= 3.17.0
88
respx == 0.23.1
99

10-
cachecontrol >= 0.14.3
11-
google-api-core[grpc] >= 2.25.1, < 3.0.0dev; platform.python_implementation != 'PyPy'
12-
google-cloud-firestore >= 2.27.0; platform.python_implementation != 'PyPy'
13-
google-cloud-storage >= 3.1.1
14-
pyjwt[crypto] >= 2.12.1
15-
cryptography < 44.0.0; platform.python_implementation == 'PyPy' and python_version < '3.11'
16-
httpx[http2] == 0.28.1
10+
cachecontrol >= 0.14.4
11+
google-api-core[grpc] >= 2.44.0, < 3.0.0dev; platform.python_implementation != 'PyPy'
12+
google-cloud-firestore >= 2.34.1; platform.python_implementation != 'PyPy'
13+
google-cloud-storage >= 3.17.1
14+
pyjwt[crypto] >= 2.15.1
15+
cryptography >= 50.0.2
16+
httpx[http2] == 0.28.1

‎setup.cfg‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[tool:pytest]
22
testpaths = tests
3+
asyncio_default_fixture_loop_scope = function
34
asyncio_default_test_loop_scope = class

‎setup.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
long_description = ('The Firebase Admin Python SDK enables server-side (backend) Python developers '
3838
'to integrate Firebase into their services and applications.')
3939
install_requires = [
40-
'cachecontrol>=0.14.3',
41-
'google-api-core[grpc] >= 2.25.1, < 3.0.0dev; platform.python_implementation != "PyPy"',
42-
'google-cloud-firestore>=2.21.0; platform.python_implementation != "PyPy"',
43-
'google-cloud-storage>=3.1.1',
44-
'pyjwt[crypto] >= 2.10.1',
45-
'cryptography < 44.0.0; platform.python_implementation == "PyPy" and python_version < "3.11"',
40+
'cachecontrol>=0.14.4',
41+
'google-api-core[grpc] >= 2.44.0, < 3.0.0dev; platform.python_implementation != "PyPy"',
42+
'google-cloud-firestore>=2.34.1; platform.python_implementation != "PyPy"',
43+
'google-cloud-storage>=3.17.1',
44+
'pyjwt[crypto] >= 2.15.1',
45+
'cryptography >= 50.0.2',
4646
'httpx[http2] == 0.28.1',
4747
]
4848

0 commit comments

Comments
 (0)