Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-google-auth-oauthlib for
openSUSE:Factory checked in at 2022-06-10 15:57:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-auth-oauthlib (Old)
and /work/SRC/openSUSE:Factory/.python-google-auth-oauthlib.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-auth-oauthlib"
Fri Jun 10 15:57:36 2022 rev:8 rq:981537 version:0.5.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-auth-oauthlib/python-google-auth-oauthlib.changes
2022-04-13 21:07:08.660687409 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-auth-oauthlib.new.1548/python-google-auth-oauthlib.changes
2022-06-10 15:57:56.760850527 +0200
@@ -1,0 +2,8 @@
+Wed Jun 8 11:56:35 UTC 2022 - [email protected]
+
+- do not require python-mock for build
+- added patches
+ fix
https://github.com/googleapis/google-auth-library-python-oauthlib/issues/207
+ + python-google-auth-oauthlib-no-mock.patch
+
+-------------------------------------------------------------------
New:
----
python-google-auth-oauthlib-no-mock.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-auth-oauthlib.spec ++++++
--- /var/tmp/diff_new_pack.XOdbEh/_old 2022-06-10 15:57:57.276851153 +0200
+++ /var/tmp/diff_new_pack.XOdbEh/_new 2022-06-10 15:57:57.280851157 +0200
@@ -25,6 +25,8 @@
License: Apache-2.0
URL:
https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib
Source:
https://files.pythonhosted.org/packages/source/g/google-auth-oauthlib/google-auth-oauthlib-%{version}.tar.gz
+# https://github.com/googleapis/google-auth-library-python-oauthlib/issues/207
+Patch0: python-google-auth-oauthlib-no-mock.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -38,7 +40,6 @@
# SECTION test requirements
BuildRequires: %{python_module click >= 6.0.0}
BuildRequires: %{python_module google-auth >= 1.0.0}
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests-oauthlib >= 0.7.0}
BuildRequires: %{python_module six}
@@ -56,6 +57,7 @@
%prep
%setup -q -n google-auth-oauthlib-%{version}
+%patch0 -p1
rm -rf tests/__pycache__/
rm -rf tests/*.pyc
++++++ python-google-auth-oauthlib-no-mock.patch ++++++
diff -upr google-auth-oauthlib-0.5.1.orig/tests/unit/test_flow.py
google-auth-oauthlib-0.5.1/tests/unit/test_flow.py
--- google-auth-oauthlib-0.5.1.orig/tests/unit/test_flow.py 2022-06-08
13:49:08.899236362 +0200
+++ google-auth-oauthlib-0.5.1/tests/unit/test_flow.py 2022-06-08
13:49:08.903236386 +0200
@@ -21,7 +21,7 @@ import re
import random
import socket
-import mock
+from unittest import mock
import pytest
import requests
import urllib
diff -upr google-auth-oauthlib-0.5.1.orig/tests/unit/test_helpers.py
google-auth-oauthlib-0.5.1/tests/unit/test_helpers.py
--- google-auth-oauthlib-0.5.1.orig/tests/unit/test_helpers.py 2022-06-08
13:49:08.899236362 +0200
+++ google-auth-oauthlib-0.5.1/tests/unit/test_helpers.py 2022-06-08
13:49:08.903236386 +0200
@@ -16,7 +16,7 @@ import datetime
import json
import os
-import mock
+from unittest import mock
import pytest
from google_auth_oauthlib import helpers
diff -upr google-auth-oauthlib-0.5.1.orig/tests/unit/test_interactive.py
google-auth-oauthlib-0.5.1/tests/unit/test_interactive.py
--- google-auth-oauthlib-0.5.1.orig/tests/unit/test_interactive.py
2022-06-08 13:49:08.899236362 +0200
+++ google-auth-oauthlib-0.5.1/tests/unit/test_interactive.py 2022-06-08
13:49:08.903236386 +0200
@@ -14,7 +14,7 @@
import socket
-import mock
+from unittest import mock
import pytest
diff -upr google-auth-oauthlib-0.5.1.orig/tests/unit/test_tool.py
google-auth-oauthlib-0.5.1/tests/unit/test_tool.py
--- google-auth-oauthlib-0.5.1.orig/tests/unit/test_tool.py 2022-06-08
13:49:08.899236362 +0200
+++ google-auth-oauthlib-0.5.1/tests/unit/test_tool.py 2022-06-08
13:49:08.903236386 +0200
@@ -19,7 +19,7 @@ import tempfile
import click.testing
import google.oauth2.credentials
-import mock
+from unittest import mock
import pytest
import google_auth_oauthlib.flow