Update to 2018.9, remove leapseconds from pytz.all_timezones (#1642003)

This commit is contained in:
Miro Hrončok 2019-03-12 19:22:17 +01:00
parent 9206b33339
commit 002329f46c
4 changed files with 15 additions and 8 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ pytz-2010h.tar.gz
/pytz-2016.10.tar.gz
/pytz-2017.2.zip
/pytz-2018.5.tar.gz
/pytz-2018.9.tar.gz

View File

@ -1,8 +1,8 @@
diff --git a/pytz/__init__.py b/pytz/__init__.py
index 120fab4..b0a3826 100644
index d217c96..2b1ac03 100644
--- a/pytz/__init__.py
+++ b/pytz/__init__.py
@@ -73,6 +73,9 @@ else: # Python 2.x
@@ -74,6 +74,9 @@ else: # Python 2.x
"""
return s.encode('ASCII')
@ -12,7 +12,7 @@ index 120fab4..b0a3826 100644
def open_resource(name):
"""Open a resource from the zoneinfo subdir for reading.
@@ -87,23 +90,8 @@ def open_resource(name):
@@ -88,23 +91,8 @@ 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)
@ -38,7 +38,7 @@ index 120fab4..b0a3826 100644
return open(filename, 'rb')
@@ -484,1042 +472,37 @@ def _test():
@@ -485,1044 +473,37 @@ def _test():
if __name__ == '__main__':
_test()
@ -344,6 +344,7 @@ index 120fab4..b0a3826 100644
- 'Asia/Pontianak',
- 'Asia/Pyongyang',
- 'Asia/Qatar',
- 'Asia/Qostanay',
- 'Asia/Qyzylorda',
- 'Asia/Rangoon',
- 'Asia/Riyadh',
@ -643,7 +644,7 @@ index 120fab4..b0a3826 100644
+
+ all_timezones.extend(os.path.join(root, tz_file)[len(_tzinfo_dir)+1:]
+ for tz_file in files
+ if tz_file != 'README' and tz_file != 'Theory'
+ if tz_file not in ['leapseconds', 'README', 'Theory']
+ and '.' not in tz_file)
+
all_timezones = LazyList(
@ -920,6 +921,7 @@ index 120fab4..b0a3826 100644
- 'Asia/Pontianak',
- 'Asia/Pyongyang',
- 'Asia/Qatar',
- 'Asia/Qostanay',
- 'Asia/Qyzylorda',
- 'Asia/Riyadh',
- 'Asia/Sakhalin',

View File

@ -1,6 +1,6 @@
Name: pytz
Version: 2018.5
Release: 2%{?dist}
Version: 2018.9
Release: 1%{?dist}
Summary: World Timezone Definitions for Python
License: MIT
@ -86,6 +86,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
%changelog
* Tue Mar 12 2019 Miro Hrončok <mhroncok@redhat.com> - 2018.9-1
- Update to 2018.9
- Remove leapseconds from pytz.all_timezones (#1642003)
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (pytz-2018.5.tar.gz) = 35b6bdd25b8e57c693da4379c2032401ef3cf290a57d8448c67dcaf1491a21d27ff25d932ef3ec3a51e31fbb7541e081073f292867a7d1ad47904b69dc7e4863
SHA512 (pytz-2018.9.tar.gz) = c3dabe61d04539245761a5c4e3bfb614df1c3b8ccc2ffa1cf320c5ad642242c29b3321fe7855d32a2ae55c739acbbe8c0e1813df5b3c757b8f56fff910fee159