1
0

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:
Dominique Leuenberger 2019-07-30 11:04:01 +00:00 committed by Git OBS Bridge
commit 68af506011
3 changed files with 21 additions and 0 deletions

13
pytest5.patch Normal file
View 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)

View File

@ -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>

View File

@ -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 Googles various server-to-server authentication
%prep
%setup -q -n google-auth-%{version}
%patch0 -p1
%build
%python_build