Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python
python-rq-scheduler
python-rq-scheduler.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-rq-scheduler.spec of Package python-rq-scheduler
# # spec file for package python-rq-scheduler # # 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/ # %define long_version 0.14.0 Name: python-rq-scheduler Version: 0.14 Release: 0 Summary: Provides job scheduling capabilities to RQ (Redis Queue) License: MIT URL: https://github.com/rq/rq-scheduler Source: https://github.com/rq/rq-scheduler/archive/refs/tags/v%{version}.tar.gz#/rq-scheduler-%{version}-gh.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module crontab >= 0.23.0} BuildRequires: %{python_module freezegun} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module rq >= 0.13} BuildRequires: redis # /SECTION BuildRequires: fdupes Requires: python-crontab >= 0.23.0 Requires: python-freezegun Requires: python-python-dateutil Requires: python-rq >= 0.13 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch %python_subpackages %description Provides job scheduling capabilities to RQ (Redis Queue) %prep %autosetup -p1 -n rq-scheduler-%{version} sed -E -i "1{s|^#\!\s*/usr/bin/env python$|#\!%{_bindir}/python3|}" rq_scheduler/scripts/rqscheduler.py sed -E -i "1{s|^#\!\s*/usr/bin/env python$|#\!%{_bindir}/python3|}" run_tests.py %build %pyproject_wheel %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/rqscheduler %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %{_sbindir}/redis-server --port 6379 --save "" & spid="$!" trap "kill $spid || true" EXIT %pytest -k "not TestScheduler" %post %python_install_alternative rqscheduler %postun %python_uninstall_alternative rqscheduler %files %{python_files} %doc AUTHORS.rst README.rst %license LICENSE.txt %python_alternative %{_bindir}/rqscheduler %{python_sitelib}/rq_scheduler %{python_sitelib}/rq_scheduler-%{long_version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor