Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e223f55be3 | |||
| b3a0deb808 | |||
| 79d1557d23 | |||
| 2859d79c2e | |||
| 6c8abaf85a |
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 18 11:29:45 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 15 15:04:44 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.14
|
||||||
|
* Support for RQ 2.0. Thanks @selwin!
|
||||||
|
- Drop rq-compat-removal.patch (rq-compat not in upstream anymore)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 6 22:44:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Wed Dec 6 22:44:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-rq-scheduler
|
# spec file for package python-rq-scheduler
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,14 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define long_version 0.14.0
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-rq-scheduler
|
Name: python-rq-scheduler
|
||||||
Version: 0.13.1
|
Version: 0.14
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Provides job scheduling capabilities to RQ (Redis Queue)
|
Summary: Provides job scheduling capabilities to RQ (Redis Queue)
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/rq/rq-scheduler
|
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
|
Source: https://github.com/rq/rq-scheduler/archive/refs/tags/v%{version}.tar.gz#/rq-scheduler-%{version}-gh.tar.gz
|
||||||
Patch1: rq-compat-removal.patch
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
@@ -42,7 +43,7 @@ Requires: python-freezegun
|
|||||||
Requires: python-python-dateutil
|
Requires: python-python-dateutil
|
||||||
Requires: python-rq >= 0.13
|
Requires: python-rq >= 0.13
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -51,6 +52,8 @@ Provides job scheduling capabilities to RQ (Redis Queue)
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n rq-scheduler-%{version}
|
%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
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -77,6 +80,6 @@ trap "kill $spid || true" EXIT
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python_alternative %{_bindir}/rqscheduler
|
%python_alternative %{_bindir}/rqscheduler
|
||||||
%{python_sitelib}/rq_scheduler
|
%{python_sitelib}/rq_scheduler
|
||||||
%{python_sitelib}/rq_scheduler-%{version}.dist-info
|
%{python_sitelib}/rq_scheduler-%{long_version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
Index: rq-scheduler-0.13.1/tests/fixtures.py
|
|
||||||
===================================================================
|
|
||||||
--- rq-scheduler-0.13.1.orig/tests/fixtures.py
|
|
||||||
+++ rq-scheduler-0.13.1/tests/fixtures.py
|
|
||||||
@@ -17,7 +17,6 @@ from multiprocessing import Process
|
|
||||||
from redis import Redis
|
|
||||||
from rq import Connection, get_current_job, get_current_connection, Queue
|
|
||||||
from rq.decorators import job
|
|
||||||
-from rq.compat import text_type
|
|
||||||
from rq.worker import HerokuWorker, Worker
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +38,7 @@ async def say_hello_async(name=None):
|
|
||||||
|
|
||||||
def say_hello_unicode(name=None):
|
|
||||||
"""A job with a single argument and a return value."""
|
|
||||||
- return text_type(say_hello(name)) # noqa
|
|
||||||
+ return str(say_hello(name)) # noqa
|
|
||||||
|
|
||||||
|
|
||||||
def do_nothing():
|
|
||||||
Index: rq-scheduler-0.13.1/tests/test_scheduler.py
|
|
||||||
===================================================================
|
|
||||||
--- rq-scheduler-0.13.1.orig/tests/test_scheduler.py
|
|
||||||
+++ rq-scheduler-0.13.1/tests/test_scheduler.py
|
|
||||||
@@ -10,7 +10,6 @@ import freezegun
|
|
||||||
from dateutil.tz import tzlocal
|
|
||||||
from dateutil.tz import UTC
|
|
||||||
from rq import Queue
|
|
||||||
-from rq.compat import as_text
|
|
||||||
from rq.job import Job
|
|
||||||
|
|
||||||
from rq_scheduler import Scheduler
|
|
||||||
@@ -28,7 +27,7 @@ def say_hello(name=None):
|
|
||||||
|
|
||||||
|
|
||||||
def tl(l):
|
|
||||||
- return [as_text(i) for i in l]
|
|
||||||
+ return [str(i) for i in l]
|
|
||||||
|
|
||||||
|
|
||||||
def simple_addition(x, y, z):
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f51dd86d31a196b3246b0f7492445ff07816804b621a4c49c1c293b304cdd6a6
|
|
||||||
size 23549
|
|
||||||
3
rq-scheduler-0.14-gh.tar.gz
Normal file
3
rq-scheduler-0.14-gh.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:71e8ac1d1e202f0f22f766fa3e3e0c593faa8aa09f85f440464a98d805b8bf77
|
||||||
|
size 23117
|
||||||
Reference in New Issue
Block a user