Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-requests-mock for
openSUSE:Factory checked in at 2022-07-29 16:46:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests-mock (Old)
and /work/SRC/openSUSE:Factory/.python-requests-mock.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requests-mock"
Fri Jul 29 16:46:55 2022 rev:18 rq:990666 version:1.9.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-requests-mock/python-requests-mock.changes
2021-06-11 22:30:26.466105989 +0200
+++
/work/SRC/openSUSE:Factory/.python-requests-mock.new.1533/python-requests-mock.changes
2022-07-29 16:46:58.842499541 +0200
@@ -1,0 +2,6 @@
+Fri Jul 22 11:15:27 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Add patch remove-mock.patch:
+ * Use unittest.mock if available.
+
+-------------------------------------------------------------------
New:
----
remove-mock.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-requests-mock.spec ++++++
--- /var/tmp/diff_new_pack.tg5oPS/_old 2022-07-29 16:46:59.474501298 +0200
+++ /var/tmp/diff_new_pack.tg5oPS/_new 2022-07-29 16:46:59.478501308 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-requests-mock
#
-# Copyright (c) 2021 SUSE LLC
+# 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
@@ -22,11 +22,10 @@
Release: 0
Summary: Module to mock out responses from the requests package
License: Apache-2.0
-Group: Development/Languages/Python
URL: https://github.com/jamielennox/requests-mock
Source:
https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
+Patch0: remove-mock.patch
BuildRequires: %{python_module fixtures}
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module purl}
BuildRequires: %{python_module purl}
@@ -55,7 +54,7 @@
You should checkout the docs for more information.
%prep
-%setup -q -n requests-mock-%{version}
+%autosetup -p1 -n requests-mock-%{version}
%build
%python_build
++++++ remove-mock.patch ++++++
Index: requests-mock-1.9.3/tests/test_mocker.py
===================================================================
--- requests-mock-1.9.3.orig/tests/test_mocker.py
+++ requests-mock-1.9.3/tests/test_mocker.py
@@ -12,7 +12,10 @@
import pickle
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
import requests
import requests_mock