diff options
Diffstat (limited to 'dev-python/python-dateutil')
5 files changed, 4 insertions, 164 deletions
diff --git a/dev-python/python-dateutil/Manifest b/dev-python/python-dateutil/Manifest index c7b7050f4c76..bf89b447b33f 100644 --- a/dev-python/python-dateutil/Manifest +++ b/dev-python/python-dateutil/Manifest @@ -1,8 +1,5 @@ -AUX 0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch 3537 BLAKE2B 7f36974a98f5e6ff1961e91542e7c0ff8ee1d62ec4a400a8d8e09f60625660a5d76001855f876aedad7a66980fc5bab8cc2168436e8eddd9f2acfda0682c96cf SHA512 f540e9fd12d98d4d9ea2033187644856d7c7591e4a68f6143fb9335ff367a5b82f0dfdac90ba1ae8141d46a92f6a29015bfd71640fba60967571de4dfa8648bc AUX python-dateutil-2.8.1-no-pytest-cov.patch 687 BLAKE2B 97eb6d653a013b6fb279209804d7a82b4599ed672eb7a6b94654dc789ae3ad5e2978c9684439d94e405423c0a022ff70155c7d50f5d03a5e74cfe111a665ff7c SHA512 f4e90ed1d1cdab509a574319ae6cf0b646c2741eb05459c408caa29e1a6ca512e71a258ca8119c8e1f59948276c9e14e726b6f53cea868709bd89dea2280b700 AUX python-dateutil-2.8.2-system-tzdata.patch 3495 BLAKE2B b3d5ca203731932044f16bcde48f8f981f6907ce8a9319423d41eb0baf62331d472c1a5dd72ec3ac1f059296423adaea18bd4ea6d660add56cfd73ea86f26bf2 SHA512 44d2f3f9f0c04401cb545dc0a757b682eb3a9a66e63cf64121e75243cebdfa53945c6ae9bf197cb6b754c9732e9407fc9384aa45b2d7181740bb1ae23af718fe -DIST python-dateutil-2.8.1.tar.gz 331745 BLAKE2B 9785fe93976d9bbe21d6610133e37e558cdde4062a1a738ccbf2bf80aa062882ba59c60f2b9bfc44c53e0f8fc4b5ebdd5d12b6ba54a60706576360e453b2f160 SHA512 337000216e0f8ce32d6363768444144183ab9268f69082f20858f2b3322b1c449e53b2f2b5dcb3645be22294659ce7838f74ace2fd7a7c4f2adc6cf806a9fa2c DIST python-dateutil-2.8.2.tar.gz 357324 BLAKE2B 060f97280b63ed70e6d83fa5696af6dc3c729cdf5bc48c7a90e3e59eb0cc0360e5205536685550330d64ecc9b6e40ca12888409d6819dd136b17a67add2ec4e8 SHA512 6538858e4a3e2d1de1bf25b6d8b25e3a8d20bf60fb85e32d07ac491c90ce193e268bb5641371b8a79fb0f033a184bac9896b3bc643c1aca9ee9c6478286ac20c -EBUILD python-dateutil-2.8.1-r3.ebuild 1340 BLAKE2B 8f8e2e3d36045f209552b16a6df0e5648a7410865b0d7116e747bac5a59a13a9e72d9583a953b14569ded3442bc7a414005b77f2952368e2d98f10b3a4c3a373 SHA512 38476d0ba7a9d468ad98c98000e65304afe65495d4e90c5294425ff3634102268956b976937a935aec70aed31faec12164cc993c49330f4cd8f775643a917fc6 -EBUILD python-dateutil-2.8.2.ebuild 1112 BLAKE2B 2029671dc44c981f31e18aa53a3d8f54d6ead96e96b2d9c2b4c61fa47fdadf0b25914028607c1d5eb8b4237b2bed424b9bef1ff807f7028ed84c601739ef0af0 SHA512 c26177bbc9348e49b285b8ce6eb7a9e197ecd7253b161d6bdf89efa10dd18836c6e1ce351fef77454e73a8953ae33dee9f9ec4df1a4283342c3538060583a21b -MISC metadata.xml 603 BLAKE2B 1bf49feeeec3ffc2f767228a84b3f9edf53cf44d8a1df3fa8f85798c0d3ea8f448d6113d425baa6b4b342b88746133d2770b951488d602dbb175f5ff9a99ea36 SHA512 87f5ea8b8918e72b57b91d32ed103d88f93ad9fbbe0a8f3f8b8ea72627d82e5cac25246553a0cb6988af26c30841ca5a3ddccf7f957603283a1b4e455a7c6439 +EBUILD python-dateutil-2.8.2.ebuild 1104 BLAKE2B 455001a7d01ee159b371d505eba78bff32e4290a20f701d54049aca0b4577c6463aa5f27c1872e946ceab6c964aeb4eac41dde4781b5c223291e1afab2c40d56 SHA512 7dcd40b34088667231a9858c13a767c4c72306be3b5fe439b5fabd77a57ec483195d90643e169e3c4bdc491b526e5f12e81928dabc501973ea5477774443fea4 +MISC metadata.xml 628 BLAKE2B 9f05c6733b888d8a1e08c758ed6e3aa6e8d4cec6e941d3da7dad1c44972eaa8ae3aaabc1428dabd618f16b42cf8c13d5a45d9cea1dd4bd873777a4ffacb9e13a SHA512 2eb7f8678a36aac0dad5f036606642b8ad1e507ff0ff363ea3b6add116a3bf7e89dbe852c671a0ffa10c179b8e0bd9029db0c218ff8038290edde5c34eb23348 diff --git a/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch b/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch deleted file mode 100644 index abbc853e0902..000000000000 --- a/dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.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(('.list', '.tab', '.zi', 'leapseconds')): -+ 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/metadata.xml b/dev-python/python-dateutil/metadata.xml index 4bee24c257f5..5c1b99717a11 100644 --- a/dev-python/python-dateutil/metadata.xml +++ b/dev-python/python-dateutil/metadata.xml @@ -9,6 +9,7 @@ The dateutil module provides powerful extensions to the standard datetime module, available in Python 2.3+. </longdescription> + <stabilize-allarches/> <upstream> <remote-id type="pypi">python-dateutil</remote-id> <remote-id type="github">dateutil/dateutil</remote-id> diff --git a/dev-python/python-dateutil/python-dateutil-2.8.1-r3.ebuild b/dev-python/python-dateutil/python-dateutil-2.8.1-r3.ebuild deleted file mode 100644 index 214b011d5bae..000000000000 --- a/dev-python/python-dateutil/python-dateutil-2.8.1-r3.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..10} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Extensions to the standard Python datetime module" -HOMEPAGE=" - https://dateutil.readthedocs.io/ - https://pypi.org/project/python-dateutil/ - https://github.com/dateutil/dateutil/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" - -RDEPEND=" - >=dev-python/six-1.5[${PYTHON_USEDEP}] - sys-libs/timezone-data -" -BDEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - dev-python/freezegun[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}/0001-zoneinfo-Get-timezone-data-from-system-tzdata-r1.patch" - "${FILESDIR}/python-dateutil-2.8.1-no-pytest-cov.patch" -) - -distutils_enable_tests pytest - -python_prepare_all() { - # don't install zoneinfo tarball - sed -i '/package_data=/d' setup.py || die - - distutils-r1_python_prepare_all -} - -python_prepare() { - if [[ ${EPYTHON} == python3.7 ]]; then - # these tests are flakey on 3.7 - rm dateutil/test/property/test_{parser,isoparse}_prop.py || die - fi -} diff --git a/dev-python/python-dateutil/python-dateutil-2.8.2.ebuild b/dev-python/python-dateutil/python-dateutil-2.8.2.ebuild index 3ef5ec777d0f..26bf1b795c7a 100644 --- a/dev-python/python-dateutil/python-dateutil-2.8.2.ebuild +++ b/dev-python/python-dateutil/python-dateutil-2.8.2.ebuild @@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" RDEPEND=" >=dev-python/six-1.5[${PYTHON_USEDEP}] |