From 12555c145cf2a288eee5d554bf8769895b53aa99637e92757da25c6243f855e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 18 Feb 2025 11:49:41 +0000 Subject: [PATCH] - Update to 3.2.0 * Look up the location of the crontab command instead of assuming - Adjust upstream source name in spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crontab?expand=0&rev=22 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-crontab-3.1.0.tar.gz | 3 ++ python-python-crontab.changes | 96 +++++++++++++++++++++++++++++++++++ python-python-crontab.spec | 80 +++++++++++++++++++++++++++++ python_crontab-3.2.0.tar.gz | 3 ++ 6 files changed, 206 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-crontab-3.1.0.tar.gz create mode 100644 python-python-crontab.changes create mode 100644 python-python-crontab.spec create mode 100644 python_crontab-3.2.0.tar.gz 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/python-crontab-3.1.0.tar.gz b/python-crontab-3.1.0.tar.gz new file mode 100644 index 0000000..27324c6 --- /dev/null +++ b/python-crontab-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4ea1605d24533b67fa7a634ef26cb59a5f2e7954f6e677d2d7a2229959a2fc8 +size 56750 diff --git a/python-python-crontab.changes b/python-python-crontab.changes new file mode 100644 index 0000000..7498d8c --- /dev/null +++ b/python-python-crontab.changes @@ -0,0 +1,96 @@ +------------------------------------------------------------------- +Tue Feb 18 10:07:26 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.2.0 + * Look up the location of the crontab command instead of assuming +- Adjust upstream source name in spec file + +------------------------------------------------------------------- +Thu Jun 6 20:21:25 UTC 2024 - Dirk Müller + +- update to 3.1.0: + * Fix a few basic parsing issues + +------------------------------------------------------------------- +Mon Jan 1 20:28:24 UTC 2024 - Dirk Müller + +- update to 3.0.0: + * Add frequency checks at specific timestamp + * Fix lots of pylint errors and improve test coverage + * Improve schedule running with more information about what was + returned + * Cause an error when setting an invalid frequency + +------------------------------------------------------------------- +Tue Feb 21 10:13:12 UTC 2023 - Daniel Garcia + +- Update to 2.7.1: + * Fix #104, confirm removal of python2.7 support +- 2.7.0: + * Add feature to insert new commands in the middle of the cron. Fix #101 + * Do not log invalid comments as errors + +------------------------------------------------------------------- +Thu Oct 6 22:15:25 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 2.6.0 +- Fix #87 with specials flag on rendering options +* Fix #82 with a cron_command API and README updates +* Fix #88 with comment change +* Merge branch 'issue-cron-weekdays-vs-python-weekdays' into 'master' +* Fix test_02_days_per_year calculations incorrect +* Fix #81 make a command valid when setting the command +* bump version +* Fix #75 apply disabled comment prefix before pre-comment +* Fix #73 add support for percent sign stdin and escaping +* Fix #71 record pre-comment styles faithfully for re-rendering + +------------------------------------------------------------------- +Thu May 6 14:14:18 UTC 2021 - Ben Greiner + +- Fix testsuite and devel BuildRequirements for different flavors + +------------------------------------------------------------------- +Mon Jan 25 10:29:59 UTC 2021 - John Vandenberg + +- Fix Python 3.6 builds + +------------------------------------------------------------------- +Wed Aug 5 14:02:32 UTC 2020 - Marketa Calabkova + +- update to 2.5.1 + * Update crontab class to allow with context manager + * Convert file to unix format + * add support for percent sign stdin and escaping + +------------------------------------------------------------------- +Mon Mar 23 11:22:46 UTC 2020 - pgajdos@suse.com + +- version update to 2.4.0 + * no upstream changelog found + +------------------------------------------------------------------- +Wed Sep 18 08:27:27 UTC 2019 - Tomáš Chvátal + +- Disable flaky test test_04_schedule_ten + +------------------------------------------------------------------- +Tue Sep 17 09:59:14 UTC 2019 - Jan Engelhardt + +- Expand description. + +------------------------------------------------------------------- +Tue Sep 17 08:39:34 UTC 2019 - Tomáš Chvátal + +- Format with spec-cleaner + +------------------------------------------------------------------- +Mon Sep 16 12:39:15 UTC 2019 - John Vandenberg + +- Update to single spec and activate test suite +- Update to v2.3.8 + +------------------------------------------------------------------- +Mon Aug 23 10:05:00 UTC 2015 - Sergey Ivanov + +- Initial spec for v1.7.2 diff --git a/python-python-crontab.spec b/python-python-crontab.spec new file mode 100644 index 0000000..f668319 --- /dev/null +++ b/python-python-crontab.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-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-python-crontab +Version: 3.2.0 +Release: 0 +Summary: Python Crontab API +License: LGPL-3.0-only +Group: Development/Languages/Python +URL: https://gitlab.com/doctormo/python-crontab/ +Source: https://files.pythonhosted.org/packages/source/p/python_crontab/python_crontab-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-python-dateutil +Recommends: cronie +Recommends: python-cron-descriptor +Recommends: python-croniter +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module cron-descriptor} +BuildRequires: %{python_module croniter} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module testsuite if %python-base >= 3} +BuildRequires: cronie +# /SECTION +%python_subpackages + +%description +Crontab module for reading and writing crontab files and +accessing the system cron automatically using an API. + +%prep +%setup -q -n python_crontab-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +%{python_expand mkdir -p build/bin +ln -s %{_bindir}/$python build/bin/python +} +export PATH=$PWD/build/bin:$PATH +# test_07_non_posix_shell - only for Windows +# test_20_frequency_at_year - broken test which fails in leap years +%pytest -k "not test_07_non_posix_shell and not test_20_frequency_at_year" + +%files %{python_files} +%doc README.rst +%license COPYING AUTHORS +%{python_sitelib}/cronlog.py +%{python_sitelib}/crontab.py +%{python_sitelib}/crontabs.py +%{python_sitelib}/python_crontab-%{version}.dist-info +%pycache_only %{python_sitelib}/__pycache__ + +%changelog diff --git a/python_crontab-3.2.0.tar.gz b/python_crontab-3.2.0.tar.gz new file mode 100644 index 0000000..0027809 --- /dev/null +++ b/python_crontab-3.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40067d1dd39ade3460b2ad8557c7651514cd3851deffff61c5c60e1227c5c36b +size 57001