8000 chore: Upgraded Google Auth, Cloud Firestore, and Cloud Storage depen… · pony-lab/firebase-admin-python@44ae038 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44ae038

Browse files
chore: Upgraded Google Auth, Cloud Firestore, and Cloud Storage dependencies (firebase#544)
* chore: Upgrade auth, firestore, and storage * remove google-auth dependency
1 parent df47e57 commit 44ae038

File tree

3 files changed

+8
-9
lines changed

3s changed

+8
-9
lines changed

requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ pytest-cov >= 2.4.0
55
pytest-localserver >= 0.4.1
66

77
cachecontrol >= 0.12.6
8-
google-api-core[grpc] >= 1.14.0, < 2.0.0dev; platform.python_implementation != 'PyPy'
8+
google-api-core[grpc] >= 1.22.1, < 2.0.0dev; platform.python_implementation != 'PyPy'
99
google-api-python-client >= 1.7.8
10-
google-auth == 1.18.0 # temporary workaround
11-
google-cloud-firestore >= 1.4.0; platform.python_implementation != 'PyPy'
12-
google-cloud-storage >= 1.18.0
10+
google-cloud-firestore >= 2.1.0; platform.python_implementation != 'PyPy'
11+
google-cloud-storage >= 1.37.1

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
'to integrate Firebase into their services and applications.')
3939
install_requires = [
4040
'cachecontrol>=0.12.6',
41-
'google-api-core[grpc] >= 1.14.0, < 2.0.0dev; platform.python_implementation != "PyPy"',
41+
'google-api-core[grpc] >= 1.22.1, < 2.0.0dev; platform.python_implementation != "PyPy"',
4242
'google-api-python-client >= 1.7.8',
43-
'google-cloud-firestore>=1.4.0; platform.python_implementation != "PyPy"',
44-
'google-cloud-storage>=1.18.0',
43+
'google-cloud-firestore>=2.1.0; platform.python_implementation != "PyPy"',
44+
'google-cloud-storage>=1.37.1',
4545
]
4646

4747
setup(

tests/test_token_gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def test_sign_with_iam(self):
259259
testutils.MockCredential(), name='iam-signer-app', options=options)
260260
try:
261261
signature = base64.b64encode(b'test').decode()
262-
iam_resp = '{{"signature": "{0}"}}'.format(signature)
262+
iam_resp = '{{"signedBlob": "{0}"}}'.format(signature)
263263
_overwrite_iam_request(app, testutils.MockRequest(200, iam_resp))
264264
custom_token = auth.create_custom_token(MOCK_UID, app=app).decode()
265265
assert custom_token.endswith('.' + signature.rstrip('='))
@@ -297,7 +297,7 @@ def test_sign_with_discovered_service_account(self):
297297
# Now invoke the IAM signer.
298298
signature = base64.b64encode(b'test').decode()
299299
request.response = testutils.MockResponse(
300-
200, '{{"signature": "{0}"}}'.format(signature))
300+
200, '{{"signedBlob": "{0}"}}'.format(signature))
301301
custom_token = auth.create_custom_token(MOCK_UID, app=app).decode()
302302
assert custom_token.endswith('.' + signature.rstrip('='))
303303
self._verify_signer(custom_token, 'discovered-service-account')

0 commit comments

Comments
 (0)
0