Hello community, here is the log from the commit of package python3-pytz for openSUSE:Factory checked in at 2016-07-20 09:17:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pytz (Old) and /work/SRC/openSUSE:Factory/.python3-pytz.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-pytz" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pytz/python3-pytz.changes 2016-05-17 17:12:22.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-pytz.new/python3-pytz.changes 2016-07-20 09:17:16.000000000 +0200 @@ -1,0 +2,13 @@ +Thu Jul 14 15:14:16 UTC 2016 - a...@gmx.de + +- update to version 2016.6.1: + (no changelog available) + +------------------------------------------------------------------- +Wed Jul 13 15:30:44 UTC 2016 - a...@gmx.de + +- update to version 2016.6: + * Fix old example insisting normalize() is necessary after + astimezone() conversion + +------------------------------------------------------------------- @@ -7 +19,0 @@ - Old: ---- pytz-2016.4.tar.bz2 New: ---- pytz-2016.6.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pytz.spec ++++++ --- /var/tmp/diff_new_pack.EIsLLB/_old 2016-07-20 09:17:17.000000000 +0200 +++ /var/tmp/diff_new_pack.EIsLLB/_new 2016-07-20 09:17:17.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-pytz -Version: 2016.4 +Version: 2016.6.1 Release: 0 Url: http://pytz.sourceforge.net Summary: World timezone definitions, modern and historical ++++++ pytz-2016.4.tar.bz2 -> pytz-2016.6.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/PKG-INFO new/pytz-2016.6.1/PKG-INFO --- old/pytz-2016.4/PKG-INFO 2016-04-22 15:11:10.000000000 +0200 +++ new/pytz-2016.6.1/PKG-INFO 2016-07-14 10:20:40.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pytz -Version: 2016.4 +Version: 2016.6.1 Summary: World timezone definitions, modern and historical Home-page: http://pythonhosted.org/pytz Author: Stuart Bishop @@ -549,10 +549,11 @@ database. The latest version can be downloaded from the `Python Package Index <http://pypi.python.org/pypi/pytz/>`_. The code that is used to generate this distribution is hosted on launchpad.net and available - using the `Bazaar version control system <http://bazaar-vcs.org>`_ - using:: + using git:: - bzr branch lp:pytz + git clone https://git.launchpad.net/pytz + + A mirror on github is also available at https://github.com/stub42/pytz Announcements of new releases are made on `Launchpad <https://launchpad.net/pytz>`_, and the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/README.txt new/pytz-2016.6.1/README.txt --- old/pytz-2016.4/README.txt 2016-04-22 14:58:11.000000000 +0200 +++ new/pytz-2016.6.1/README.txt 2016-07-14 10:20:28.000000000 +0200 @@ -540,10 +540,11 @@ database. The latest version can be downloaded from the `Python Package Index <http://pypi.python.org/pypi/pytz/>`_. The code that is used to generate this distribution is hosted on launchpad.net and available -using the `Bazaar version control system <http://bazaar-vcs.org>`_ -using:: +using git:: - bzr branch lp:pytz + git clone https://git.launchpad.net/pytz + +A mirror on github is also available at https://github.com/stub42/pytz Announcements of new releases are made on `Launchpad <https://launchpad.net/pytz>`_, and the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/pytz/__init__.py new/pytz-2016.6.1/pytz/__init__.py --- old/pytz-2016.4/pytz/__init__.py 2016-04-22 14:58:11.000000000 +0200 +++ new/pytz-2016.6.1/pytz/__init__.py 2016-07-14 10:20:28.000000000 +0200 @@ -9,8 +9,8 @@ ''' # The IANA (nee Olson) database is updated several times a year. -OLSON_VERSION = '2016d' -VERSION = '2016.4' # Switching to pip compatible version numbering. +OLSON_VERSION = '2016f' +VERSION = '2016.6.1' # Switching to pip compatible version numbering. __version__ = VERSION OLSEN_VERSION = OLSON_VERSION # Old releases had this misspelling @@ -25,11 +25,6 @@ import sys, datetime, os.path, gettext -try: - from pkg_resources import resource_stream -except ImportError: - resource_stream = None - from pytz.exceptions import AmbiguousTimeError from pytz.exceptions import InvalidTimeError from pytz.exceptions import NonExistentTimeError @@ -57,7 +52,7 @@ ... UnicodeEncodeError: ... """ - s.encode('US-ASCII') # Raise an exception if not ASCII + s.encode('ASCII') # Raise an exception if not ASCII return s # But return the original string - not a byte string. else: # Python 2.x @@ -73,7 +68,7 @@ ... UnicodeEncodeError: ... """ - return s.encode('US-ASCII') + return s.encode('ASCII') def open_resource(name): @@ -88,11 +83,17 @@ raise ValueError('Bad path segment: %r' % part) filename = os.path.join(os.path.dirname(__file__), 'zoneinfo', *name_parts) - if not os.path.exists(filename) and resource_stream is not None: + if not os.path.exists(filename): # http://bugs.launchpad.net/bugs/383171 - we avoid using this # unless absolutely necessary to help when a broken version of # pkg_resources is installed. - return resource_stream(__name__, 'zoneinfo/' + name) + try: + from pkg_resources import resource_stream + except ImportError: + resource_stream = None + + if resource_stream is not None: + return resource_stream(__name__, 'zoneinfo/' + name) return open(filename, 'rb') @@ -404,9 +405,11 @@ def normalize(self, dt, is_dst=False): '''Correct the timezone information on the given datetime''' + if dt.tzinfo is self: + return dt if dt.tzinfo is None: raise ValueError('Naive time - no tzinfo set') - return dt.replace(tzinfo=self) + return dt.astimezone(self) def FixedOffset(offset, _tzinfos = {}): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/pytz/tests/test_docs.py new/pytz-2016.6.1/pytz/tests/test_docs.py --- old/pytz-2016.4/pytz/tests/test_docs.py 2016-04-22 14:58:11.000000000 +0200 +++ new/pytz-2016.6.1/pytz/tests/test_docs.py 2016-07-14 10:20:28.000000000 +0200 @@ -13,7 +13,7 @@ '''Confirm the README.txt is pure ASCII.''' f = open(README, 'rb') try: - f.read().decode('US-ASCII') + f.read().decode('ASCII') finally: f.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/pytz/tests/test_tzinfo.py new/pytz-2016.6.1/pytz/tests/test_tzinfo.py --- old/pytz-2016.4/pytz/tests/test_tzinfo.py 2016-04-22 14:58:11.000000000 +0200 +++ new/pytz-2016.6.1/pytz/tests/test_tzinfo.py 2016-07-14 10:20:28.000000000 +0200 @@ -21,8 +21,8 @@ # I test for expected version to ensure the correct version of pytz is # actually being tested. -EXPECTED_VERSION='2016.4' -EXPECTED_OLSON_VERSION='2016d' +EXPECTED_VERSION='2016.6.1' +EXPECTED_OLSON_VERSION='2016f' fmt = '%Y-%m-%d %H:%M:%S %Z%z' @@ -114,6 +114,12 @@ eastern = pytz.timezone('US/Eastern') self.assertTrue(eastern is pytz.timezone(unicode('US/Eastern'))) + def testStaticTzInfo(self): + # Ensure that static timezones are correctly detected, + # per lp:1602807 + static = pytz.timezone('Etc/GMT-4') + self.assertTrue(isinstance(static, StaticTzInfo)) + class PicklingTest(unittest.TestCase): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/pytz/tzfile.py new/pytz-2016.6.1/pytz/tzfile.py --- old/pytz-2016.4/pytz/tzfile.py 2016-04-22 14:58:11.000000000 +0200 +++ new/pytz-2016.6.1/pytz/tzfile.py 2016-07-14 10:20:28.000000000 +0200 @@ -15,13 +15,13 @@ def _byte_string(s): """Cast a string or byte string to an ASCII byte string.""" - return s.encode('US-ASCII') + return s.encode('ASCII') _NULL = _byte_string('\0') def _std_string(s): """Cast a string or byte string to an ASCII string.""" - return str(s.decode('US-ASCII')) + return str(s.decode('ASCII')) def build_tzinfo(zone, fp): head_fmt = '>4s c 15x 6l' @@ -66,7 +66,7 @@ i += 3 # Now build the timezone object - if len(transitions) == 0: + if len(ttinfo) ==1 or len(transitions) == 0: ttinfo[0][0], ttinfo[0][2] cls = type(zone, (StaticTzInfo,), dict( zone=zone, Files old/pytz-2016.4/pytz/zoneinfo/America/Cambridge_Bay and new/pytz-2016.6.1/pytz/zoneinfo/America/Cambridge_Bay differ Files old/pytz-2016.4/pytz/zoneinfo/America/Inuvik and new/pytz-2016.6.1/pytz/zoneinfo/America/Inuvik differ Files old/pytz-2016.4/pytz/zoneinfo/America/Iqaluit and new/pytz-2016.6.1/pytz/zoneinfo/America/Iqaluit differ Files old/pytz-2016.4/pytz/zoneinfo/America/Pangnirtung and new/pytz-2016.6.1/pytz/zoneinfo/America/Pangnirtung differ Files old/pytz-2016.4/pytz/zoneinfo/America/Rankin_Inlet and new/pytz-2016.6.1/pytz/zoneinfo/America/Rankin_Inlet differ Files old/pytz-2016.4/pytz/zoneinfo/America/Resolute and new/pytz-2016.6.1/pytz/zoneinfo/America/Resolute differ Files old/pytz-2016.4/pytz/zoneinfo/America/Yellowknife and new/pytz-2016.6.1/pytz/zoneinfo/America/Yellowknife differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Casey and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Casey differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Davis and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Davis differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/DumontDUrville and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/DumontDUrville differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Macquarie and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Macquarie differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Mawson and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Mawson differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Palmer and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Palmer differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Rothera and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Rothera differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Syowa and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Syowa differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Troll and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Troll differ Files old/pytz-2016.4/pytz/zoneinfo/Antarctica/Vostok and new/pytz-2016.6.1/pytz/zoneinfo/Antarctica/Vostok differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Almaty and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Almaty differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Aqtau and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Aqtau differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Aqtobe and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Aqtobe differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Baku and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Baku differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Barnaul and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Barnaul differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Novokuznetsk and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Novokuznetsk differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Novosibirsk and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Novosibirsk differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Oral and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Oral differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Qyzylorda and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Qyzylorda differ Files old/pytz-2016.4/pytz/zoneinfo/Asia/Tomsk and new/pytz-2016.6.1/pytz/zoneinfo/Asia/Tomsk differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+1 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+1 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+10 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+10 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+11 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+11 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+12 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+12 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+2 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+2 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+3 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+3 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+4 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+4 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+5 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+5 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+6 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+6 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+7 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+7 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+8 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+8 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT+9 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT+9 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-1 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-1 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-10 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-10 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-11 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-11 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-12 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-12 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-13 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-13 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-14 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-14 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-2 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-2 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-3 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-3 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-4 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-4 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-5 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-5 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-6 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-6 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-7 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-7 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-8 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-8 differ Files old/pytz-2016.4/pytz/zoneinfo/Etc/GMT-9 and new/pytz-2016.6.1/pytz/zoneinfo/Etc/GMT-9 differ Files old/pytz-2016.4/pytz/zoneinfo/Europe/Astrakhan and new/pytz-2016.6.1/pytz/zoneinfo/Europe/Astrakhan differ Files old/pytz-2016.4/pytz/zoneinfo/Europe/Kirov and new/pytz-2016.6.1/pytz/zoneinfo/Europe/Kirov differ Files old/pytz-2016.4/pytz/zoneinfo/Europe/Minsk and new/pytz-2016.6.1/pytz/zoneinfo/Europe/Minsk differ Files old/pytz-2016.4/pytz/zoneinfo/Europe/Ulyanovsk and new/pytz-2016.6.1/pytz/zoneinfo/Europe/Ulyanovsk differ Files old/pytz-2016.4/pytz/zoneinfo/Factory and new/pytz-2016.6.1/pytz/zoneinfo/Factory differ Files old/pytz-2016.4/pytz/zoneinfo/Indian/Kerguelen and new/pytz-2016.6.1/pytz/zoneinfo/Indian/Kerguelen differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytz-2016.4/pytz.egg-info/PKG-INFO new/pytz-2016.6.1/pytz.egg-info/PKG-INFO --- old/pytz-2016.4/pytz.egg-info/PKG-INFO 2016-04-22 15:11:10.000000000 +0200 +++ new/pytz-2016.6.1/pytz.egg-info/PKG-INFO 2016-07-14 10:20:40.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pytz -Version: 2016.4 +Version: 2016.6.1 Summary: World timezone definitions, modern and historical Home-page: http://pythonhosted.org/pytz Author: Stuart Bishop @@ -549,10 +549,11 @@ database. The latest version can be downloaded from the `Python Package Index <http://pypi.python.org/pypi/pytz/>`_. The code that is used to generate this distribution is hosted on launchpad.net and available - using the `Bazaar version control system <http://bazaar-vcs.org>`_ - using:: + using git:: - bzr branch lp:pytz + git clone https://git.launchpad.net/pytz + + A mirror on github is also available at https://github.com/stub42/pytz Announcements of new releases are made on `Launchpad <https://launchpad.net/pytz>`_, and the