File python-django-rq.spec of Package python-django-rq
#
# spec file for package python-django-rq
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-django-rq
Version: 3.0
Release: 0
Summary: A Django app providing an async job queue via RQ
License: MIT
URL: https://github.com/rq/django-rq
Source: https://files.pythonhosted.org/packages/source/d/django-rq/django-rq-%{version}.tar.gz
BuildRequires: %{python_module Django >= 4.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module redis >= 3.5.0}
BuildRequires: %{python_module rq >= 1.2}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: redis
Requires: python-Django >= 4.2
Requires: python-redis >= 3.5.0
Requires: python-rq >= 1.2
BuildArch: noarch
%python_subpackages
%description
Django-RQ is a Django app providing an integration with RQ (Redis Queue),
a Redis based Python queuing library. Django-RQ is a simple app that
allows you to configure your queues in Django's settings.py and easily
use them in your project.
%prep
%autosetup -p1 -n django-rq-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONPATH=%{buildroot}%{$python_sitelib}
export DJANGO_SETTINGS_MODULE=django_rq.tests.settings
set +x
/usr/sbin/redis-server &
set -x
export PATH=%{buildroot}%{_bindir}:$PATH
%pytest -v -k 'not (test_job_details or test_jobs)'
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/django_rq
%{python_sitelib}/django_rq-%{version}.dist-info
%changelog