2019-08-12 15:05:14 +00:00
|
|
|
#
|
2019-08-12 15:16:47 +00:00
|
|
|
# spec file for package python-rq
|
2019-08-12 15:05:14 +00:00
|
|
|
#
|
2019-08-12 15:16:47 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-08-12 15:05:14 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-12 15:16:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-08-12 15:05:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-08-12 15:16:47 +00:00
|
|
|
%define mod_name rq
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-08-12 15:05:14 +00:00
|
|
|
Name: python-rq
|
2019-08-12 15:16:47 +00:00
|
|
|
Version: 1.1.0
|
2019-08-12 15:05:14 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Easy Job Queues for Python
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2019-08-12 15:16:47 +00:00
|
|
|
URL: https://github.com/rq/rq
|
|
|
|
Source: https://github.com/rq/rq/archive/v%{version}.tar.gz
|
2019-08-12 15:05:14 +00:00
|
|
|
BuildRequires: %{python_module click >= 3.0}
|
2019-08-12 15:16:47 +00:00
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2019-08-12 15:05:14 +00:00
|
|
|
BuildRequires: %{python_module redis >= 3.0.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-08-12 15:16:47 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: psmisc
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-08-12 15:05:14 +00:00
|
|
|
Requires: python-click >= 3.0
|
|
|
|
Requires: python-redis >= 3.0.0
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
RQ (Redis Queue) is a simple Python library for queueing jobs and processing
|
2019-08-24 07:41:09 +00:00
|
|
|
them in the background with workers. It is backed by Redis. It can be
|
|
|
|
integrated into web stacks.
|
2019-08-12 15:05:14 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-08-12 15:16:47 +00:00
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# test_failure_capture - circular dependency on sentry-sdk
|
|
|
|
export PATH="$PATH:%{buildroot}%{_bindir}"
|
|
|
|
%{_sbindir}/redis-server --port 6379 &
|
|
|
|
%pytest -k 'not test_failure_capture'
|
|
|
|
killall redis-server
|
2019-08-12 15:05:14 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-08-12 15:16:47 +00:00
|
|
|
%doc README.md CHANGES.md
|
|
|
|
%license LICENSE
|
2019-08-12 15:05:14 +00:00
|
|
|
%{python_sitelib}/*
|
2019-08-12 15:16:47 +00:00
|
|
|
%python3_only %{_bindir}/rq*
|
2019-08-12 15:05:14 +00:00
|
|
|
|
|
|
|
%changelog
|