diff --git a/.gitignore b/.gitignore index 54c13ff..08e3e4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -/rq-1.1.0.tar.gz -/rq-1.2.1.tar.gz -/rq-1.2.2.tar.gz -/rq-1.7.0.tar.gz +/rq-*.tar.gz diff --git a/python-rq.spec b/python-rq.spec index 69fb710..1f563d3 100644 --- a/python-rq.spec +++ b/python-rq.spec @@ -1,16 +1,29 @@ %global srcname rq +%bcond_without tests Name: python-%{srcname} -Version: 1.7.0 +Version: 1.12.0 Release: 1%{?dist} Summary: Simple, lightweight, library for creating background jobs, and processing them -License: BSD -URL: https://github.com/rq/rq -Source: %{pypi_source} +License: BSD-2-Clause +URL: https://python-rq.org +Source: https://github.com/rq/rq/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-click +BuildRequires: python3-devel +BuildRequires: python3-redis +BuildRequires: python3dist(setuptools) +%if %{with tests} +BuildRequires: python3-pytest +BuildRequires: python3-psutil +BuildRequires: redis +%endif +Requires: python3-click +Requires: python3-redis + %global _description %{expand: RQ (Redis Queue) is a simple Python library for queueing jobs and processing them in the background with workers. @@ -22,8 +35,6 @@ It should be integrated in your web stack easily.} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) %description -n python3-%{srcname} %{_description} @@ -31,7 +42,6 @@ Python 3 version. %prep %autosetup -n %{srcname}-%{version} -p1 -rm -vr *.egg-info %build %py3_build @@ -39,6 +49,14 @@ rm -vr *.egg-info %install %py3_install +%check +%if %{with tests} +%{_bindir}/redis-server --bind 127.0.0.1 --port 6379 --daemonize yes & +# no python3-sentry-sdk in EPEL9 +%pytest -v -k 'not test_failure_capture' +%{_libexecdir}/redis-shutdown +%endif + %files -n python3-%{srcname} %license LICENSE %doc README.md @@ -49,6 +67,9 @@ rm -vr *.egg-info %{python3_sitelib}/rq/ %changelog +* Mon Jan 23 2023 Ali Erdinc Koroglu - 1.12.0-1 +- Update to 1.12.0 (RHBZ #2163133 and #2163190) + * Sat Dec 12 2020 Igor Raits - 1.7.0-1 - Update to 1.7.0 diff --git a/sources b/sources index bb13503..0042a4c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rq-1.7.0.tar.gz) = 971aa36d1886e451875e24f21c77a7c9e35be72b4beaae2e8b1d51fe5e39087a06fba0de38f7af10a6f42bc2370620f6b6aaef3fda77f272163bd51a5898577f +SHA512 (rq-1.12.0.tar.gz) = 32d10a96213bd23f21f3dada53771047f9d66a73590a0f1cc0086981f1f9276e0bc9d51b8fd3ba12a140ea71b004c995a82aa6746e1a793374f8fea762602c18