Sync from SUSE:SLFO:Main python-isodate revision 9dab61ec1258c828689a6cac1116ba6f
This commit is contained in:
commit
e92ee414f2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
isodate-0.6.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
isodate-0.6.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
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
|
||||
|
122
python-isodate.changes
Normal file
122
python-isodate.changes
Normal file
@ -0,0 +1,122 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:27:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:42:09 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- update to 0.6.1:
|
||||
* support python 3.10 ()
|
||||
* last version to support py 2.7
|
||||
- drop coerce-decimal-to-int-python-310.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 13 01:44:25 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch coerce-decimal-to-int-python-310.patch:
|
||||
* Support Python 3.10.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 8 10:20:27 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add six dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 26 07:18:51 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
- %check: use %pyunittest rpm macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:49:23 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 2 12:53:11 UTC 2018 - adrian.glaubitz@suse.com
|
||||
|
||||
- update to version 0.6.0:
|
||||
- Support incomplete month date (Fabien Loffredo)
|
||||
- Rely on duck typing when doing duration maths
|
||||
- Support ':' as separator in fractional time zones (usrenmae)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 3 17:04:31 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version.
|
||||
- Fix source URL.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 30 07:47:24 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
- update to 0.5.4:
|
||||
- Fix parsing of Periods (Fabien Bochu)
|
||||
- Make Duration objects hashable (Geoffrey Fairchild)
|
||||
- Add multiplication to duration (Reinoud Elhorst)
|
||||
- Use pypi.io as Source url
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 6 15:54:47 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
- update to version 0.5.1:
|
||||
* fixed pickling of Duration objects
|
||||
* raise ISO8601Error when there is no 'T' separator in datetime
|
||||
strings
|
||||
- additional changes from version 0.5.0:
|
||||
* ISO8601Error are subclasses of ValueError now
|
||||
* improve compatibility across various python variants and
|
||||
versions
|
||||
* raise exceptions when using fractional years and months in date
|
||||
maths with durations
|
||||
* renamed method todatetime on Duraction objects to totimedelta
|
||||
- pass -q to test to avoid spamming the build log
|
||||
- rename README.txt to README.rst: changed upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:07:11 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Require python-setuptools instead of distribute (upstreams merged)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 17 14:08:25 UTC 2013 - toddrme2178@gmail.com
|
||||
|
||||
- Re-add python-2to3. It is needed for OpenSUSE <= 12.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 16 19:21:24 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
- Remove BuildRequires: python-2to3, useless since included in main
|
||||
python devel package
|
||||
- Add Requires: python3; fix build for OpenSUSE <= 12.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 13 15:14:28 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
- Initial python3 support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 23 11:07:12 UTC 2012 - saschpe@suse.de
|
||||
|
||||
- Update to version 0.4.9:
|
||||
+ support pickling FixedOffset instances
|
||||
+ make sure parsed fractional seconds are in microseconds
|
||||
+ add leading zeros when formattig microseconds (Jarom Loveridge)
|
||||
- Spec file cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 18 00:22:57 UTC 2012 - jfunk@funktronics.ca
|
||||
|
||||
- Initial release
|
||||
|
61
python-isodate.spec
Normal file
61
python-isodate.spec
Normal file
@ -0,0 +1,61 @@
|
||||
#
|
||||
# spec file for package python-isodate
|
||||
#
|
||||
# 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-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-isodate
|
||||
Version: 0.6.1
|
||||
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 setuptools}
|
||||
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
|
||||
%setup -q -n isodate-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pyunittest discover -v src/
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.txt README.rst TODO.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user