SHA256
14
0
forked from pool/python-rq
Files
python-rq/python-rq.spec
Dirk Mueller a7e97adc9c - Update to 2.4.1
* `Worker` will now automatically choose `TimerDeathPenalty` if
    `UnixSignalDeathPenalty` is not available. Thanks @selwin!
  * Introduced `CREATED` `Job` status for jobs that are not enqueued
    not deferred. Thanks @selwin!
  * `Worker` can now import `Job` and `Queue` classes from string.
    Thanks @selwin!
  * Fixed a bug in `Group.cleanup()`. Thanks @dixoncrews-gdl!
  * Logging improvements and code cleanups. Thanks @selwin, @SpecLad!
- from version 2.4.0
  * Added `rq cron` CLI command. Thanks @selwin!
  * Various tests, typing improvements and cleanups. Thanks @SpecLad!
  * When a job is canceled, you can now optionally clean it from
    dependencies using `job.cancel(remove_from_dependencies=True)`.
    Thanks @Marishka17!
  * RQ now requires Python >= 3.9. Thanks @Jankovn and @selwin!
- from version 2.3.3
  * `WorkerPool` now accepts `queue_class` argument. Thanks @amonsh1!
  * Disallow `redis-py=6.0.0`. Thanks @selwin and @terencehonles!
  * Minor typing improvements. Thanks @SpecLad!
- from version 2.3.2
  * Don't log job description when `log_job_description` is set to False.
    Thanks @danilopeixoto!
  * Fixes an issue where `pubsub_thread` may die in the background.
    Thanks @ankush!
- from version 2.3.1
  * Fixes an issue running RQ on Windows. Thanks @selwin!
- from version 2.3.0
  * Added the feature to repeat jobs. Thanks @selwin!
  * Officially support Valkey. Thanks @selwin!

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq?expand=0&rev=33
2025-07-23 10:53:23 +00:00

112 lines
3.0 KiB
RPMSpec

#
# spec file for package python-rq
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define mod_name rq
%{?sle15_python_module_pythons}
Name: python-rq%{psuffix}
Version: 2.4.1
Release: 0
Summary: Easy Job Queues for Python
License: Apache-2.0
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 hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module redis >= 3.5.0}
BuildRequires: fdupes
BuildRequires: psmisc
BuildRequires: python-rpm-macros
BuildRequires: redis
Requires: python-click >= 5.0.0
Requires: python-redis >= 3.5.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module %{mod_name} = %{version}}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sentry-sdk}
%endif
%python_subpackages
%description
RQ (Redis Queue) is a simple Python library for queueing jobs and processing
them in the background with workers. It is backed by Redis. It can be
integrated into web stacks.
%prep
%autosetup -p1 -n %{mod_name}-%{version}
%if !%{with test}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/rq
%python_clone -a %{buildroot}%{_bindir}/rqinfo
%python_clone -a %{buildroot}%{_bindir}/rqworker
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
export PATH="$PATH:%{buildroot}%{_bindir}"
%{_sbindir}/redis-server --port 6379 &
%pytest
killall redis-server
%endif
%if !%{with test}
%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}
%doc README.md CHANGES.md
%license LICENSE
%{python_sitelib}/rq
%{python_sitelib}/rq-%{version}*-info
%python_alternative %{_bindir}/rq
%python_alternative %{_bindir}/rqinfo
%python_alternative %{_bindir}/rqworker
%endif
%changelog