Hello community, here is the log from the commit of package python-iso8601 for openSUSE:Factory checked in at 2016-03-18 21:31:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-iso8601 (Old) and /work/SRC/openSUSE:Factory/.python-iso8601.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-iso8601" Changes: -------- --- /work/SRC/openSUSE:Factory/python-iso8601/python-iso8601.changes 2014-03-13 20:43:55.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-iso8601.new/python-iso8601.changes 2016-03-18 21:31:19.000000000 +0100 @@ -1,0 +2,10 @@ +Mon Mar 14 13:49:16 UTC 2016 - [email protected] + +- update to 0.1.11: + * Remove logging + * Add support for , as separator for fractional part + * Add Python 3.4 and 3.5 to tox test config. + * Add PyPy 3 to tox test config. + * Link to documentation at http://pyiso8601.readthedocs.org/ + +------------------------------------------------------------------- Old: ---- iso8601-0.1.10.tar.gz New: ---- iso8601-0.1.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-iso8601.spec ++++++ --- /var/tmp/diff_new_pack.p0ZNs6/_old 2016-03-18 21:31:20.000000000 +0100 +++ /var/tmp/diff_new_pack.p0ZNs6/_new 2016-03-18 21:31:20.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-iso8601 # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-iso8601 -Version: 0.1.10 +Version: 0.1.11 Release: 0 Url: http://code.google.com/p/pyiso8601/ Summary: Simple module to parse ISO 8601 dates ++++++ iso8601-0.1.10.tar.gz -> iso8601-0.1.11.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/LICENSE new/iso8601-0.1.11/LICENSE --- old/iso8601-0.1.10/LICENSE 2014-02-27 16:14:09.000000000 +0100 +++ new/iso8601-0.1.11/LICENSE 2015-11-03 16:56:44.000000000 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2007 - 2013 Michael Twomey +Copyright (c) 2007 - 2015 Michael Twomey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/PKG-INFO new/iso8601-0.1.11/PKG-INFO --- old/iso8601-0.1.10/PKG-INFO 2014-02-27 16:14:10.000000000 +0100 +++ 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.10 +Version: 0.1.11 Summary: Simple module to parse ISO 8601 dates Home-page: https://bitbucket.org/micktwomey/pyiso8601 Author: Michael Twomey @@ -13,7 +13,7 @@ >>> import iso8601 >>> iso8601.parse_date("2007-01-25T12:00:00Z") - datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>) + datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.Utc>) >>> See the LICENSE file for the license this package is released under. @@ -47,7 +47,7 @@ Time Zones ---------- - - Nothing uses the default timezone given (UTC). + - Nothing, will use the default timezone given (which in turn defaults to UTC). - Z (UTC) - +/-hh:mm - +/-hhmm @@ -65,7 +65,8 @@ Homepage ======== - - https://bitbucket.org/micktwomey/pyiso8601/ + - Documentation: http://pyiso8601.readthedocs.org/ + - Source: https://bitbucket.org/micktwomey/pyiso8601/ This was originally hosted at https://code.google.com/p/pyiso8601/ @@ -100,7 +101,10 @@ - Python 2.7 - Python 3.2 - Python 3.3 + - Python 3.4 + - Python 3.5 - PyPy + - PyPy 3 Python 3.0 and 3.1 are untested but should work (tests didn't run under them when last tried). @@ -111,6 +115,16 @@ Changes ======= + 0.1.11 + ------ + + * Remove logging (thanks to Quentin Pradet in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/6/remove-debug-logging/diff) + * Add support for , as separator for fractional part (thanks to ecksun in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/5/add-support-for-as-separator-for/diff) + * Add Python 3.4 and 3.5 to tox test config. + * Add PyPy 3 to tox test config. + * Link to documentation at http://pyiso8601.readthedocs.org/ + + 0.1.10 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/README.rst new/iso8601-0.1.11/README.rst --- old/iso8601-0.1.10/README.rst 2014-02-27 16:14:09.000000000 +0100 +++ new/iso8601-0.1.11/README.rst 2015-11-03 17:03:37.000000000 +0100 @@ -5,7 +5,7 @@ >>> import iso8601 >>> iso8601.parse_date("2007-01-25T12:00:00Z") -datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>) +datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.Utc>) >>> See the LICENSE file for the license this package is released under. @@ -39,7 +39,7 @@ Time Zones ---------- -- Nothing uses the default timezone given (UTC). +- Nothing, will use the default timezone given (which in turn defaults to UTC). - Z (UTC) - +/-hh:mm - +/-hhmm @@ -57,7 +57,8 @@ Homepage ======== -- https://bitbucket.org/micktwomey/pyiso8601/ +- Documentation: http://pyiso8601.readthedocs.org/ +- Source: https://bitbucket.org/micktwomey/pyiso8601/ This was originally hosted at https://code.google.com/p/pyiso8601/ @@ -92,7 +93,10 @@ - Python 2.7 - Python 3.2 - Python 3.3 +- Python 3.4 +- Python 3.5 - PyPy +- PyPy 3 Python 3.0 and 3.1 are untested but should work (tests didn't run under them when last tried). @@ -103,6 +107,16 @@ Changes ======= +0.1.11 +------ + +* Remove logging (thanks to Quentin Pradet in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/6/remove-debug-logging/diff) +* Add support for , as separator for fractional part (thanks to ecksun in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/5/add-support-for-as-separator-for/diff) +* Add Python 3.4 and 3.5 to tox test config. +* Add PyPy 3 to tox test config. +* Link to documentation at http://pyiso8601.readthedocs.org/ + + 0.1.10 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/dev-requirements.txt new/iso8601-0.1.11/dev-requirements.txt --- old/iso8601-0.1.10/dev-requirements.txt 2014-02-27 16:14:09.000000000 +0100 +++ new/iso8601-0.1.11/dev-requirements.txt 2015-11-03 13:01:03.000000000 +0100 @@ -1,4 +1,5 @@ devpi>=1.2.1 pytest>=2.5.2 +Sphinx>=1.2.1 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.10/iso8601/iso8601.py new/iso8601-0.1.11/iso8601/iso8601.py --- old/iso8601-0.1.10/iso8601/iso8601.py 2014-02-27 16:14:09.000000000 +0100 +++ new/iso8601-0.1.11/iso8601/iso8601.py 2015-11-03 13:07:12.000000000 +0100 @@ -14,13 +14,10 @@ tzinfo ) from decimal import Decimal -import logging import sys import re -__all__ = ["parse_date", "ParseError"] - -LOG = logging.getLogger(__name__) +__all__ = ["parse_date", "ParseError", "UTC"] if sys.version_info >= (3, 0, 0): _basestring = str @@ -52,7 +49,7 @@ (:{0,1}(?P<minute>[0-9]{2})){0,1} ( :{0,1}(?P<second>[0-9]{1,2}) - (\.(?P<second_fraction>[0-9]+)){0,1} + ([.,](?P<second_fraction>[0-9]+)){0,1} ){0,1} (?P<timezone> Z @@ -79,7 +76,7 @@ # Yoinked from python docs ZERO = timedelta(0) class Utc(tzinfo): - """UTC + """UTC Timezone """ def utcoffset(self, dt): @@ -91,6 +88,9 @@ def dst(self, dt): return ZERO + def __repr__(self): + return "<iso8601.Utc>" + UTC = Utc() class FixedOffset(tzinfo): @@ -137,7 +137,6 @@ """ value = d.get(key) or default - LOG.debug("Got %r for %r with default %r", value, key, default) if (value in ["", None]) and default_to_zero: return 0 if value is None: @@ -174,6 +173,15 @@ have dates without a timezone (not strictly correct). In this case the default timezone specified in default_timezone is used. This is UTC by default. + + :param datestring: The date to parse as a string + :param default_timezone: A datetime tzinfo instance to use when no timezone + is specified in the datestring. If this is set to + None then a naive datetime object is returned. + :returns: A datetime.datetime instance + :raises: ParseError when there is a problem parsing the date or + constructing the datetime instance. + """ if not isinstance(datestring, _basestring): raise ParseError("Expecting a string %r" % datestring) @@ -181,7 +189,6 @@ if not m: raise ParseError("Unable to parse date string %r" % datestring) groups = m.groupdict() - LOG.debug("Parsed %s into %s with default timezone %s", datestring, groups, default_timezone) tz = parse_timezone(groups, default_timezone=default_timezone) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/iso8601/test_iso8601.py new/iso8601-0.1.11/iso8601/test_iso8601.py --- old/iso8601-0.1.10/iso8601/test_iso8601.py 2014-02-27 16:14:09.000000000 +0100 +++ new/iso8601-0.1.11/iso8601/test_iso8601.py 2015-11-03 13:01:03.000000000 +0100 @@ -77,6 +77,7 @@ ("1997-08-29T06:14:00.000123Z", datetime.datetime(1997, 8, 29, 6, 14, 0, 123, iso8601.UTC), "1997-08-29T06:14:00.000123+00:00"), # https://bitbucket.org/micktwomey/pyiso8601/issue/9/regression-parsing-microseconds ("2014-02", datetime.datetime(2014, 2, 1, 0, 0, 0, 0, iso8601.UTC), "2014-02-01T00:00:00+00:00"), # https://bitbucket.org/micktwomey/pyiso8601/issue/14/regression-yyyy-mm-no-longer-parses ("2014", datetime.datetime(2014, 1, 1, 0, 0, 0, 0, iso8601.UTC), "2014-01-01T00:00:00+00:00"), # YYYY + ("1997-08-29T06:14:00,000123Z", datetime.datetime(1997, 8, 29, 6, 14, 0, 123, iso8601.UTC), "1997-08-29T06:14:00.000123+00:00"), # Use , as decimal separator ]) def test_parse_valid_date(valid_date, expected_datetime, isoformat): parsed = iso8601.parse_date(valid_date) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/iso8601.egg-info/PKG-INFO new/iso8601-0.1.11/iso8601.egg-info/PKG-INFO --- old/iso8601-0.1.10/iso8601.egg-info/PKG-INFO 2014-02-27 16:14:09.000000000 +0100 +++ 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.10 +Version: 0.1.11 Summary: Simple module to parse ISO 8601 dates Home-page: https://bitbucket.org/micktwomey/pyiso8601 Author: Michael Twomey @@ -13,7 +13,7 @@ >>> import iso8601 >>> iso8601.parse_date("2007-01-25T12:00:00Z") - datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>) + datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.Utc>) >>> See the LICENSE file for the license this package is released under. @@ -47,7 +47,7 @@ Time Zones ---------- - - Nothing uses the default timezone given (UTC). + - Nothing, will use the default timezone given (which in turn defaults to UTC). - Z (UTC) - +/-hh:mm - +/-hhmm @@ -65,7 +65,8 @@ Homepage ======== - - https://bitbucket.org/micktwomey/pyiso8601/ + - Documentation: http://pyiso8601.readthedocs.org/ + - Source: https://bitbucket.org/micktwomey/pyiso8601/ This was originally hosted at https://code.google.com/p/pyiso8601/ @@ -100,7 +101,10 @@ - Python 2.7 - Python 3.2 - Python 3.3 + - Python 3.4 + - Python 3.5 - PyPy + - PyPy 3 Python 3.0 and 3.1 are untested but should work (tests didn't run under them when last tried). @@ -111,6 +115,16 @@ Changes ======= + 0.1.11 + ------ + + * Remove logging (thanks to Quentin Pradet in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/6/remove-debug-logging/diff) + * Add support for , as separator for fractional part (thanks to ecksun in https://bitbucket.org/micktwomey/pyiso8601/pull-requests/5/add-support-for-as-separator-for/diff) + * Add Python 3.4 and 3.5 to tox test config. + * Add PyPy 3 to tox test config. + * Link to documentation at http://pyiso8601.readthedocs.org/ + + 0.1.10 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/setup.cfg new/iso8601-0.1.11/setup.cfg --- old/iso8601-0.1.10/setup.cfg 2014-02-27 16:14:10.000000000 +0100 +++ new/iso8601-0.1.11/setup.cfg 2015-11-03 17:11:42.000000000 +0100 @@ -1,5 +1,5 @@ [egg_info] +tag_build = tag_svn_revision = 0 tag_date = 0 -tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/iso8601-0.1.10/setup.py new/iso8601-0.1.11/setup.py --- old/iso8601-0.1.10/setup.py 2014-02-27 16:14:09.000000000 +0100 +++ 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.10", + 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.10/tox.ini new/iso8601-0.1.11/tox.ini --- old/iso8601-0.1.10/tox.ini 2014-02-27 16:14:09.000000000 +0100 +++ 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,pypy +envlist = py26,py27,py32,py33,py34,py35,pypy,pypy3 [testenv] deps=pytest>=2.4.2
