diff --git a/0001-Correct-update_job-to-raise-with-job-id.patch b/0001-Correct-update_job-to-raise-with-job-id.patch deleted file mode 100644 index fb95844..0000000 --- a/0001-Correct-update_job-to-raise-with-job-id.patch +++ /dev/null @@ -1,22 +0,0 @@ -From faef2bd7017f4414510b075fe71d6b43f8f2fdfc Mon Sep 17 00:00:00 2001 -From: Ugrend -Date: Fri, 14 Dec 2018 09:23:25 +1100 -Subject: [PATCH] Correct update_job to raise with job id - ---- - apscheduler/jobstores/sqlalchemy.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/apscheduler/jobstores/sqlalchemy.py b/apscheduler/jobstores/sqlalchemy.py -index beb27fb..fecbd83 100644 ---- a/apscheduler/jobstores/sqlalchemy.py -+++ b/apscheduler/jobstores/sqlalchemy.py -@@ -106,7 +106,7 @@ def update_job(self, job): - }).where(self.jobs_t.c.id == job.id) - result = self.engine.execute(update) - if result.rowcount == 0: -- raise JobLookupError(id) -+ raise JobLookupError(job.id) - - def remove_job(self, job_id): - delete = self.jobs_t.delete().where(self.jobs_t.c.id == job_id) diff --git a/APScheduler-3.5.3.tar.gz b/APScheduler-3.5.3.tar.gz deleted file mode 100644 index 13e0700..0000000 --- a/APScheduler-3.5.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6599bc78901ee7e9be85cbd073d9cc155c42d2bc867c5cde4d4d1cc339ebfbeb -size 95527 diff --git a/APScheduler-3.6.0.tar.gz b/APScheduler-3.6.0.tar.gz new file mode 100644 index 0000000..19cbea9 --- /dev/null +++ b/APScheduler-3.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f56b888fdc9dc57dd18d79c124b5093a01e29144be84e3e99130600eea34260 +size 97112 diff --git a/fix-tests.patch b/fix-tests.patch deleted file mode 100644 index de010e3..0000000 --- a/fix-tests.patch +++ /dev/null @@ -1,40 +0,0 @@ -From: Antonio Larrosa " - - def test_repr(self, trigger): -- assert repr(trigger) == ("") -+ assert (repr(trigger) == ("") or -+ repr(trigger) == ("")) -+ - - def test_str(self, trigger): - assert str(trigger) == "interval[0:00:01]" -Index: APScheduler-3.5.3/tests/test_schedulers.py -=================================================================== ---- APScheduler-3.5.3.orig/tests/test_schedulers.py -+++ APScheduler-3.5.3/tests/test_schedulers.py -@@ -729,7 +729,9 @@ Jobstore other: - - def test_create_trigger_bad_plugin_type(self, scheduler): - scheduler._trigger_classes = {} -- scheduler._trigger_plugins = {'dummy': MagicMock(return_value=object)} -+ mock = MagicMock() -+ mock.load = MagicMock(return_value=object) -+ scheduler._trigger_plugins = {'dummy': mock} - exc = pytest.raises(TypeError, scheduler._create_trigger, 'dummy', {}) - assert str(exc.value) == 'The trigger entry point does not point to a trigger class' - diff --git a/python-APScheduler.changes b/python-APScheduler.changes index 104a998..620af7e 100644 --- a/python-APScheduler.changes +++ b/python-APScheduler.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Mar 19 14:30:17 UTC 2019 - Tomáš Chvátal + +- Update to 3.6.0: + * Adapted RedisJobStore to v3.0 of the redis library + * Adapted RethinkDBJobStore to v2.4 of the rethink library + * Fixed DeprecationWarnings about collections.abc on Python 3.7 (PR by Roman Levin) +- Remove merged patches: + * fix-tests.patch + * 0001-Correct-update_job-to-raise-with-job-id.patch + ------------------------------------------------------------------- Sun Feb 3 16:13:03 UTC 2019 - Antonio Larrosa diff --git a/python-APScheduler.spec b/python-APScheduler.spec index de4bbe0..a475c88 100644 --- a/python-APScheduler.spec +++ b/python-APScheduler.spec @@ -18,17 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-APScheduler -Version: 3.5.3 +Version: 3.6.0 Release: 0 Summary: In-process task scheduler with Cron-like capabilities License: MIT Group: Development/Languages/Python -URL: http://pypi.python.org/pypi/APScheduler/ +URL: https://github.com/agronholm/apscheduler Source: https://files.pythonhosted.org/packages/source/A/APScheduler/APScheduler-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-tests.patch -- Fix python 3.7 incompatibilities -Patch0: fix-tests.patch -# PATCH-FIX-UPSTREAM 0001-Correct-update_job-to-raise-with-job-id.patch -Patch1: 0001-Correct-update_job-to-raise-with-job-id.patch BuildRequires: %{python_module SQLAlchemy >= 0.8} BuildRequires: %{python_module Twisted} BuildRequires: %{python_module gevent} @@ -88,8 +84,6 @@ APscheduler provides multiple job stores. %prep %setup -q -n APScheduler-%{version} -%patch0 -p1 -%patch1 -p1 # we don't want the tweaked pytest config options rm setup.cfg