commit python3-dateutil for openSUSE:Factory

Hello community, here is the log from the commit of package python3-dateutil for openSUSE:Factory checked in at 2016-03-31 13:02:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-dateutil (Old) and /work/SRC/openSUSE:Factory/.python3-dateutil.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-dateutil" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-dateutil/python3-dateutil.changes 2016-03-21 12:45:16.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-dateutil.new/python3-dateutil.changes 2016-03-31 13:02:26.000000000 +0200 @@ -1,0 +2,9 @@ +Tue Mar 29 02:11:42 UTC 2016 - arun@gmx.de + +- update to version 2.5.2: + * Updated zoneinfo to 2016c + * Fixed parser bug where yearfirst and dayfirst parameters were not + being respected when no separator was present. (gh issue #81 and + #217, pr #229) + +------------------------------------------------------------------- Old: ---- python-dateutil-2.5.1.tar.gz New: ---- python-dateutil-2.5.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-dateutil.spec ++++++ --- /var/tmp/diff_new_pack.z526qZ/_old 2016-03-31 13:02:27.000000000 +0200 +++ /var/tmp/diff_new_pack.z526qZ/_new 2016-03-31 13:02:27.000000000 +0200 @@ -20,7 +20,7 @@ Summary: A Python Datetime Library License: BSD-3-Clause Group: Development/Libraries/Python -Version: 2.5.1 +Version: 2.5.2 Release: 0 Source0: http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ python-dateutil-2.5.1.tar.gz -> python-dateutil-2.5.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/NEWS new/python-dateutil-2.5.2/NEWS --- old/python-dateutil-2.5.1/NEWS 2016-03-17 16:08:44.000000000 +0100 +++ new/python-dateutil-2.5.2/NEWS 2016-03-27 17:39:30.000000000 +0200 @@ -1,3 +1,9 @@ +Version 2.5.2 +------------- +- Updated zoneinfo to 2016c +- Fixed parser bug where yearfirst and dayfirst parameters were not being + respected when no separator was present. (gh issue #81 and #217, pr #229) + Version 2.5.1 ------------- - Updated zoneinfo to 2016b diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/PKG-INFO new/python-dateutil-2.5.2/PKG-INFO --- old/python-dateutil-2.5.1/PKG-INFO 2016-03-17 16:09:42.000000000 +0100 +++ new/python-dateutil-2.5.2/PKG-INFO 2016-03-27 17:40:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-dateutil -Version: 2.5.1 +Version: 2.5.2 Summary: Extensions to the standard Python datetime module Home-page: https://dateutil.readthedocs.org Author: Paul Ganssle, Yaron de Leeuw diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/dateutil/__init__.py new/python-dateutil-2.5.2/dateutil/__init__.py --- old/python-dateutil-2.5.1/dateutil/__init__.py 2016-03-17 15:45:31.000000000 +0100 +++ new/python-dateutil-2.5.2/dateutil/__init__.py 2016-03-27 17:36:37.000000000 +0200 @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "2.5.1" +__version__ = "2.5.2" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/dateutil/parser.py new/python-dateutil-2.5.2/dateutil/parser.py --- old/python-dateutil-2.5.1/dateutil/parser.py 2016-03-14 23:35:25.000000000 +0100 +++ new/python-dateutil-2.5.2/dateutil/parser.py 2016-03-27 17:33:17.000000000 +0200 @@ -464,7 +464,10 @@ self.find_probable_year_index(_timelex.split(self.tzstr)) == 0 or \ (yearfirst and self[1] <= 12 and self[2] <= 31): # 99-01-01 - year, month, day = self + if dayfirst: + year, day, month = self + else: + year, month, day = self elif self[0] > 12 or (dayfirst and self[1] <= 12): # 13-01-01 day, month, year = self diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/dateutil/test/test_parser.py new/python-dateutil-2.5.2/dateutil/test/test_parser.py --- old/python-dateutil-2.5.1/dateutil/test/test_parser.py 2016-03-15 18:30:35.000000000 +0100 +++ new/python-dateutil-2.5.2/dateutil/test/test_parser.py 2016-03-27 17:33:17.000000000 +0200 @@ -777,3 +777,40 @@ self.assertEqual(parse(pstring), datetime(1924, 8, 29)) + def testNoYearFirstNoDayFirst(self): + dtstr = '090107' + + # Should be MMDDYY + self.assertEqual(parse(dtstr), + datetime(2007, 9, 1)) + + self.assertEqual(parse(dtstr, yearfirst=False, dayfirst=False), + datetime(2007, 9, 1)) + + def testYearFirst(self): + dtstr = '090107' + + # Should be MMDDYY + self.assertEqual(parse(dtstr, yearfirst=True), + datetime(2009, 1, 7)) + + self.assertEqual(parse(dtstr, yearfirst=True, dayfirst=False), + datetime(2009, 1, 7)) + + def testDayFirst(self): + dtstr = '090107' + + # Should be DDMMYY + self.assertEqual(parse(dtstr, dayfirst=True), + datetime(2007, 1, 9)) + + self.assertEqual(parse(dtstr, yearfirst=False, dayfirst=True), + datetime(2007, 1, 9)) + + def testDayFirstYearFirst(self): + dtstr = '090107' + # Should be YYDDMM + self.assertEqual(parse(dtstr, yearfirst=True, dayfirst=True), + datetime(2009, 7, 1)) + + Files old/python-dateutil-2.5.1/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz and new/python-dateutil-2.5.2/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/python_dateutil.egg-info/PKG-INFO new/python-dateutil-2.5.2/python_dateutil.egg-info/PKG-INFO --- old/python-dateutil-2.5.1/python_dateutil.egg-info/PKG-INFO 2016-03-17 16:09:41.000000000 +0100 +++ new/python-dateutil-2.5.2/python_dateutil.egg-info/PKG-INFO 2016-03-27 17:40:31.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-dateutil -Version: 2.5.1 +Version: 2.5.2 Summary: Extensions to the standard Python datetime module Home-page: https://dateutil.readthedocs.org Author: Paul Ganssle, Yaron de Leeuw diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/setup.cfg new/python-dateutil-2.5.2/setup.cfg --- old/python-dateutil-2.5.1/setup.cfg 2016-03-17 16:09:42.000000000 +0100 +++ new/python-dateutil-2.5.2/setup.cfg 2016-03-27 17:40:33.000000000 +0200 @@ -2,7 +2,7 @@ universal = 1 [egg_info] -tag_date = 0 tag_build = +tag_date = 0 tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-dateutil-2.5.1/zonefile_metadata.json new/python-dateutil-2.5.2/zonefile_metadata.json --- old/python-dateutil-2.5.1/zonefile_metadata.json 2016-03-15 18:30:35.000000000 +0100 +++ new/python-dateutil-2.5.2/zonefile_metadata.json 2016-03-27 17:33:17.000000000 +0200 @@ -4,9 +4,9 @@ "https://dateutil.github.io/tzdata/tzdata/", "ftp://ftp.iana.org/tz/releases/" ], - "tzdata_file": "tzdata2016b.tar.gz", - "tzdata_file_sha512": "6d30215ba3289a5b85a632d635b76a54c3c08d97e426d6bd89f83c4efd252e43959593b21cca9d2b185f3845358908946cc308365accbee94f126ad3057cf838", - "tzversion": "2016b", + "tzdata_file": "tzdata2016c.tar.gz", + "tzdata_file_sha512": "03eab77c8b3176da1dd17d1d9062b151036b01d224f1e4b60f34a2db6899150431f34f4d9f39652648aae3a55326fd6f85d6deefe3f27b36eaed9ef39ed3f53c", + "tzversion": "2016c", "zonegroups": [ "africa", "antarctica",
participants (1)
-
root@hilbert.suse.de