Files
python-isodate/python-isodate.spec
Dirk Mueller 0a9a04302f - update to 0.7.2:
* drop end of life python versions
  * Don't match garbage characters at the end of parsed strings
  * Fractional seconds are cut off to microseconds (always round
    down)
  * Allow control over return type of parse_duration #64 (Felix
    Claessen)
  * Python >= 3.7 required
- drop python-isodate-no-six.patch (upstream)
- add six dependency
- Remove BuildRequires: python-2to3, useless since included in main

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isodate?expand=0&rev=38
2024-10-29 21:31:58 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-isodate
#
# 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
# 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-isodate
Version: 0.7.2
Release: 0
Summary: An ISO 8601 Date/Time/Duration Parser and Formatter
License: BSD-3-Clause
URL: https://pypi.org/project/isodate/
Source: https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
This module implements ISO 8601 date, time and duration parsing.
The implementation follows ISO8601:2004 standard, and implements only
date/time representations mentioned in the standard. If something is not
mentioned there, then it is treated as non existent, and not as an allowed
option.
%prep
%autosetup -p1 -n isodate-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc CHANGES.txt README.rst TODO.txt
%{python_sitelib}/isodate
%{python_sitelib}/isodate-%{version}.dist-info
%changelog