Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-oauth2 for openSUSE:Factory 
checked in at 2022-05-06 19:00:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oauth2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-oauth2.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oauth2"

Fri May  6 19:00:08 2022 rev:6 rq:975405 version:1.9.0.post1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oauth2/python-oauth2.changes      
2019-03-05 12:26:21.332830137 +0100
+++ /work/SRC/openSUSE:Factory/.python-oauth2.new.1538/python-oauth2.changes    
2022-05-06 19:00:38.125441541 +0200
@@ -1,0 +2,8 @@
+Wed May  4 10:34:21 UTC 2022 - pgaj...@suse.com
+
+- do not require python-mock for build
+- added patches
+  fix https://github.com/joestump/python-oauth2/issues/243
+  + python-oauth2-no-mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-oauth2-no-mock.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-oauth2.spec ++++++
--- /var/tmp/diff_new_pack.fSDWYX/_old  2022-05-06 19:00:38.765442239 +0200
+++ /var/tmp/diff_new_pack.fSDWYX/_new  2022-05-06 19:00:38.769442245 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package python-oauth2
+# spec file
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -30,12 +30,13 @@
 Patch0:         oauth2-drop-tests-with-net-access.patch
 Patch1:         hidePythonRequires.patch
 Patch2:         addTestPath.patch
+# https://github.com/joestump/python-oauth2/issues/243
+Patch3:         python-oauth2-no-mock.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 # Test requirements:
 BuildRequires:  %{python_module httplib2}
-BuildRequires:  %{python_module mock}
 BuildArch:      noarch
 Requires:       python-httplib2
 %python_subpackages
@@ -51,6 +52,7 @@
 %patch0
 %patch1
 %patch2
+%patch3 -p1
 
 %build
 %python_build

++++++ python-oauth2-no-mock.patch ++++++
diff -upr oauth2-1.9.0.post1.orig/tests/test_oauth.py 
oauth2-1.9.0.post1/tests/test_oauth.py
--- oauth2-1.9.0.post1.orig/tests/test_oauth.py 2022-05-04 12:28:14.806873881 
+0200
+++ oauth2-1.9.0.post1/tests/test_oauth.py      2022-05-04 12:28:14.814873931 
+0200
@@ -29,7 +29,7 @@ import time
 import unittest
 
 import httplib2
-import mock
+from unittest import mock
 
 import os
 this_path = os.path.dirname(os.path.abspath(__file__))

Reply via email to