Hello community, here is the log from the commit of package python-iso8601 for openSUSE:Factory checked in at 2019-03-29 20:39:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-iso8601 (Old) and /work/SRC/openSUSE:Factory/.python-iso8601.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-iso8601" Fri Mar 29 20:39:27 2019 rev:15 rq:689817 version:0.1.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-iso8601/python-iso8601.changes 2019-01-15 13:16:19.468360161 +0100 +++ /work/SRC/openSUSE:Factory/.python-iso8601.new.25356/python-iso8601.changes 2019-03-29 20:39:29.994686647 +0100 @@ -1,0 +2,12 @@ +Fri Mar 29 11:37:21 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Downgrade to 0.1.11: + * Reverts back to avoid API change that caused iso8601.Utc not + working on py3 (Fedora and Deb both ship this version) + +------------------------------------------------------------------- +Fri Mar 29 11:34:21 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Download the sources from pypi and run fdupes + +------------------------------------------------------------------- Old: ---- iso8601-0.1.12.tar.gz New: ---- iso8601-0.1.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-iso8601.spec ++++++ --- /var/tmp/diff_new_pack.IjH4ZD/_old 2019-03-29 20:39:30.538686593 +0100 +++ /var/tmp/diff_new_pack.IjH4ZD/_new 2019-03-29 20:39:30.542686592 +0100 @@ -18,15 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-iso8601 -Version: 0.1.12 +Version: 0.1.11 Release: 0 Summary: Python module to parse ISO 8601 dates License: MIT Group: Development/Languages/Python URL: http://code.google.com/p/pyiso8601/ -Source: iso8601-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/i/iso8601/iso8601-%{version}.tar.gz BuildRequires: %{python_module pytest >= 2.4.2} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -43,9 +44,10 @@ %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec %{_bindir}/py.test --verbose iso8601 +%pytest %files %{python_files} %license LICENSE ++++++ iso8601-0.1.12.tar.gz -> iso8601-0.1.11.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/PKG-INFO new/iso8601-0.1.11/PKG-INFO --- old/iso8601-0.1.12/PKG-INFO 2017-07-28 00:04:32.000000000 +0200 +++ new/iso8601-0.1.11/PKG-INFO 2015-11-03 17:11:42.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: iso8601 -Version: 0.1.12 +Version: 0.1.11 Summary: Simple module to parse ISO 8601 dates Home-page: https://bitbucket.org/micktwomey/pyiso8601 Author: Michael Twomey @@ -103,7 +103,6 @@ - Python 3.3 - Python 3.4 - Python 3.5 - - Python 3.6 - PyPy - PyPy 3 @@ -116,11 +115,6 @@ Changes ======= - 0.1.12 - ------ - - * Fix class reference for iso8601.Utc in module docstring (thanks to felixschwarz in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/7/fix-class-reference-for-iso8601utc-in/diff) - 0.1.11 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/README.rst new/iso8601-0.1.11/README.rst --- old/iso8601-0.1.12/README.rst 2017-07-27 23:51:06.000000000 +0200 +++ new/iso8601-0.1.11/README.rst 2015-11-03 17:03:37.000000000 +0100 @@ -95,7 +95,6 @@ - Python 3.3 - Python 3.4 - Python 3.5 -- Python 3.6 - PyPy - PyPy 3 @@ -108,11 +107,6 @@ Changes ======= -0.1.12 ------- - -* Fix class reference for iso8601.Utc in module docstring (thanks to felixschwarz in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/7/fix-class-reference-for-iso8601utc-in/diff) - 0.1.11 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/dev-requirements.txt new/iso8601-0.1.11/dev-requirements.txt --- old/iso8601-0.1.12/dev-requirements.txt 2017-07-27 23:52:52.000000000 +0200 +++ new/iso8601-0.1.11/dev-requirements.txt 2015-11-03 13:01:03.000000000 +0100 @@ -1,6 +1,5 @@ devpi>=1.2.1 pytest>=2.5.2 Sphinx>=1.2.1 -tox-pyenv>=1.0.3 tox>=1.7.0 wheel>=0.22.0 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/iso8601/iso8601.py new/iso8601-0.1.11/iso8601/iso8601.py --- old/iso8601-0.1.12/iso8601/iso8601.py 2017-07-27 23:41:48.000000000 +0200 +++ new/iso8601-0.1.11/iso8601/iso8601.py 2015-11-03 13:07:12.000000000 +0100 @@ -3,18 +3,21 @@ Basic usage: >>> import iso8601 >>> iso8601.parse_date("2007-01-25T12:00:00Z") -datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.Utc ...>) +datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>) >>> """ -import datetime +from datetime import ( + datetime, + timedelta, + tzinfo +) from decimal import Decimal import sys import re -__all__ = ["parse_date", "ParseError", "UTC", - "FixedOffset"] +__all__ = ["parse_date", "ParseError", "UTC"] if sys.version_info >= (3, 0, 0): _basestring = str @@ -70,69 +73,61 @@ class ParseError(Exception): """Raised when there is a problem parsing a date string""" -if sys.version_info >= (3, 2, 0): - UTC = datetime.timezone.utc - def FixedOffset(offset_hours, offset_minutes, name): - return datetime.timezone( - datetime.timedelta( - hours=offset_hours, minutes=offset_minutes), - name) -else: - # Yoinked from python docs - ZERO = datetime.timedelta(0) - class Utc(datetime.tzinfo): - """UTC Timezone - - """ - def utcoffset(self, dt): - return ZERO - - def tzname(self, dt): - return "UTC" - - def dst(self, dt): - return ZERO - - def __repr__(self): - return "<iso8601.Utc>" - - UTC = Utc() - - class FixedOffset(datetime.tzinfo): - """Fixed offset in hours and minutes from UTC - - """ - def __init__(self, offset_hours, offset_minutes, name): - self.__offset_hours = offset_hours # Keep for later __getinitargs__ - self.__offset_minutes = offset_minutes # Keep for later __getinitargs__ - self.__offset = datetime.timedelta( - hours=offset_hours, minutes=offset_minutes) - self.__name = name - - def __eq__(self, other): - if isinstance(other, FixedOffset): - return ( - (other.__offset == self.__offset) - and - (other.__name == self.__name) - ) - return NotImplemented - - def __getinitargs__(self): - return (self.__offset_hours, self.__offset_minutes, self.__name) - - def utcoffset(self, dt): - return self.__offset +# Yoinked from python docs +ZERO = timedelta(0) +class Utc(tzinfo): + """UTC Timezone + + """ + def utcoffset(self, dt): + return ZERO + + def tzname(self, dt): + return "UTC" + + def dst(self, dt): + return ZERO + + def __repr__(self): + return "<iso8601.Utc>" + +UTC = Utc() + +class FixedOffset(tzinfo): + """Fixed offset in hours and minutes from UTC + + """ + def __init__(self, offset_hours, offset_minutes, name): + self.__offset_hours = offset_hours # Keep for later __getinitargs__ + self.__offset_minutes = offset_minutes # Keep for later __getinitargs__ + self.__offset = timedelta(hours=offset_hours, minutes=offset_minutes) + self.__name = name + + def __eq__(self, other): + if isinstance(other, FixedOffset): + return ( + (other.__offset == self.__offset) + and + (other.__name == self.__name) + ) + if isinstance(other, tzinfo): + return other == self + return False + + def __getinitargs__(self): + return (self.__offset_hours, self.__offset_minutes, self.__name) - def tzname(self, dt): - return self.__name + def utcoffset(self, dt): + return self.__offset - def dst(self, dt): - return ZERO + def tzname(self, dt): + return self.__name - def __repr__(self): - return "<FixedOffset %r %r>" % (self.__name, self.__offset) + def dst(self, dt): + return ZERO + def __repr__(self): + return "<FixedOffset %r %r>" % (self.__name, self.__offset) def to_int(d, key, default_to_zero=False, default=None, required=True): """Pull a value from the dict and convert to int @@ -200,7 +195,7 @@ groups["second_fraction"] = int(Decimal("0.%s" % (groups["second_fraction"] or 0)) * Decimal("1000000.0")) try: - return datetime.datetime( + return datetime( year=to_int(groups, "year"), month=to_int(groups, "month", default=to_int(groups, "monthdash", required=False, default=1)), day=to_int(groups, "day", default=to_int(groups, "daydash", required=False, default=1)), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/iso8601/test_iso8601.py new/iso8601-0.1.11/iso8601/test_iso8601.py --- old/iso8601-0.1.12/iso8601/test_iso8601.py 2017-07-27 23:41:48.000000000 +0200 +++ new/iso8601-0.1.11/iso8601/test_iso8601.py 2015-11-03 13:01:03.000000000 +0100 @@ -12,10 +12,6 @@ def test_iso8601_regex(): assert iso8601.ISO8601_REGEX.match("2006-10-11T00:14:33Z") -def test_fixedoffset_eq(): - # See https://bitbucket.org/micktwomey/pyiso8601/issues/19 - datetime.tzinfo() == iso8601.FixedOffset(2, 0, '+2:00') - def test_parse_no_timezone_different_default(): tz = iso8601.FixedOffset(2, 0, "test offset") d = iso8601.parse_date("2007-01-01T08:00:00", default_timezone=tz) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/iso8601.egg-info/PKG-INFO new/iso8601-0.1.11/iso8601.egg-info/PKG-INFO --- old/iso8601-0.1.12/iso8601.egg-info/PKG-INFO 2017-07-28 00:04:32.000000000 +0200 +++ new/iso8601-0.1.11/iso8601.egg-info/PKG-INFO 2015-11-03 17:11:42.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: iso8601 -Version: 0.1.12 +Version: 0.1.11 Summary: Simple module to parse ISO 8601 dates Home-page: https://bitbucket.org/micktwomey/pyiso8601 Author: Michael Twomey @@ -103,7 +103,6 @@ - Python 3.3 - Python 3.4 - Python 3.5 - - Python 3.6 - PyPy - PyPy 3 @@ -116,11 +115,6 @@ Changes ======= - 0.1.12 - ------ - - * Fix class reference for iso8601.Utc in module docstring (thanks to felixschwarz in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/7/fix-class-reference-for-iso8601utc-in/diff) - 0.1.11 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/setup.cfg new/iso8601-0.1.11/setup.cfg --- old/iso8601-0.1.12/setup.cfg 2017-07-28 00:04:32.000000000 +0200 +++ new/iso8601-0.1.11/setup.cfg 2015-11-03 17:11:42.000000000 +0100 @@ -1,4 +1,5 @@ [egg_info] tag_build = +tag_svn_revision = 0 tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/setup.py new/iso8601-0.1.11/setup.py --- old/iso8601-0.1.12/setup.py 2017-07-27 23:41:48.000000000 +0200 +++ new/iso8601-0.1.11/setup.py 2015-08-10 16:04:15.000000000 +0200 @@ -9,7 +9,7 @@ setup( name="iso8601", - version="0.1.12", + version="0.1.11", description=long_description.split("\n")[0], long_description=long_description, author="Michael Twomey", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.12/tox.ini new/iso8601-0.1.11/tox.ini --- old/iso8601-0.1.12/tox.ini 2017-07-27 23:46:49.000000000 +0200 +++ new/iso8601-0.1.11/tox.ini 2015-11-03 16:37:45.000000000 +0100 @@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,py32,py33,py34,py35,py36,pypy,pypy3 +envlist = py26,py27,py32,py33,py34,py35,pypy,pypy3 [testenv] deps=pytest>=2.4.2