Accepting request 538228 from home:apersaud:branches:devel:languages:python

update to latest version

OBS-URL: https://build.opensuse.org/request/show/538228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=65
This commit is contained in:
Jan Matejek 2017-11-02 15:25:27 +00:00 committed by Git OBS Bridge
parent ba2a6845a2
commit 19bffb779e
7 changed files with 43 additions and 24 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Nov 2 03:10:52 UTC 2017 - arun@gmx.de
- updated system_zoneinfo.patch
- update to version 2017.3:
* PYTZ_TZDATADIR environment variable override of database location
* Allow pickles from Python2 to be unpickled with Python3
* Remove unmaintained CHANGES.txt
* Test with Python 3.6
* Detect compiled tzfiles by sniffing magic
* Squashed 'tz/' changes from f8ebe3a64..e6ff702de
* Be explicit about supported Python versions
* Fixed README.txt to not issue warnings.
-------------------------------------------------------------------
Wed Jun 28 12:07:24 UTC 2017 - tbechtold@suse.com

View File

@ -19,7 +19,7 @@
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytz
Version: 2017.2
Version: 2017.3
Release: 0
Summary: World timezone definitions, modern and historical
License: MIT

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5c056e8f62d45ba8215e5cb8f50dfccb198b4b9fbea8500674f3443e4689589
size 502168

View File

@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEABECAAYFAljcw1wACgkQAfqZj7rGN0r+EgCcCm8zIZ/sk27xLRMFWsPCN+cI
8o4AniaRsoJ4gVx31u9dJvU14K4pqalE
=Q5A8
-----END PGP SIGNATURE-----

3
pytz-2017.3.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fae4cffc040921b8a2d60c6cf0b5d662c1190fe54d718271db4eb17d44a185b7
size 527977

7
pytz-2017.3.zip.asc Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEABECAAYFAln3MrQACgkQAfqZj7rGN0pzowCggUYhB+WYN2w6SPryflzhs1II
HxQAn1a0zf16Al5FA4ATvq4R26PDThut
=qZkB
-----END PGP SIGNATURE-----

View File

@ -2,23 +2,27 @@ Index: pytz-2016.10/pytz/__init__.py
===================================================================
--- pytz-2016.10.orig/pytz/__init__.py
+++ pytz-2016.10/pytz/__init__.py
@@ -81,19 +81,7 @@ def open_resource(name):
@@ -87,23 +87,7 @@ def open_resource(name):
for part in name_parts:
if part == os.path.pardir or os.path.sep in part:
raise ValueError('Bad path segment: %r' % part)
- filename = os.path.join(os.path.dirname(__file__),
- 'zoneinfo', *name_parts)
- 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.
- try:
- from pkg_resources import resource_stream
- except ImportError:
- resource_stream = None
- zoneinfo_dir = os.environ.get('PYTZ_TZDATADIR', None)
- if zoneinfo_dir != None:
- filename = os.path.join(zoneinfo_dir, *name_parts)
- else:
- filename = os.path.join(os.path.dirname(__file__),
- 'zoneinfo', *name_parts)
- 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.
- try:
- from pkg_resources import resource_stream
- except ImportError:
- resource_stream = None
-
- if resource_stream is not None:
- return resource_stream(__name__, 'zoneinfo/' + name)
- if resource_stream is not None:
- return resource_stream(__name__, 'zoneinfo/' + name)
+ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
return open(filename, 'rb')