14
0

- 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
This commit is contained in:
2025-02-18 11:49:41 +00:00
committed by Git OBS Bridge
commit 12555c145c
6 changed files with 206 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

View File

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

View File

@@ -0,0 +1,96 @@
-------------------------------------------------------------------
Tue Feb 18 10:07:26 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <dmueller@suse.com>
- update to 3.1.0:
* Fix a few basic parsing issues
-------------------------------------------------------------------
Mon Jan 1 20:28:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <daniel.garcia@suse.com>
- 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 <yarunachalam@suse.com>
- 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 <code@bnavigator.de>
- Fix testsuite and devel BuildRequirements for different flavors
-------------------------------------------------------------------
Mon Jan 25 10:29:59 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Fix Python 3.6 builds
-------------------------------------------------------------------
Wed Aug 5 14:02:32 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- 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 <tchvatal@suse.com>
- Disable flaky test test_04_schedule_ten
-------------------------------------------------------------------
Tue Sep 17 09:59:14 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Expand description.
-------------------------------------------------------------------
Tue Sep 17 08:39:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Format with spec-cleaner
-------------------------------------------------------------------
Mon Sep 16 12:39:15 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Update to single spec and activate test suite
- Update to v2.3.8
-------------------------------------------------------------------
Mon Aug 23 10:05:00 UTC 2015 - Sergey Ivanov <isn77@list.ru>
- Initial spec for v1.7.2

View File

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

View File

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