Hello community, here is the log from the commit of package python-jdatetime for openSUSE:Leap:15.2 checked in at 2020-03-09 18:14:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-jdatetime (Old) and /work/SRC/openSUSE:Leap:15.2/.python-jdatetime.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jdatetime" Mon Mar 9 18:14:19 2020 rev:2 rq:782732 version:3.6.2 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-jdatetime/python-jdatetime.changes 2020-02-11 23:24:49.121251369 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-jdatetime.new.26092/python-jdatetime.changes 2020-03-09 18:14:38.169419193 +0100 @@ -1,0 +2,7 @@ +Mon Mar 2 04:02:53 UTC 2020 - Steve Kowalik <[email protected]> + +- Update to version 3.6.2: + * Support for python 3.7 and 3.8 + * Fixed %Y length in strptime + +------------------------------------------------------------------- Old: ---- v3.6.0.tar.gz New: ---- v3.6.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jdatetime.spec ++++++ --- /var/tmp/diff_new_pack.W5Zuqz/_old 2020-03-09 18:14:38.417419314 +0100 +++ /var/tmp/diff_new_pack.W5Zuqz/_new 2020-03-09 18:14:38.421419315 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-jdatetime # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jdatetime -Version: 3.6.0 +Version: 3.6.2 Release: 0 Summary: Jalali datetime binding for python License: Python-2.0 ++++++ v3.6.0.tar.gz -> v3.6.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-jalali-3.6.0/.travis.yml new/python-jalali-3.6.2/.travis.yml --- old/python-jalali-3.6.0/.travis.yml 2019-09-10 10:49:31.000000000 +0200 +++ new/python-jalali-3.6.2/.travis.yml 2019-10-24 10:01:29.000000000 +0200 @@ -8,6 +8,8 @@ - "3.4" - "3.5" - "3.6" + - "3.7" + - "3.8" - "nightly" before_script: - "pep8 --ignore=E501 jdatetime/__init__.py" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-jalali-3.6.0/CHANGELOG.md new/python-jalali-3.6.2/CHANGELOG.md --- old/python-jalali-3.6.0/CHANGELOG.md 2019-09-10 10:49:31.000000000 +0200 +++ new/python-jalali-3.6.2/CHANGELOG.md 2019-10-24 10:01:29.000000000 +0200 @@ -1,5 +1,15 @@ # Changelog +## [3.6.2] - 2019-10-24 +### Add +* Support for python 3.7 and 3.8 + + +## [3.6.1] - 2019-09-19 +### Fixed +* Fixed %Y length in strptime + + ## [3.6.0] - 2019-09-10 ### Fixed * improve fromgregorian to handle date and datetime input in Pythonic way diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-jalali-3.6.0/jdatetime/__init__.py new/python-jalali-3.6.2/jdatetime/__init__.py --- old/python-jalali-3.6.0/jdatetime/__init__.py 2019-09-10 10:49:31.000000000 +0200 +++ new/python-jalali-3.6.2/jdatetime/__init__.py 2019-10-24 10:01:29.000000000 +0200 @@ -22,7 +22,7 @@ from jdatetime.jalali import (GregorianToJalali, JalaliToGregorian, j_days_in_month) -__VERSION__ = "3.6.0" +__VERSION__ = "3.6.2" MINYEAR = 1 MAXYEAR = 9377 @@ -625,7 +625,10 @@ try: sign = "+" - diff = self.tzinfo.utcoffset(self) + try: + diff = self.tzinfo.utcoffset(self) + except TypeError: + diff = self.tzinfo.utcoffset(None) diff_sec = diff.seconds if diff.days > 0 or diff.days < -1: raise ValueError( @@ -644,6 +647,8 @@ try: format = format.replace("%Z", self.tzinfo.tzname(self)) + except TypeError: + format = format.replace("%Z", self.tzinfo.tzname(None)) except AttributeError: format = format.replace("%Z", '') @@ -896,7 +901,7 @@ '%m': ['[0-9]{1,2}', 'month'], '%M': ['[0-9]{1,2}', 'minute'], '%S': ['[0-9]{1,2}', 'second'], - '%Y': ['[0-9]{4,5}', 'year'], + '%Y': ['[0-9]{4}', 'year'], } regex = format find = _re.compile("(%[a-zA-Z])") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-jalali-3.6.0/setup.py new/python-jalali-3.6.2/setup.py --- old/python-jalali-3.6.0/setup.py 2019-09-10 10:49:31.000000000 +0200 +++ new/python-jalali-3.6.2/setup.py 2019-10-24 10:01:29.000000000 +0200 @@ -3,7 +3,7 @@ setup( name='jdatetime', - version='3.6.0', + version='3.6.2', packages=['jdatetime',], license='Python Software Foundation License', keywords='Jalali implementation of Python datetime', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-jalali-3.6.0/t/test.py new/python-jalali-3.6.2/t/test.py --- old/python-jalali-3.6.0/t/test.py 2019-09-10 10:49:31.000000000 +0200 +++ new/python-jalali-3.6.2/t/test.py 2019-10-24 10:01:29.000000000 +0200 @@ -373,6 +373,14 @@ dt2 = jdatetime.datetime(1363, 6, 6, 12, 13, 14) self.assertEqual(True, dt1 == dt2) + + def test_strptime_bare(self): + date_string = "13630606121314" + date_format = "%Y%m%d%H%M%S" + dt1 = jdatetime.datetime.strptime(date_string, date_format) + dt2 = jdatetime.datetime(1363, 6, 6, 12, 13, 14) + + self.assertTrue(dt1 == dt2) def test_strptime_handles_alphabets_in_format(self): date_string = "1363-6-6T12:13:14"
