From 3596303ac47c711cc0b862e96da827327edd6e4a97effc22e39c9877794b124d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Mar 2019 11:33:48 +0000 Subject: [PATCH] - Update to 1.6.3: * follow rfc 7515 : strip padding from JWS segments #324 (#324) * Add retry to _metadata.ping() (#323) * Announce deprecation of Python 2.7 (#311) * Link all the PRs in CHANGELOG (#307) * Automatically refresh impersonated credentials (#304) * Add google.auth.impersonated_credentials (#299) * Enable static type checking with pytype (#298) * Make classifiers in setup.py an array. (#280) - Drop oauth-no-appengine.patch should not be needed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=12 --- google-auth-1.5.1.tar.gz | 3 --- google-auth-1.6.3.tar.gz | 3 +++ oauth-no-appengine.patch | 43 -------------------------------------- python-google-auth.changes | 14 +++++++++++++ python-google-auth.spec | 8 +++---- 5 files changed, 20 insertions(+), 51 deletions(-) delete mode 100644 google-auth-1.5.1.tar.gz create mode 100644 google-auth-1.6.3.tar.gz delete mode 100644 oauth-no-appengine.patch diff --git a/google-auth-1.5.1.tar.gz b/google-auth-1.5.1.tar.gz deleted file mode 100644 index 8473859..0000000 --- a/google-auth-1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ca363facbf2622d9ba828017536ccca2e0f58bd15e659b52f312172f8815530 -size 76150 diff --git a/google-auth-1.6.3.tar.gz b/google-auth-1.6.3.tar.gz new file mode 100644 index 0000000..3691557 --- /dev/null +++ b/google-auth-1.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f7c6a64927d34c1a474da92cfc59e552a5d3b940d3266606c6a28b72888b9e4 +size 80899 diff --git a/oauth-no-appengine.patch b/oauth-no-appengine.patch deleted file mode 100644 index df01fca..0000000 --- a/oauth-no-appengine.patch +++ /dev/null @@ -1,43 +0,0 @@ -Index: google-auth-1.4.1/tests/test__oauth2client.py -=================================================================== ---- google-auth-1.4.1.orig/tests/test__oauth2client.py -+++ google-auth-1.4.1/tests/test__oauth2client.py -@@ -93,25 +93,6 @@ def mock_oauth2client_gae_imports(mock_n - mock_non_existent_module('webapp2') - - --@mock.patch('google.auth.app_engine.app_identity') --def test__convert_appengine_app_assertion_credentials( -- app_identity, mock_oauth2client_gae_imports): -- -- import oauth2client.contrib.appengine -- -- service_account_id = 'service_account_id' -- old_credentials = oauth2client.contrib.appengine.AppAssertionCredentials( -- scope='one two', service_account_id=service_account_id) -- -- new_credentials = ( -- _oauth2client._convert_appengine_app_assertion_credentials( -- old_credentials)) -- -- assert new_credentials.scopes == ['one', 'two'] -- assert (new_credentials._service_account_id == -- old_credentials.service_account_id) -- -- - class FakeCredentials(object): - pass - -@@ -143,12 +124,6 @@ def reset__oauth2client_module(): - reload_module(_oauth2client) - - --def test_import_has_app_engine( -- mock_oauth2client_gae_imports, reset__oauth2client_module): -- reload_module(_oauth2client) -- assert _oauth2client._HAS_APPENGINE -- -- - def test_import_without_oauth2client(monkeypatch, reset__oauth2client_module): - monkeypatch.setitem(sys.modules, 'oauth2client', None) - with pytest.raises(ImportError) as excinfo: diff --git a/python-google-auth.changes b/python-google-auth.changes index 22b2035..449cb8d 100644 --- a/python-google-auth.changes +++ b/python-google-auth.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Mar 15 10:53:23 UTC 2019 - Tomáš Chvátal + +- Update to 1.6.3: + * follow rfc 7515 : strip padding from JWS segments #324 (#324) + * Add retry to _metadata.ping() (#323) + * Announce deprecation of Python 2.7 (#311) + * Link all the PRs in CHANGELOG (#307) + * Automatically refresh impersonated credentials (#304) + * Add google.auth.impersonated_credentials (#299) + * Enable static type checking with pytype (#298) + * Make classifiers in setup.py an array. (#280) +- Drop oauth-no-appengine.patch should not be needed + ------------------------------------------------------------------- Tue Dec 4 12:48:35 UTC 2018 - Matej Cepl diff --git a/python-google-auth.spec b/python-google-auth.spec index e67ae83..e973110 100644 --- a/python-google-auth.spec +++ b/python-google-auth.spec @@ -1,7 +1,7 @@ # # spec file for package python-google-auth # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,14 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-google-auth -Version: 1.5.1 +Version: 1.6.3 Release: 0 Summary: Google Authentication Library License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/GoogleCloudPlatform/google-auth-library-python Source: https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-%{version}.tar.gz -Patch0: oauth-no-appengine.patch BuildRequires: %{python_module Flask} BuildRequires: %{python_module cachetools} BuildRequires: %{python_module cryptography} @@ -62,7 +61,6 @@ This library simplifies using Google’s various server-to-server authentication %prep %setup -q -n google-auth-%{version} -%patch0 -p1 %build %python_build @@ -72,7 +70,7 @@ This library simplifies using Google’s various server-to-server authentication %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand py.test-%{$python_bin_suffix} +%pytest %files %{python_files} %license LICENSE