Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-rq for openSUSE:Factory 
checked in at 2022-04-14 17:25:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rq (Old)
 and      /work/SRC/openSUSE:Factory/.python-rq.new.1941 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rq"

Thu Apr 14 17:25:44 2022 rev:9 rq:970091 version:1.10.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rq/python-rq.changes      2022-01-17 
22:35:29.570301222 +0100
+++ /work/SRC/openSUSE:Factory/.python-rq.new.1941/python-rq.changes    
2022-04-14 17:26:22.107326714 +0200
@@ -1,0 +2,5 @@
+Thu Apr 14 08:52:04 UTC 2022 - [email protected]
+
+- do not require python-mock for build
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-rq.spec ++++++
--- /var/tmp/diff_new_pack.hjfUyZ/_old  2022-04-14 17:26:22.487327157 +0200
+++ /var/tmp/diff_new_pack.hjfUyZ/_new  2022-04-14 17:26:22.491327162 +0200
@@ -29,7 +29,6 @@
 URL:            https://github.com/rq/rq
 Source:         
https://github.com/rq/rq/archive/v%{version}/%{mod_name}-%{version}.tar.gz
 BuildRequires:  %{python_module click >= 5.0.0}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module redis >= 3.5.0}
@@ -63,6 +62,11 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
+# https://github.com/rq/rq/issues/1646
+sed -i -e 's:import mock:from unittest import mock:' \
+       -e 's:from mock.mock:from unittest.mock:' \
+       -e 's:from mock import:from unittest.mock import:' \
+       tests/test_*.py
 # test_failure_capture - circular dependency on sentry-sdk
 # test_worker - update-alternatives: only rqworker-%{python_version} is
 #               available, skip test for simplicity

Reply via email to