diff --git a/isodate-0.6.1.tar.gz b/isodate-0.6.1.tar.gz deleted file mode 100644 index 8971295..0000000 --- a/isodate-0.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9 -size 28443 diff --git a/isodate-0.7.2.tar.gz b/isodate-0.7.2.tar.gz new file mode 100644 index 0000000..50f548e --- /dev/null +++ b/isodate-0.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cd1aa0f43ca76f4a6c6c0292a85f40b35ec2e43e315b59f06e6d32171a953e6 +size 29705 diff --git a/python-isodate-no-six.patch b/python-isodate-no-six.patch deleted file mode 100644 index 7f8c0fa..0000000 --- a/python-isodate-no-six.patch +++ /dev/null @@ -1,52 +0,0 @@ -Index: isodate-0.6.1/setup.py -=================================================================== ---- isodate-0.6.1.orig/setup.py -+++ isodate-0.6.1/setup.py -@@ -40,7 +40,6 @@ setup(name='isodate', - - # dependencies: - install_requires=[ -- 'six' - ], - - # PyPI metadata -Index: isodate-0.6.1/src/isodate.egg-info/requires.txt -=================================================================== ---- isodate-0.6.1.orig/src/isodate.egg-info/requires.txt -+++ isodate-0.6.1/src/isodate.egg-info/requires.txt -@@ -1 +0,0 @@ --six -Index: isodate-0.6.1/src/isodate/isoduration.py -=================================================================== ---- isodate-0.6.1.orig/src/isodate/isoduration.py -+++ isodate-0.6.1/src/isodate/isoduration.py -@@ -34,8 +34,6 @@ from datetime import timedelta - from decimal import Decimal - import re - --from six import string_types -- - from isodate.duration import Duration - from isodate.isoerror import ISO8601Error - from isodate.isodatetime import parse_datetime -@@ -82,7 +80,7 @@ def parse_duration(datestring): - The alternative format does not support durations with years, months or - days set to 0. - """ -- if not isinstance(datestring, string_types): -+ if not isinstance(datestring, str): - raise TypeError("Expecting a string %r" % datestring) - match = ISO8601_PERIOD_REGEX.match(datestring) - if not match: -Index: isodate-0.6.1/src/isodate/tests/test_pickle.py -=================================================================== ---- isodate-0.6.1.orig/src/isodate/tests/test_pickle.py -+++ isodate-0.6.1/src/isodate/tests/test_pickle.py -@@ -1,6 +1,6 @@ - import unittest - --from six.moves import cPickle as pickle -+import pickle - - import isodate - diff --git a/python-isodate.changes b/python-isodate.changes index 065a798..6e05b12 100644 --- a/python-isodate.changes +++ b/python-isodate.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Oct 29 21:31:26 UTC 2024 - Dirk Müller + +- 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) + ------------------------------------------------------------------- Fri Apr 21 12:27:08 UTC 2023 - Dirk Müller @@ -32,7 +45,7 @@ Mon Dec 13 01:44:25 UTC 2021 - Steve Kowalik ------------------------------------------------------------------- Mon Nov 8 10:20:27 UTC 2021 - Dirk Müller -- add six dependency +- add six dependency ------------------------------------------------------------------- Wed May 26 07:18:51 UTC 2021 - pgajdos@suse.com @@ -102,7 +115,7 @@ Wed Apr 17 14:08:25 UTC 2013 - toddrme2178@gmail.com ------------------------------------------------------------------- Tue Apr 16 19:21:24 UTC 2013 - p.drouand@gmail.com -- Remove BuildRequires: python-2to3, useless since included in main +- Remove BuildRequires: python-2to3, useless since included in main python devel package - Add Requires: python3; fix build for OpenSUSE <= 12.2 diff --git a/python-isodate.spec b/python-isodate.spec index aa17ffe..aeb81c7 100644 --- a/python-isodate.spec +++ b/python-isodate.spec @@ -1,7 +1,7 @@ # # spec file for package python-isodate # -# 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,18 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-isodate -Version: 0.6.1 +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 -# https://github.com/gweis/isodate/commit/07d1602048083415bc22dc72cff152c9c2e0e021 -Patch0: python-isodate-no-six.patch +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 @@ -41,21 +42,21 @@ mentioned there, then it is treated as non existent, and not as an allowed option. %prep -%setup -q -n isodate-%{version} -%autopatch -p1 +%autosetup -p1 -n isodate-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pyunittest discover -v src/ +%pytest %files %{python_files} %doc CHANGES.txt README.rst TODO.txt -%{python_sitelib}/* +%{python_sitelib}/isodate +%{python_sitelib}/isodate-%{version}.dist-info %changelog