Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e5dc692588 | |||
| 0994922268 |
BIN
isodate-0.6.1.tar.gz
LFS
BIN
isodate-0.6.1.tar.gz
LFS
Binary file not shown.
BIN
isodate-0.7.2.tar.gz
LFS
Normal file
BIN
isodate-0.7.2.tar.gz
LFS
Normal file
Binary file not shown.
@@ -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
|
|
||||||
|
|
||||||
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 29 21:31:26 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Fri Apr 21 12:27:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-isodate
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-isodate
|
Name: python-isodate
|
||||||
Version: 0.6.1
|
Version: 0.7.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An ISO 8601 Date/Time/Duration Parser and Formatter
|
Summary: An ISO 8601 Date/Time/Duration Parser and Formatter
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://pypi.org/project/isodate/
|
URL: https://pypi.org/project/isodate/
|
||||||
Source: https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
|
||||||
# https://github.com/gweis/isodate/commit/07d1602048083415bc22dc72cff152c9c2e0e021
|
BuildRequires: %{python_module pip}
|
||||||
Patch0: python-isodate-no-six.patch
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -41,21 +42,21 @@ mentioned there, then it is treated as non existent, and not as an allowed
|
|||||||
option.
|
option.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n isodate-%{version}
|
%autosetup -p1 -n isodate-%{version}
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest discover -v src/
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.txt README.rst TODO.txt
|
%doc CHANGES.txt README.rst TODO.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/isodate
|
||||||
|
%{python_sitelib}/isodate-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user