forked from pool/python-rq
Accepting request 970091 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/970091 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rq?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 14 08:52:04 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- do not require python-mock for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 17 18:35:11 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
|
@@ -29,7 +29,6 @@ Group: Development/Languages/Python
|
||||
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 @@ integrated into web stacks.
|
||||
%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
|
||||
|
Reference in New Issue
Block a user