From 27cd7b10bc32381554c319a82af4e99d90df45a16c1ab5cf7709ac865538293d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 9 Sep 2021 11:42:33 +0000 Subject: [PATCH] Accepting request 917521 from home:pgajdos:python - version update to 1.1.0 1.1.0 (2021-04-09) ++++++++++++++++++ - Added @repeat() decorator. See #148. Thanks @rhagenaars! - Added execute .until(). See #195. Thanks @fredthomsen! - Added job retrieval filtered by tags using get_jobs('tag'). See #419. Thanks @skenvy! - Added type annotations. See #427. Thanks @martinthoma! - Bugfix: str() of job when there is no __name__. See #430. Thanks @biggerfisch! - Improved error messages. See #280, #439. Thanks @connorskees and @sosolidkk! - Improved logging. See #193. Thanks @zcking! - Documentation improvements and fix typos. See #424, #435, #436, #453, #437, #448. Thanks @ebllg! 1.0.0 (2021-01-20) ++++++++++++++++++ Depending on your configuration, the following bugfixes might change schedule's behaviour: - Fix: idle_seconds crashes when no jobs are scheduled. See #401. Thanks @yoonghm! - Fix: day.at('HH:MM:SS') where HMS=now+10s doesn't run today. See #331. Thanks @qmorek! - Fix: hour.at('MM:SS'), the seconds are set to 00. See #290. Thanks @eladbi! - Fix: Long-running jobs skip a day when they finish in the next day #404. Thanks @4379711! Other changes: - Dropped Python 2.7 and 3.5 support, added 3.8 and 3.9 support. See #409 - Fix RecursionError when the job is passed to the do function as an arg. See #190. Thanks @connorskees! - Fix DeprecationWarning of 'collections'. See #296. Thanks @gaguirregabiria! - Replaced Travis with Github Actions for automated testing - Revamp and extend documentation. See #395 - Improved tests. Thanks @connorskees and @Jamim! - Changed log messages to DEBUG level. Thanks @aisk! - added patches fix https://github.com/dbader/schedule/issues/484 + python-schedule-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/917521 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-schedule?expand=0&rev=10 --- python-schedule-no-mock.patch | 17 +++++++++++++++++ python-schedule.changes | 33 +++++++++++++++++++++++++++++++++ python-schedule.spec | 15 +++++++-------- schedule-0.6.0.tar.gz | 3 --- schedule-1.1.0.tar.gz | 3 +++ 5 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 python-schedule-no-mock.patch delete mode 100644 schedule-0.6.0.tar.gz create mode 100644 schedule-1.1.0.tar.gz diff --git a/python-schedule-no-mock.patch b/python-schedule-no-mock.patch new file mode 100644 index 0000000..41c5b15 --- /dev/null +++ b/python-schedule-no-mock.patch @@ -0,0 +1,17 @@ +Index: schedule-1.1.0/test_schedule.py +=================================================================== +--- schedule-1.1.0.orig/test_schedule.py 2021-03-07 11:49:24.000000000 +0100 ++++ schedule-1.1.0/test_schedule.py 2021-09-08 10:48:44.066906764 +0200 +@@ -1,8 +1,11 @@ + """Unit tests for schedule.py""" + import datetime + import functools +-import mock + import unittest ++try: ++ import unittest.mock as mock ++except ImportError: ++ import mock + + # Silence "missing docstring", "method could be a function", + # "class already defined", and "too many public methods" messages: diff --git a/python-schedule.changes b/python-schedule.changes index 61bbba0..2a9fa8a 100644 --- a/python-schedule.changes +++ b/python-schedule.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Wed Sep 8 08:54:38 UTC 2021 - pgajdos@suse.com + +- version update to 1.1.0 + 1.1.0 (2021-04-09) + ++++++++++++++++++ + - Added @repeat() decorator. See #148. Thanks @rhagenaars! + - Added execute .until(). See #195. Thanks @fredthomsen! + - Added job retrieval filtered by tags using get_jobs('tag'). See #419. Thanks @skenvy! + - Added type annotations. See #427. Thanks @martinthoma! + - Bugfix: str() of job when there is no __name__. See #430. Thanks @biggerfisch! + - Improved error messages. See #280, #439. Thanks @connorskees and @sosolidkk! + - Improved logging. See #193. Thanks @zcking! + - Documentation improvements and fix typos. See #424, #435, #436, #453, #437, #448. Thanks @ebllg! + 1.0.0 (2021-01-20) + ++++++++++++++++++ + Depending on your configuration, the following bugfixes might change schedule's behaviour: + - Fix: idle_seconds crashes when no jobs are scheduled. See #401. Thanks @yoonghm! + - Fix: day.at('HH:MM:SS') where HMS=now+10s doesn't run today. See #331. Thanks @qmorek! + - Fix: hour.at('MM:SS'), the seconds are set to 00. See #290. Thanks @eladbi! + - Fix: Long-running jobs skip a day when they finish in the next day #404. Thanks @4379711! + Other changes: + - Dropped Python 2.7 and 3.5 support, added 3.8 and 3.9 support. See #409 + - Fix RecursionError when the job is passed to the do function as an arg. See #190. Thanks @connorskees! + - Fix DeprecationWarning of 'collections'. See #296. Thanks @gaguirregabiria! + - Replaced Travis with Github Actions for automated testing + - Revamp and extend documentation. See #395 + - Improved tests. Thanks @connorskees and @Jamim! + - Changed log messages to DEBUG level. Thanks @aisk! + - added patches + fix https://github.com/dbader/schedule/issues/484 + + python-schedule-no-mock.patch + ------------------------------------------------------------------- Tue Mar 26 16:40:26 UTC 2019 - pgajdos@suse.com diff --git a/python-schedule.spec b/python-schedule.spec index 061b094..5f0f072 100644 --- a/python-schedule.spec +++ b/python-schedule.spec @@ -1,7 +1,7 @@ # # spec file for package python-schedule # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,21 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-schedule -Version: 0.6.0 +Version: 1.1.0 Release: 0 Summary: Job scheduling module for Python License: MIT Group: Development/Languages/Python -Url: https://github.com/dbader/schedule +URL: https://github.com/dbader/schedule Source: https://files.pythonhosted.org/packages/source/s/schedule/schedule-%{version}.tar.gz +# https://github.com/dbader/schedule/issues/484 +Patch0: python-schedule-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -# SECTION test requirements -BuildRequires: %{python_module mock} -# /SECTION BuildArch: noarch - %python_subpackages %description @@ -42,6 +40,7 @@ pattern for configuration. Schedule lets the user run Python functions %prep %setup -q -n schedule-%{version} +%patch0 -p1 %build %python_build @@ -51,7 +50,7 @@ pattern for configuration. Schedule lets the user run Python functions %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %doc README.rst diff --git a/schedule-0.6.0.tar.gz b/schedule-0.6.0.tar.gz deleted file mode 100644 index 4ffc168..0000000 --- a/schedule-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9fb5181283de4db6e701d476dd01b6a3dd81c38462a54991ddbb9d26db857c9 -size 12300 diff --git a/schedule-1.1.0.tar.gz b/schedule-1.1.0.tar.gz new file mode 100644 index 0000000..4c8eff5 --- /dev/null +++ b/schedule-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6ca13585e62c810e13a08682e0a6a8ad245372e376ba2b8679294f377dfc8e4 +size 18290