- 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
This commit is contained in:
2025-07-12 17:26:56 +00:00
committed by Git OBS Bridge
commit 55b401c3cf
7 changed files with 145 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
crontab-0.23.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a0ffee30194d5632789bcf9942c198d051aeab1b3dc8d8f0c506521c93647de
size 20380

3
crontab-1.0.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a41e5d85c6ed673ae4fe48a71abe4d59039bb3189a697115a20ee5e03112e153
size 22133

3
crontab-1.0.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea6cc78911e5be44475819d5564b474473e4e2b7dcef53253a86ad5a5a0531e4
size 22482

47
python-crontab.changes Normal file
View File

@@ -0,0 +1,47 @@
-------------------------------------------------------------------
Sat Jul 12 17:26:33 UTC 2025 - Dirk Müller <dmueller@suse.com>
- 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 <steven.kowalik@suse.com>
- Switch to pyroject macros.
-------------------------------------------------------------------
Tue Apr 29 13:21:53 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- 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 <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Mon Aug 23 12:52:40 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <jengelh@inai.de>
- Use noun phrase in summary. Expand %description.
-------------------------------------------------------------------
Tue Sep 17 01:59:42 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.22.6

65
python-crontab.spec Normal file
View File

@@ -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