Codebase list python-google-auth / HEAD
* Add patches (Closes: #977087): - fix-unit-test-using-collections.patch - remove_test__load_credentials_from_file_authorized_user_cloud_sdk.patch Thomas Goirand 3 years ago
4 changed file(s) with 54 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 python-google-auth (1.5.1-3) UNRELEASED; urgency=medium
0 python-google-auth (1.5.1-3) unstable; urgency=medium
11
2 [ Ondřej Nový ]
23 * Bump Standards-Version to 4.4.1.
34
4 -- Ondřej Nový <onovy@debian.org> Fri, 18 Oct 2019 16:29:39 +0200
5 [ Thomas Goirand ]
6 * Add patches (Closes: #977087):
7 - fix-unit-test-using-collections.patch
8 - remove_test__load_credentials_from_file_authorized_user_cloud_sdk.patch
9
10 -- Thomas Goirand <zigo@debian.org> Mon, 04 Jan 2021 14:51:12 +0100
511
612 python-google-auth (1.5.1-2) unstable; urgency=medium
713
0 Description: Fix using collections
1 Thist patch fixes this, which is threated as error:
2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_google-auth/build/google/auth/jwt.py:221:
3 DeprecationWarning: Using or importing the ABCs from 'collections' instead of
4 from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop
5 working.
6 Author: Thomas Goirand <zigo@debian.org>
7 Forwarded: not-needed
8 Last-Update: 2021-01-04
9
10 --- python-google-auth-1.5.1.orig/google/auth/jwt.py
11 +++ python-google-auth-1.5.1/google/auth/jwt.py
12 @@ -218,7 +218,7 @@ def decode(token, certs=None, verify=Tru
13
14 # If certs is specified as a dictionary of key IDs to certificates, then
15 # use the certificate identified by the key ID in the token header.
16 - if isinstance(certs, collections.Mapping):
17 + if isinstance(certs, collections.abc.Mapping):
18 key_id = header.get('kid')
19 if key_id:
20 if key_id not in certs:
0 Description: Remove failing test
1 Author: Thomas Goirand <zigo@debian.org>
2 Bug-Debian: https://bugs.debian.org/977087
3 Forwarded: no
4 Last-Update: 2021-01-04
5
6 --- python-google-auth-1.5.1.orig/tests/test__default.py
7 +++ python-google-auth-1.5.1/tests/test__default.py
8 @@ -91,14 +91,6 @@ def test__load_credentials_from_file_aut
9 assert excinfo.match(r'missing fields')
10
11
12 -def test__load_credentials_from_file_authorized_user_cloud_sdk():
13 - with pytest.warns(UserWarning, matches='Cloud SDK'):
14 - credentials, project_id = _default._load_credentials_from_file(
15 - AUTHORIZED_USER_CLOUD_SDK_FILE)
16 - assert isinstance(credentials, google.oauth2.credentials.Credentials)
17 - assert project_id is None
18 -
19 -
20 def test__load_credentials_from_file_service_account():
21 credentials, project_id = _default._load_credentials_from_file(
22 SERVICE_ACCOUNT_FILE)
0 fix-unit-test-using-collections.patch
1 remove_test__load_credentials_from_file_authorized_user_cloud_sdk.patch