forked from pool/python-rq
- Update to 1.11.1 - queue.enqueue_many() now supports on_success and on on_failure arguments. - You can now pass enqueue_at_front to Dependency() objects to put dependent jobs at the front when they are enqueued. - Fixed a bug where workers may wrongly acquire scheduler locks. - Jobs should not be enqueued if any one of it's dependencies is canceled. - Fixed a bug when handling jobs that have been stopped. - Fixed a bug in handling Redis connections that don't allow SETNAME command. - Update to 1.11.0 - This will be the last RQ version that supports Python 3.5. - Allow jobs to be enqueued even when their dependencies fail via Dependency(allow_failure=True). - When stopped jobs are deleted, they should also be removed from FailedJobRegistry. - job.requeue() now supports at_front() argument. - Added ssl support for sentinel connections. - SimpleWorker now works better on Windows. - Added on_failure and on_success arguments to @job decorator. - Fixed a bug in dependency handling. - Minor fixes and optimizations - Remove https://github.com/rq/rq/issues/1646 items in spec file. - Remove -k 'not (test_failure_capture or test_worker)' from pytest. OBS-URL: https://build.opensuse.org/request/show/1040398 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq?expand=0&rev=19
90 lines
2.6 KiB
RPMSpec
90 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-rq
|
|
#
|
|
# Copyright (c) 2022 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/
|
|
#
|
|
|
|
|
|
%define mod_name rq
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
|
|
Name: python-rq
|
|
Version: 1.11.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 psutil}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module redis >= 3.5.0}
|
|
BuildRequires: %{python_module sentry-sdk}
|
|
BuildRequires: %{python_module setuptools}
|
|
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
|
|
%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
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_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}
|
|
|
|
%check
|
|
export PATH="$PATH:%{buildroot}%{_bindir}"
|
|
%{_sbindir}/redis-server --port 6379 &
|
|
%pytest
|
|
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}
|
|
%doc README.md CHANGES.md
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
%python_alternative %{_bindir}/rq
|
|
%python_alternative %{_bindir}/rqinfo
|
|
%python_alternative %{_bindir}/rqworker
|
|
|
|
%changelog
|