Hello community, here is the log from the commit of package python-tzlocal for openSUSE:Factory checked in at 2020-06-05 20:00:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tzlocal (Old) and /work/SRC/openSUSE:Factory/.python-tzlocal.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tzlocal" Fri Jun 5 20:00:04 2020 rev:11 rq:810919 version:2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tzlocal/python-tzlocal.changes 2020-03-27 00:20:17.260104584 +0100 +++ /work/SRC/openSUSE:Factory/.python-tzlocal.new.3606/python-tzlocal.changes 2020-06-05 20:00:12.507937487 +0200 @@ -1,0 +2,8 @@ +Tue Jun 2 17:17:59 UTC 2020 - Dirk Mueller <[email protected]> + +- update to 2.1: + - The is_dst flag is wrong for Europe/Dublin on some Unix releases. + I changed to another way of determining if DST is in effect or not. + - Added support for Python 3.7 and 3.8. Dropped 3.5 although it still works. + +------------------------------------------------------------------- Old: ---- 2.0.0.tar.gz New: ---- 2.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tzlocal.spec ++++++ --- /var/tmp/diff_new_pack.nblMR3/_old 2020-06-05 20:00:13.831942067 +0200 +++ /var/tmp/diff_new_pack.nblMR3/_new 2020-06-05 20:00:13.835942081 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname tzlocal Name: python-%{modname} -Version: 2.0.0 +Version: 2.1 Release: 0 Summary: tzinfo object for the local timezone License: MIT ++++++ 2.0.0.tar.gz -> 2.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tzlocal-2.0.0/.travis.yml new/tzlocal-2.1/.travis.yml --- old/tzlocal-2.0.0/.travis.yml 2019-07-23 17:12:14.000000000 +0200 +++ new/tzlocal-2.1/.travis.yml 2020-05-08 08:02:49.000000000 +0200 @@ -3,9 +3,10 @@ language: python python: - "2.7" - - "3.5" - "3.6" - - "nightly" # currently points to 3.7-dev + - "3.7" + - "3.8" + - "nightly" # command to run tests install: # Nothing needed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tzlocal-2.0.0/CHANGES.txt new/tzlocal-2.1/CHANGES.txt --- old/tzlocal-2.0.0/CHANGES.txt 2019-07-23 17:12:14.000000000 +0200 +++ new/tzlocal-2.1/CHANGES.txt 2020-05-08 08:02:49.000000000 +0200 @@ -1,6 +1,21 @@ Changes ======= +2.1 (2020-05-08) +---------------- + +- No changes. + + +2.1b1 (2020-02-08) +------------------ + +- The is_dst flag is wrong for Europe/Dublin on some Unix releases. + I changed to another way of determining if DST is in effect or not. + +- Added support for Python 3.7 and 3.8. Dropped 3.5 although it still works. + + 2.0.0 (2019-07-23) ------------------ @@ -14,7 +29,7 @@ This change is because Docker images often have no configuration at all, and the unix utilities will then default to UTC, so we follow that. -- If tzlocal on Unix finds a timezone name in a /etc config file, then +- If tzlocal on Unix finds a timezone name in a /etc config file, then tzlocal now verifies that the timezone it fouds has the same offset as the local computer is configured with. If it doesn't, something is configured incorrectly. (Victor Torres, regebro) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tzlocal-2.0.0/setup.py new/tzlocal-2.1/setup.py --- old/tzlocal-2.0.0/setup.py 2019-07-23 17:12:14.000000000 +0200 +++ new/tzlocal-2.1/setup.py 2020-05-08 08:02:49.000000000 +0200 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages from io import open -version = '2.0.0' +version = '2.1' with open("README.rst", 'rt', encoding='UTF-8') as file: long_description = file.read() + '\n\n' @@ -22,8 +22,9 @@ 'Operating System :: MacOS :: MacOS X', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='timezone pytz', author='Lennart Regebro', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tzlocal-2.0.0/tzlocal/unix.py new/tzlocal-2.1/tzlocal/unix.py --- old/tzlocal-2.0.0/tzlocal/unix.py 2019-07-23 17:12:14.000000000 +0200 +++ new/tzlocal-2.1/tzlocal/unix.py 2020-05-08 08:02:49.000000000 +0200 @@ -138,7 +138,7 @@ if os.path.exists(tzpath) and os.path.islink(tzpath): tzpath = os.path.realpath(tzpath) start = tzpath.find("/")+1 - while start is not 0: + while start != 0: tzpath = tzpath[start:] try: return pytz.timezone(tzpath) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tzlocal-2.0.0/tzlocal/utils.py new/tzlocal-2.1/tzlocal/utils.py --- old/tzlocal-2.0.0/tzlocal/utils.py 2019-07-23 17:12:14.000000000 +0200 +++ new/tzlocal-2.1/tzlocal/utils.py 2020-05-08 08:02:49.000000000 +0200 @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +import time import datetime +import calendar def get_system_offset(): @@ -11,8 +13,14 @@ To keep compatibility with Windows, we're always importing time module here. """ - import time - if time.daylight and time.localtime().tm_isdst > 0: + + localtime = calendar.timegm(time.localtime()) + gmtime = calendar.timegm(time.gmtime()) + offset = gmtime - localtime + # We could get the localtime and gmtime on either side of a second switch + # so we check that the difference is less than one minute, because nobody + # has that small DST differences. + if abs(offset - time.altzone) < 60: return -time.altzone else: return -time.timezone diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tzlocal-2.0.0/tzlocal/windows_tz.py new/tzlocal-2.1/tzlocal/windows_tz.py --- old/tzlocal-2.0.0/tzlocal/windows_tz.py 2019-07-23 17:12:14.000000000 +0200 +++ new/tzlocal-2.1/tzlocal/windows_tz.py 2020-05-08 08:02:49.000000000 +0200 @@ -87,6 +87,7 @@ 'Pacific Standard Time (Mexico)': 'America/Tijuana', 'Pakistan Standard Time': 'Asia/Karachi', 'Paraguay Standard Time': 'America/Asuncion', + 'Qyzylorda Standard Time': 'Asia/Qyzylorda', 'Romance Standard Time': 'Europe/Paris', 'Russia Time Zone 10': 'Asia/Srednekolymsk', 'Russia Time Zone 11': 'Asia/Kamchatka', @@ -127,6 +128,7 @@ 'Ulaanbaatar Standard Time': 'Asia/Ulaanbaatar', 'Venezuela Standard Time': 'America/Caracas', 'Vladivostok Standard Time': 'Asia/Vladivostok', + 'Volgograd Standard Time': 'Europe/Volgograd', 'W. Australia Standard Time': 'Australia/Perth', 'W. Central Africa Standard Time': 'Africa/Lagos', 'W. Europe Standard Time': 'Europe/Berlin', @@ -287,7 +289,7 @@ 'America/Mendoza': 'Argentina Standard Time', 'America/Menominee': 'Central Standard Time', 'America/Merida': 'Central Standard Time (Mexico)', - 'America/Metlakatla': 'Pacific Standard Time', + 'America/Metlakatla': 'Alaskan Standard Time', 'America/Mexico_City': 'Central Standard Time (Mexico)', 'America/Miquelon': 'Saint Pierre Standard Time', 'America/Moncton': 'Atlantic Standard Time', @@ -347,13 +349,13 @@ 'America/Winnipeg': 'Central Standard Time', 'America/Yakutat': 'Alaskan Standard Time', 'America/Yellowknife': 'Mountain Standard Time', - 'Antarctica/Casey': 'W. Australia Standard Time', + 'Antarctica/Casey': 'Singapore Standard Time', 'Antarctica/Davis': 'SE Asia Standard Time', 'Antarctica/DumontDUrville': 'West Pacific Standard Time', 'Antarctica/Macquarie': 'Central Pacific Standard Time', 'Antarctica/Mawson': 'West Asia Standard Time', 'Antarctica/McMurdo': 'New Zealand Standard Time', - 'Antarctica/Palmer': 'Magallanes Standard Time', + 'Antarctica/Palmer': 'SA Eastern Standard Time', 'Antarctica/Rothera': 'SA Eastern Standard Time', 'Antarctica/South_Pole': 'New Zealand Standard Time', 'Antarctica/Syowa': 'E. Africa Standard Time', @@ -424,7 +426,7 @@ 'Asia/Pyongyang': 'North Korea Standard Time', 'Asia/Qatar': 'Arab Standard Time', 'Asia/Qostanay': 'Central Asia Standard Time', - 'Asia/Qyzylorda': 'West Asia Standard Time', + 'Asia/Qyzylorda': 'Qyzylorda Standard Time', 'Asia/Rangoon': 'Myanmar Standard Time', 'Asia/Riyadh': 'Arab Standard Time', 'Asia/Saigon': 'SE Asia Standard Time', @@ -592,7 +594,7 @@ 'Europe/Vatican': 'W. Europe Standard Time', 'Europe/Vienna': 'W. Europe Standard Time', 'Europe/Vilnius': 'FLE Standard Time', - 'Europe/Volgograd': 'Russian Standard Time', + 'Europe/Volgograd': 'Volgograd Standard Time', 'Europe/Warsaw': 'Central European Standard Time', 'Europe/Zagreb': 'Central European Standard Time', 'Europe/Zaporozhye': 'FLE Standard Time',
