diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-python/pytzdata | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-python/pytzdata')
-rw-r--r-- | dev-python/pytzdata/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pytzdata/files/pytzdata-2020.1-system-zoneinfo.patch | 115 | ||||
-rw-r--r-- | dev-python/pytzdata/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/pytzdata/pytzdata-2020.1-r2.ebuild | 33 |
4 files changed, 0 insertions, 165 deletions
diff --git a/dev-python/pytzdata/Manifest b/dev-python/pytzdata/Manifest deleted file mode 100644 index cedb3bae1f36..000000000000 --- a/dev-python/pytzdata/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX pytzdata-2020.1-system-zoneinfo.patch 3482 BLAKE2B 26c62593303e02d4037aba6e7b4ec7645610f3e73eadef9fcf483db5567e31d407efe92859d4157e672ce9683d135c2fcf2e63d427898d8bab1b0ead8db09299 SHA512 707afdd4bff5fb70f3bc4e20c88a1962f3fd56c15b3ff3e5896446d1eff55aaceefd53509fef1b4941d797e2c2aea41b72a87276fa64e562ad71609fa717a78e -DIST pytzdata-2020.1.gh.tar.gz 249045 BLAKE2B 6f07a7577edc87030fd70e720b32146e9044a8c6f74d0bafb9239ad666d0d6fd0ac7c3cca070914701af301b1a3368ace2985f8169b9747937fa6ed066be7302 SHA512 fd154bfbe90ce07a90f769063b772234036d2627c1e6d78a465d9ddbc894e50cb9d821c04ebff1a7cc6a327266f7843fe54e5592d37c41db023329d6e0f668c2 -EBUILD pytzdata-2020.1-r2.ebuild 696 BLAKE2B c7f76fe0ce78c1641b93883f34c23c9279c21b410d9db146c2064067698b77ae25cdfb686edcefa588b17222fd6a9f5954967d6e1d16d86eb27851072352dd51 SHA512 44c2c90e1c320382cb3bbc73574a196efd863a25303cb58eb6c006cbd525fbd2b933adda475c97f18ed9c6ff19776037455e42fce53f357c61b9b6b9336241dc -MISC metadata.xml 414 BLAKE2B 4b6e7f935a42ed815b92d7fec75b4db6fd3fa46386b5055462bb317bb6ac8526e3a965c803d6e207382ec396bc132d514ef083af91c9ac45ad2eaf67998b0b9e SHA512 80c0e415716770a0f18bd237e9039f72bdab0056c11e98ad2359431b14d0b239ae7a88840d774aa6d3b390fbc86bcf30e42a4981e52acda8e99666219982f445 diff --git a/dev-python/pytzdata/files/pytzdata-2020.1-system-zoneinfo.patch b/dev-python/pytzdata/files/pytzdata-2020.1-system-zoneinfo.patch deleted file mode 100644 index 7a4cced9e720..000000000000 --- a/dev-python/pytzdata/files/pytzdata-2020.1-system-zoneinfo.patch +++ /dev/null @@ -1,115 +0,0 @@ -From f0d2c5fd28dbe2aa9ecb59e140ab42b11d677a33 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Fri, 9 Jul 2021 10:15:51 +0200 -Subject: [PATCH] Use system zoneinfo database by default -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Signed-off-by: Michał Górny <mgorny@gentoo.org> ---- - pytzdata/__init__.py | 2 +- - tests/test_set_directory.py | 8 +++----- - tests/test_tz_file.py | 5 ++--- - tests/test_tz_path.py | 5 ++--- - 4 files changed, 8 insertions(+), 12 deletions(-) - -diff --git a/pytzdata/__init__.py b/pytzdata/__init__.py -index 22940da..6c3bcb9 100644 ---- a/pytzdata/__init__.py -+++ b/pytzdata/__init__.py -@@ -8,7 +8,7 @@ from ._compat import FileNotFoundError - - - DEFAULT_DIRECTORY = os.path.join( -- os.path.dirname(__file__), -+ '/usr/share', - 'zoneinfo' - ) - -diff --git a/tests/test_set_directory.py b/tests/test_set_directory.py -index 430d239..6c078e6 100644 ---- a/tests/test_set_directory.py -+++ b/tests/test_set_directory.py -@@ -2,7 +2,7 @@ - - import os - import pytest --from pytzdata import set_directory, tz_path, TimezoneNotFound -+from pytzdata import set_directory, tz_path, TimezoneNotFound, DEFAULT_DIRECTORY - - - fixtures_path = os.path.join(os.path.dirname(__file__), 'fixtures', 'tz') -@@ -30,9 +30,8 @@ def test_set_directory(): - with pytest.raises(TimezoneNotFound): - tz_path('America/New_York') - -- here = os.path.realpath(os.path.dirname(__file__)) - filepath = os.path.realpath( -- os.path.join(here, '..', 'pytzdata', 'zoneinfo', 'America', 'New_York') -+ os.path.join(DEFAULT_DIRECTORY, 'America', 'New_York') - ) - - set_directory() -@@ -51,9 +50,8 @@ def test_env_variable(): - - del os.environ['PYTZDATA_TZDATADIR'] - -- here = os.path.realpath(os.path.dirname(__file__)) - filepath = os.path.realpath( -- os.path.join(here, '..', 'pytzdata', 'zoneinfo', 'America', 'New_York') -+ os.path.join(DEFAULT_DIRECTORY, 'America', 'New_York') - ) - - set_directory() -diff --git a/tests/test_tz_file.py b/tests/test_tz_file.py -index 8b912b5..b20c08b 100644 ---- a/tests/test_tz_file.py -+++ b/tests/test_tz_file.py -@@ -3,7 +3,7 @@ - import os - import pytest - --from pytzdata import tz_file, set_directory -+from pytzdata import tz_file, set_directory, DEFAULT_DIRECTORY - from pytzdata.exceptions import TimezoneNotFound - - -@@ -22,9 +22,8 @@ def teardown_module(module): - - - def test_tz_file(): -- here = os.path.realpath(os.path.dirname(__file__)) - filepath = os.path.realpath( -- os.path.join(here, '..', 'pytzdata', 'zoneinfo', 'Europe', 'Paris') -+ os.path.join(DEFAULT_DIRECTORY, 'Europe', 'Paris') - ) - - with open(filepath) as f1: -diff --git a/tests/test_tz_path.py b/tests/test_tz_path.py -index fd4db48..77c8c74 100644 ---- a/tests/test_tz_path.py -+++ b/tests/test_tz_path.py -@@ -3,7 +3,7 @@ - import os - import pytest - --from pytzdata import tz_path, set_directory -+from pytzdata import tz_path, set_directory, DEFAULT_DIRECTORY - from pytzdata.exceptions import TimezoneNotFound - - -@@ -22,9 +22,8 @@ def teardown_module(module): - - - def test_tz_path(): -- here = os.path.realpath(os.path.dirname(__file__)) - filepath = os.path.realpath( -- os.path.join(here, '..', 'pytzdata', 'zoneinfo', 'Europe', 'Paris') -+ os.path.join(DEFAULT_DIRECTORY, 'Europe', 'Paris') - ) - - assert filepath == tz_path('Europe/Paris') --- -2.32.0 - diff --git a/dev-python/pytzdata/metadata.xml b/dev-python/pytzdata/metadata.xml deleted file mode 100644 index 4cea3d0ec48e..000000000000 --- a/dev-python/pytzdata/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>jsmolic@gentoo.org</email> - <name>Jakov Smolić</name> - </maintainer> - <stabilize-allarches/> - <upstream> - <remote-id type="github">sdispater/pytzdata</remote-id> - <remote-id type="pypi">pytzdata</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild b/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild deleted file mode 100644 index 54007f31b6f2..000000000000 --- a/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( pypy3 python3_{10..12} ) - -inherit distutils-r1 - -DESCRIPTION="The Olson timezone database for Python" -HOMEPAGE=" - https://github.com/sdispater/pytzdata/ - https://pypi.org/project/pytzdata/ -" -SRC_URI=" - https://github.com/sdispater/pytzdata/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86" - -RDEPEND=" - dev-python/cleo[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -PATCHES=( - "${FILESDIR}"/pytzdata-2020.1-system-zoneinfo.patch -) |