From 55b401c3cf91bbddf92136ebe7353d2baad492469c96bcccc236eb4b577ee260 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 12 Jul 2025 17:26:56 +0000 Subject: [PATCH] - update to 1.0.5: * [added] the ability to use z0 as last day of the month, z1 for the day before the last day of the month, up to z7 for 7 days before the last day of the month. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crontab?expand=0&rev=13 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + crontab-0.23.0.tar.gz | 3 ++ crontab-1.0.4.tar.gz | 3 ++ crontab-1.0.5.tar.gz | 3 ++ python-crontab.changes | 47 ++++++++++++++++++++++++++++++ python-crontab.spec | 65 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 145 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 crontab-0.23.0.tar.gz create mode 100644 crontab-1.0.4.tar.gz create mode 100644 crontab-1.0.5.tar.gz create mode 100644 python-crontab.changes create mode 100644 python-crontab.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/crontab-0.23.0.tar.gz b/crontab-0.23.0.tar.gz new file mode 100644 index 0000000..981d032 --- /dev/null +++ b/crontab-0.23.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a0ffee30194d5632789bcf9942c198d051aeab1b3dc8d8f0c506521c93647de +size 20380 diff --git a/crontab-1.0.4.tar.gz b/crontab-1.0.4.tar.gz new file mode 100644 index 0000000..607eeb2 --- /dev/null +++ b/crontab-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a41e5d85c6ed673ae4fe48a71abe4d59039bb3189a697115a20ee5e03112e153 +size 22133 diff --git a/crontab-1.0.5.tar.gz b/crontab-1.0.5.tar.gz new file mode 100644 index 0000000..6daf952 --- /dev/null +++ b/crontab-1.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea6cc78911e5be44475819d5564b474473e4e2b7dcef53253a86ad5a5a0531e4 +size 22482 diff --git a/python-crontab.changes b/python-crontab.changes new file mode 100644 index 0000000..8bc77b6 --- /dev/null +++ b/python-crontab.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +Sat Jul 12 17:26:33 UTC 2025 - Dirk Müller + +- update to 1.0.5: + * [added] the ability to use z0 as last day of the month, z1 + for the day before the last day of the month, up to z7 for + 7 days before the last day of the month. + +------------------------------------------------------------------- +Mon Jun 16 06:12:20 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + +------------------------------------------------------------------- +Tue Apr 29 13:21:53 UTC 2025 - Felix Stegmeier + +- Update to 1.0.4 + * Allow previous to return datetime + * make returned datetime respect requested timezone + +------------------------------------------------------------------- +Sat Jan 18 11:32:28 UTC 2025 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Aug 23 12:52:40 UTC 2021 - John Paul Adrian Glaubitz + +- Update to version 0.23.0 + * Bump version and copyright year + * Added early return option to next function that allows + returning timestamp of next occurence instead of delay. + * Fixed issue with comparing against None + * Update docstring of Crontab.__init__ + * Added compare + * Bump version + * Allow looping ranges + +------------------------------------------------------------------- +Tue Sep 17 09:57:08 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. Expand %description. + +------------------------------------------------------------------- +Tue Sep 17 01:59:42 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.22.6 diff --git a/python-crontab.spec b/python-crontab.spec new file mode 100644 index 0000000..37309ba --- /dev/null +++ b/python-crontab.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-crontab +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-crontab +Version: 1.0.5 +Release: 0 +Summary: Python module for parsing and using crontab schedules +License: LGPL-2.1-only +URL: https://github.com/josiahcarlson/parse-crontab +Source: https://github.com/josiahcarlson/parse-crontab/archive/%{version}.tar.gz#/crontab-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-python-dateutil +Requires: python-pytz +BuildArch: noarch +%python_subpackages + +%description +This package offers a method of parsing crontab schedule entries and +determining when an item should next be run. More specifically, it +calculates a delay in seconds from when the .next() method is called +to when the item should next be executed. + +%prep +%setup -q -n parse-crontab-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE LICENSE3 +%{python_sitelib}/crontab +%{python_sitelib}/crontab-%{version}.dist-info + +%changelog