forked from pool/python-rq
Accepting request 807237 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807237 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
1a6a928915
commit
aad04e8f50
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 19 09:27:47 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 19 04:21:53 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
Thu Mar 19 04:21:53 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -36,6 +36,8 @@ BuildRequires: psmisc
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-click >= 3.0
|
Requires: python-click >= 3.0
|
||||||
Requires: python-redis >= 3.0.0
|
Requires: python-redis >= 3.0.0
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -51,20 +53,37 @@ integrated into web stacks.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/rq
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/rqinfo
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/rqworker
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# test_failure_capture - circular dependency on sentry-sdk
|
# test_failure_capture - circular dependency on sentry-sdk
|
||||||
|
# test_worker - update-alternatives: only rqworker-%{python_version} is
|
||||||
|
# available, skip test for simplicity
|
||||||
export PATH="$PATH:%{buildroot}%{_bindir}"
|
export PATH="$PATH:%{buildroot}%{_bindir}"
|
||||||
%{_sbindir}/redis-server --port 6379 &
|
%{_sbindir}/redis-server --port 6379 &
|
||||||
%pytest -k 'not test_failure_capture'
|
%pytest -k 'not (test_failure_capture or test_worker)'
|
||||||
killall redis-server
|
killall redis-server
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative rq
|
||||||
|
%python_install_alternative rqinfo
|
||||||
|
%python_install_alternative rqworker
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative rq
|
||||||
|
%python_uninstall_alternative rqinfo
|
||||||
|
%python_uninstall_alternative rqworker
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md CHANGES.md
|
%doc README.md CHANGES.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/rq*
|
%python_alternative %{_bindir}/rq
|
||||||
|
%python_alternative %{_bindir}/rqinfo
|
||||||
|
%python_alternative %{_bindir}/rqworker
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user