14
0

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crontab?expand=0&rev=18
This commit is contained in:
2024-01-01 20:29:48 +00:00
committed by Git OBS Bridge
parent 92e38f7f8c
commit 272a7e85a6
4 changed files with 24 additions and 11 deletions

View File

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

View File

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

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>
@@ -21,7 +31,7 @@ Thu Oct 6 22:15:25 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
* 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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-crontab
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,15 +16,17 @@
#
%{?sle15_python_module_pythons}
Name: python-python-crontab
Version: 2.7.1
Version: 3.0.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 setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
@@ -50,10 +52,10 @@ accessing the system cron automatically using an API.
%setup -q -n python-crontab-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -63,7 +65,8 @@ ln -s %{_bindir}/$python build/bin/python
}
export PATH=$PWD/build/bin:$PATH
# test_07_non_posix_shell - only for Windows
%pytest -k "not test_07_non_posix_shell"
# 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
@@ -71,7 +74,7 @@ export PATH=$PWD/build/bin:$PATH
%{python_sitelib}/cronlog.py
%{python_sitelib}/crontab.py
%{python_sitelib}/crontabs.py
%{python_sitelib}/python_crontab-%{version}*-info
%{python_sitelib}/python_crontab-%{version}.dist-info
%pycache_only %{python_sitelib}/__pycache__
%changelog