forked from pool/python-google-auth
Accepting request 717466 from devel:languages:python
- Add patch to build with pytest5: * pytest5.patch OBS-URL: https://build.opensuse.org/request/show/717466 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=7
This commit is contained in:
commit
68af506011
13
pytest5.patch
Normal file
13
pytest5.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: google-auth-1.6.3/tests/test__default.py
|
||||
===================================================================
|
||||
--- google-auth-1.6.3.orig/tests/test__default.py
|
||||
+++ google-auth-1.6.3/tests/test__default.py
|
||||
@@ -92,7 +92,7 @@ def test__load_credentials_from_file_aut
|
||||
|
||||
|
||||
def test__load_credentials_from_file_authorized_user_cloud_sdk():
|
||||
- with pytest.warns(UserWarning, matches='Cloud SDK'):
|
||||
+ with pytest.warns(UserWarning, match='Cloud SDK'):
|
||||
credentials, project_id = _default._load_credentials_from_file(
|
||||
AUTHORIZED_USER_CLOUD_SDK_FILE)
|
||||
assert isinstance(credentials, google.oauth2.credentials.Credentials)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 08:06:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch to build with pytest5:
|
||||
* pytest5.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 15 10:53:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -25,6 +25,7 @@ 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: pytest5.patch
|
||||
BuildRequires: %{python_module Flask}
|
||||
BuildRequires: %{python_module cachetools}
|
||||
BuildRequires: %{python_module cryptography}
|
||||
@ -61,6 +62,7 @@ This library simplifies using Google’s various server-to-server authentication
|
||||
|
||||
%prep
|
||||
%setup -q -n google-auth-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
Loading…
Reference in New Issue
Block a user