12
0
Files
python-croniter/python-croniter.spec
Markéta Machová 260ce1d9c7 - Update to 6.0.0
* Announce for now that croniter dev is ended (CRA).
  * Rework timestamp_to_datetime to use whatever timezone [kiorky]
  * Make datetime_to_timestamp & timestamp_to_datetime public [kiorky]
  * Fix EPOCH calculation in case of non UTC & 32 bits based systems [kiorky]
  * Apply isort formatter [kiorky]
  * Reintegrate test_speed [kiorky]
  * Apply black formatter [evanpurkhiser, kiorky]
  * Code quality changes [evanpurkhiser, kiorky]
    * Remove unused _get_caller_globals_and_locals [evanpurkhiser]
    * Remove single-use bad_length [evanpurkhiser]
    * Remove unused days in proc_month [evanpurkhiser]
    * Use field_index over i for readability [evanpurkhiser]
    * Always use """ for docstrings [evanpurkhiser]
    * Make helper instance methods that do not use self static [evanpurkhiser]
    * Remove unusd call to sys.exc_info [evanpurkhiser]
    * Remove unused ALPHAS [evanpurkhiser]
    * Improve croniter.expand documentation [evanpurkhiser]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-croniter?expand=0&rev=67
2025-06-24 13:03:34 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package python-croniter
#
# 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-croniter
Version: 6.0.0
Release: 0
Summary: Python iterators for datetime objects with cron-like format
License: MIT
URL: https://github.com/kiorky/croniter
Source: https://files.pythonhosted.org/packages/source/c/croniter/croniter-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 3.0.3}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tzlocal}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-python-dateutil
Requires: python-pytz
BuildArch: noarch
%python_subpackages
%description
croniter provides iterators for datetime object with cron-like format.
%prep
%setup -q -n croniter-%{version}
find . -name "*.py" | xargs sed -i '1 { /^#!/ d }'
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest src
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/croniter
%{python_sitelib}/croniter-%{version}.dist-info
%changelog