diff options
Diffstat (limited to 'dev-python/python-dateutil')
3 files changed, 2 insertions, 107 deletions
diff --git a/dev-python/python-dateutil/Manifest b/dev-python/python-dateutil/Manifest index aa160c3bae42..f63a174ed5ee 100644 --- a/dev-python/python-dateutil/Manifest +++ b/dev-python/python-dateutil/Manifest @@ -1,6 +1,5 @@ AUX 0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch 3527 BLAKE2B eb793ad1ec92a944445a405f323aae660031d63db7612856265c1afe339db4b05f40f2d6c94f988d47dd769b7835bdb2d438718a1eb6d192c3213ee7f055fc86 SHA512 e0c48ed24aadd457cddc98f30965bfebb1b9c9b6f8921fb43d065877cb1344ee7f0d0ba157f9090e2190419f04470e7acbd34c388de07e3e8b586ded7012c2a0 -AUX 0001-zoneinfo-Get-timezone-data-from-system-tzdata.patch 3504 BLAKE2B b26810c285257c14eec697e7529c3a85c637619dc19979a48b16b0ce45780041e84946748b30b048de84f5b35bb320dd7f79a22a13f42954433ad7ec7f3286a4 SHA512 37ad4c6630b0055a57704b375e6fa869c87a16b0d5d6c79bf77dd5cdfd7aeac56ad696e5a8acc5028b34dec35b932fa76e9fa8b26095cd369508af3386d3f89c AUX python-dateutil-2.8.1-no-pytest-cov.patch 687 BLAKE2B 97eb6d653a013b6fb279209804d7a82b4599ed672eb7a6b94654dc789ae3ad5e2978c9684439d94e405423c0a022ff70155c7d50f5d03a5e74cfe111a665ff7c SHA512 f4e90ed1d1cdab509a574319ae6cf0b646c2741eb05459c408caa29e1a6ca512e71a258ca8119c8e1f59948276c9e14e726b6f53cea868709bd89dea2280b700 DIST python-dateutil-2.8.1.tar.gz 331745 BLAKE2B 9785fe93976d9bbe21d6610133e37e558cdde4062a1a738ccbf2bf80aa062882ba59c60f2b9bfc44c53e0f8fc4b5ebdd5d12b6ba54a60706576360e453b2f160 SHA512 337000216e0f8ce32d6363768444144183ab9268f69082f20858f2b3322b1c449e53b2f2b5dcb3645be22294659ce7838f74ace2fd7a7c4f2adc6cf806a9fa2c -EBUILD python-dateutil-2.8.1-r1.ebuild 1349 BLAKE2B b6b77a5192c12bcb8653f3afa4abdf8e772110ba019d09ca4ee540cf79ea60c0eb6ca9cc6e04937e6b877321d1289430895bd22f0b9ed08fec1b749623a6154d SHA512 cdf0ef0b2a9b9990eedb4fed82c5597b2ab8479891f128dc05983d8f015264f8fa72ca346f3d3ade890de2b690b36df173bcafd0caf75c64c83af2bb6e6175fc +EBUILD python-dateutil-2.8.1-r1.ebuild 1351 BLAKE2B 0edbb96e7c12be0cf602a323e6676944f699c95cd2a6b44473616b9e3e5adca5c69027fbfdda0bcda4b3c9ce3b02e28223725bfaac179e29a9f85c382f977f66 SHA512 1a2780b105298059091e612723f9177471b9e2de65197fa784628c63b6904de0aa39e03300605bb26cb1b8c79a099cbc6d44d9e91429e499acdad2b4d50e2e89 MISC metadata.xml 603 BLAKE2B 1bf49feeeec3ffc2f767228a84b3f9edf53cf44d8a1df3fa8f85798c0d3ea8f448d6113d425baa6b4b342b88746133d2770b951488d602dbb175f5ff9a99ea36 SHA512 87f5ea8b8918e72b57b91d32ed103d88f93ad9fbbe0a8f3f8b8ea72627d82e5cac25246553a0cb6988af26c30841ca5a3ddccf7f957603283a1b4e455a7c6439 diff --git a/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata.patch b/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata.patch deleted file mode 100644 index 2e3f4ee914ce..000000000000 --- a/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata.patch +++ /dev/null @@ -1,104 +0,0 @@ -From f48e70ae846c161dfbfe6ddb36e4bcad4427ac8c Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Tue, 3 Apr 2018 22:03:32 +0200 -Subject: [PATCH] zoneinfo: Get timezone data from system tzdata - ---- - dateutil/test/test_imports.py | 3 +-- - dateutil/zoneinfo/__init__.py | 25 ++++++++++++++----------- - 2 files changed, 15 insertions(+), 13 deletions(-) - -diff --git a/dateutil/test/test_imports.py b/dateutil/test/test_imports.py -index 2a19b62..97d07e4 100644 ---- a/dateutil/test/test_imports.py -+++ b/dateutil/test/test_imports.py -@@ -158,9 +158,8 @@ class ImportZoneInfoTest(unittest.TestCase): - def testZoneinfoStar(self): - from dateutil.zoneinfo import gettz - from dateutil.zoneinfo import gettz_db_metadata -- from dateutil.zoneinfo import rebuild - -- zi_all = (gettz, gettz_db_metadata, rebuild) -+ zi_all = (gettz, gettz_db_metadata) - - for var in zi_all: - self.assertIsNot(var, None) -diff --git a/dateutil/zoneinfo/__init__.py b/dateutil/zoneinfo/__init__.py -index 34f11ad..e9870ca 100644 ---- a/dateutil/zoneinfo/__init__.py -+++ b/dateutil/zoneinfo/__init__.py -@@ -1,6 +1,7 @@ - # -*- coding: utf-8 -*- - import warnings - import json -+import os - - from tarfile import TarFile - from pkgutil import get_data -@@ -10,7 +11,7 @@ from dateutil.tz import tzfile as _tzfile - - __all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"] - --ZONEFILENAME = "dateutil-zoneinfo.tar.gz" -+ZONEDIRECTORY = "/usr/share/zoneinfo" - METADATA_FN = 'METADATA' - - -@@ -19,12 +20,14 @@ class tzfile(_tzfile): - return (gettz, (self._filename,)) - - --def getzoneinfofile_stream(): -- try: -- return BytesIO(get_data(__name__, ZONEFILENAME)) -- except IOError as e: # TODO switch to FileNotFoundError? -- warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror)) -- return None -+def iter_zones(topdir): -+ for dirpath, dirnames, filenames in os.walk(topdir): -+ for f in filenames: -+ if f.endswith('.tab'): -+ continue -+ fpath = os.path.join(dirpath, f) -+ relpath = os.path.relpath(fpath, topdir) -+ yield (relpath, tzfile(fpath, filename=relpath)) - - - class ZoneInfoFile(object): -@@ -48,7 +51,7 @@ class ZoneInfoFile(object): - # no metadata in tar file - self.metadata = None - else: -- self.zones = {} -+ self.zones = dict(iter_zones(ZONEDIRECTORY)) - self.metadata = None - - def get(self, name, default=None): -@@ -99,7 +102,7 @@ def get_zonefile_instance(new_instance=False): - zif = getattr(get_zonefile_instance, '_cached_instance', None) - - if zif is None: -- zif = ZoneInfoFile(getzoneinfofile_stream()) -+ zif = ZoneInfoFile() - - get_zonefile_instance._cached_instance = zif - -@@ -140,7 +143,7 @@ def gettz(name): - DeprecationWarning) - - if len(_CLASS_ZONE_INSTANCE) == 0: -- _CLASS_ZONE_INSTANCE.append(ZoneInfoFile(getzoneinfofile_stream())) -+ _CLASS_ZONE_INSTANCE.append(ZoneInfoFile()) - return _CLASS_ZONE_INSTANCE[0].zones.get(name) - - -@@ -163,5 +166,5 @@ def gettz_db_metadata(): - DeprecationWarning) - - if len(_CLASS_ZONE_INSTANCE) == 0: -- _CLASS_ZONE_INSTANCE.append(ZoneInfoFile(getzoneinfofile_stream())) -+ _CLASS_ZONE_INSTANCE.append(ZoneInfoFile()) - return _CLASS_ZONE_INSTANCE[0].metadata --- -2.17.0 - diff --git a/dev-python/python-dateutil/python-dateutil-2.8.1-r1.ebuild b/dev-python/python-dateutil/python-dateutil-2.8.1-r1.ebuild index ce40efed6848..d1931458e5e4 100644 --- a/dev-python/python-dateutil/python-dateutil-2.8.1-r1.ebuild +++ b/dev-python/python-dateutil/python-dateutil-2.8.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) +PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) inherit distutils-r1 |