Accepting request 1030332 from devel:languages:python
- added patches
07d1602048
+ python-isodate-no-six.patch
OBS-URL: https://build.opensuse.org/request/show/1030332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isodate?expand=0&rev=20
This commit is contained in:
commit
7e7c105f61
52
python-isodate-no-six.patch
Normal file
52
python-isodate-no-six.patch
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
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,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 21 07:59:21 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- added patches
|
||||||
|
https://github.com/gweis/isodate/commit/07d1602048083415bc22dc72cff152c9c2e0e021
|
||||||
|
+ python-isodate-no-six.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 14 21:40:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Mon Feb 14 21:40:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ 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
|
||||||
|
Patch0: python-isodate-no-six.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user