forked from pool/python-pytz
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:
parent
ba2a6845a2
commit
19bffb779e
@ -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
|
Wed Jun 28 12:07:24 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
%define oldpython python
|
%define oldpython python
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pytz
|
Name: python-pytz
|
||||||
Version: 2017.2
|
Version: 2017.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: World timezone definitions, modern and historical
|
Summary: World timezone definitions, modern and historical
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f5c056e8f62d45ba8215e5cb8f50dfccb198b4b9fbea8500674f3443e4689589
|
|
||||||
size 502168
|
|
@ -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
3
pytz-2017.3.zip
Normal 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
7
pytz-2017.3.zip.asc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v2
|
||||||
|
|
||||||
|
iEYEABECAAYFAln3MrQACgkQAfqZj7rGN0pzowCggUYhB+WYN2w6SPryflzhs1II
|
||||||
|
HxQAn1a0zf16Al5FA4ATvq4R26PDThut
|
||||||
|
=qZkB
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -2,23 +2,27 @@ Index: pytz-2016.10/pytz/__init__.py
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- pytz-2016.10.orig/pytz/__init__.py
|
--- pytz-2016.10.orig/pytz/__init__.py
|
||||||
+++ pytz-2016.10/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:
|
for part in name_parts:
|
||||||
if part == os.path.pardir or os.path.sep in part:
|
if part == os.path.pardir or os.path.sep in part:
|
||||||
raise ValueError('Bad path segment: %r' % part)
|
raise ValueError('Bad path segment: %r' % part)
|
||||||
- filename = os.path.join(os.path.dirname(__file__),
|
- zoneinfo_dir = os.environ.get('PYTZ_TZDATADIR', None)
|
||||||
- 'zoneinfo', *name_parts)
|
- if zoneinfo_dir != None:
|
||||||
- if not os.path.exists(filename):
|
- filename = os.path.join(zoneinfo_dir, *name_parts)
|
||||||
- # http://bugs.launchpad.net/bugs/383171 - we avoid using this
|
- else:
|
||||||
- # unless absolutely necessary to help when a broken version of
|
- filename = os.path.join(os.path.dirname(__file__),
|
||||||
- # pkg_resources is installed.
|
- 'zoneinfo', *name_parts)
|
||||||
- try:
|
- if not os.path.exists(filename):
|
||||||
- from pkg_resources import resource_stream
|
- # http://bugs.launchpad.net/bugs/383171 - we avoid using this
|
||||||
- except ImportError:
|
- # unless absolutely necessary to help when a broken version of
|
||||||
- resource_stream = None
|
- # pkg_resources is installed.
|
||||||
|
- try:
|
||||||
|
- from pkg_resources import resource_stream
|
||||||
|
- except ImportError:
|
||||||
|
- resource_stream = None
|
||||||
-
|
-
|
||||||
- if resource_stream is not None:
|
- if resource_stream is not None:
|
||||||
- return resource_stream(__name__, 'zoneinfo/' + name)
|
- return resource_stream(__name__, 'zoneinfo/' + name)
|
||||||
+ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
|
+ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
|
||||||
return open(filename, 'rb')
|
return open(filename, 'rb')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user