forked from pool/python-google-auth
Accepting request 685333 from devel:languages:python
- 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/request/show/685333 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=6
This commit is contained in:
commit
738edbd5a2
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9ca363facbf2622d9ba828017536ccca2e0f58bd15e659b52f312172f8815530
|
||||
size 76150
|
3
google-auth-1.6.3.tar.gz
Normal file
3
google-auth-1.6.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0f7c6a64927d34c1a474da92cfc59e552a5d3b940d3266606c6a28b72888b9e4
|
||||
size 80899
|
@ -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:
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 15 10:53:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user