forked from pool/python-cron-descriptor
* support Vietnamese
* Possible BC - Parsing call was moved from
`ExpressionDescriptor.get_description` to
`ExpressionDescriptor.__init__` that means parsing
exceptions are thrown when calling `ExpressionDescriptor`
constructor and not when calling
`ExpressionDescriptor.get_description` modify your exception
handling accordingly...
* Possible BC - Option `throw_exception_on_parse_error`
(boolean) was removed, code now works as if
`throw_exception_on_parse_error=True` (default - always throw
exceptions). Remove `throw_exception_on_parse_error` option
from your code if you were using it.
* Added missing spanish translation string
* Add possibility to use custom .mo files, locally
* Slovak translation
* Fixes #31
* Fixes #36
* Added Korean support by @hanqyu
* Added Persian support by @Davoodeh
* Added Tamil support by @sankarhari
* Added Japanese support by @tho-asterist
* fixes unclosed open translation file by Rafael Reuber
* various fixes around
* Fix CI Build/Deploy on new version
* Fixes some issues ( #14 #17 ) and some small code refactoring
* Fixes #13
* Fixes #10
* Relase fixing issue #6
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cron-descriptor?expand=0&rev=9
61 lines
1.9 KiB
RPMSpec
61 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-cron-descriptor
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-cron-descriptor
|
|
Version: 1.4
|
|
Release: 0
|
|
Summary: Python library that converts cron expressions into human readable strings
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/Salamek/cron-descriptor
|
|
Source: https://github.com/Salamek/cron-descriptor/archive/%{version}.tar.gz#/cron_descriptor-%{version}.tar.gz
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python library that converts cron expressions into human readable strings.
|
|
|
|
%prep
|
|
%setup -q -n cron-descriptor-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests/*.py
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%dir %{python_sitelib}/cron_descriptor/
|
|
%{python_sitelib}/cron_descriptor/*.py*
|
|
%pycache_only %{python_sitelib}/cron_descriptor/__pycache__
|
|
%{python_sitelib}/cron_descriptor*egg-info/
|
|
%lang(all) %{python_sitelib}/cron_descriptor/locale/
|
|
|
|
%changelog
|