From c872969cade4857d848bfd79b22592d69ed6b2f11542da02a6d8482685481f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 7 Mar 2019 13:51:11 +0000 Subject: [PATCH] - Update to 0.3.27: * Handle -Sun notation * Handle invalid ranges correctly * Pypi hygiene * fix get_next while perserving the fix of get_prev * Don't count previous minute if now is dynamic If the code is triggered from 5-asterisk based cron get_prev based on datetime.now() is expected to return current cron iteration and not previous execution. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-croniter?expand=0&rev=16 --- croniter-0.3.20.tar.gz | 3 --- croniter-0.3.27.tar.gz | 3 +++ python-croniter.changes | 10 ++++++++++ python-croniter.spec | 20 +++++++++----------- 4 files changed, 22 insertions(+), 14 deletions(-) delete mode 100644 croniter-0.3.20.tar.gz create mode 100644 croniter-0.3.27.tar.gz diff --git a/croniter-0.3.20.tar.gz b/croniter-0.3.20.tar.gz deleted file mode 100644 index d5fab55..0000000 --- a/croniter-0.3.20.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:272c333ab0b354a82173e502d419299e2f3dfdd5dce771ecd8bdf03680495016 -size 18279 diff --git a/croniter-0.3.27.tar.gz b/croniter-0.3.27.tar.gz new file mode 100644 index 0000000..09172df --- /dev/null +++ b/croniter-0.3.27.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbd72189a0ff38c27e953d15175c5fedafb953479559240a1afcf8e8e7523757 +size 20427 diff --git a/python-croniter.changes b/python-croniter.changes index 221c9f8..08423b0 100644 --- a/python-croniter.changes +++ b/python-croniter.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Mar 7 13:48:40 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.27: + * Handle -Sun notation + * Handle invalid ranges correctly + * Pypi hygiene + * fix get_next while perserving the fix of get_prev + * Don't count previous minute if now is dynamic If the code is triggered from 5-asterisk based cron get_prev based on datetime.now() is expected to return current cron iteration and not previous execution. + ------------------------------------------------------------------- Wed Oct 17 18:29:01 UTC 2018 - Jan Engelhardt diff --git a/python-croniter.spec b/python-croniter.spec index e9fbe9a..b708dbd 100644 --- a/python-croniter.spec +++ b/python-croniter.spec @@ -1,7 +1,7 @@ # # spec file for package python-croniter # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,24 +18,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-croniter -Version: 0.3.20 +Version: 0.3.27 Release: 0 Summary: Python iterators for datetime objects with cron-like format License: MIT Group: Development/Languages/Python -Url: http://github.com/kiorky/croniter +URL: http://github.com/kiorky/croniter Source: https://files.pythonhosted.org/packages/source/c/croniter/croniter-%{version}.tar.gz +BuildRequires: %{python_module pytest >= 3.0.3} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip -# Test requirements: -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module python-dateutil} -BuildRequires: %{python_module pytz} Requires: python-python-dateutil BuildArch: noarch - %python_subpackages %description @@ -52,11 +50,11 @@ croniter provides iterators for datetime object with cron-like format. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec %{_bindir}/py.test src +%pytest src %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst docs/LICENSE +%license docs/LICENSE +%doc README.rst %{python_sitelib}/* %changelog