diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:35:26 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:35:26 -0500 |
| commit | f716a9fe6455d39eef01e718aae68dae61c19704 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/pytz | |
| parent | 3f9cf298e89cd5037b982abba06091224ee76daf (diff) | |
| download | baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.gz baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.xz baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytz')
| -rw-r--r-- | dev-python/pytz/Manifest | 4 | ||||
| -rw-r--r-- | dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch | 52 | ||||
| -rw-r--r-- | dev-python/pytz/metadata.xml | 21 | ||||
| -rw-r--r-- | dev-python/pytz/pytz-2026.1_p1.ebuild | 52 | ||||
| -rw-r--r-- | dev-python/pytz/pytz-2026.2.ebuild | 52 |
5 files changed, 0 insertions, 181 deletions
diff --git a/dev-python/pytz/Manifest b/dev-python/pytz/Manifest deleted file mode 100644 index ce6163ab05bc..000000000000 --- a/dev-python/pytz/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST pytz-2026.1.post1.tar.gz 321088 BLAKE2B 3ce2028abec2a07c753bdd822cb8c86d043e76322321fb96f8ccba19252f46d78a3bc21a7b63feaf2bf922b4aa97854e763fc352428ada9a9b576ecc9c9d0d0c SHA512 58e9ecf500c8945de73c32263bed54fe80770e948f3ad539670927a61b9d099f1a21d4948c5913b0721183d5a77bbf83b7b148f2d1b3bc659b669c4a8eae63f8 -DIST pytz-2026.1.post1.tar.gz.provenance 9503 BLAKE2B 709cc5bead68d64fcc511e734d945b7120517395b74fdd2d363c945bb67960e18644df8328c9b5a92e9a80f2e6be69d5352c390bc3c2b2087fb882108d7d8094 SHA512 2fb3f3d78a71927fb8971ae60360d97ee6c40cfd665f17ca0a5fffd04ca1cc2b67ac3e64faac7c3288abe826b86b97d7fbfb0565ac489e6c625928ce22ab9d74 -DIST pytz-2026.2.tar.gz 320861 BLAKE2B b05b2e3852595dc2b42d38e3c9604410af5889e4110cb28918874e9fe4a6340bda2bbfb469b8f5832d1cb6adb3ac19cc427d5b1d5361927d3a978c1cdeb134cc SHA512 b980715c2bf344734c7c2b1b83e94297a8a501b76e6e728553d99ddc1726aff4eb972c025e482d7dbbd4f11f706b573b5e7a1c030c315fdf556f7ca524436989 -DIST pytz-2026.2.tar.gz.provenance 9433 BLAKE2B 326250578fc445ebae1443b137243391a17b4d86c1a2ed3735676d89bfecd7626ee582f232901134038cea1ebea79a2e9331d94e655dce474fe165d9deee328a SHA512 655c17ef02c19c46689a2a450b8969b4fe74e01988f3a7e2994b343dadb2b509479dfa0467c5a379060ec52bab7823f5c52912e83e7bf6b9ad19885f1934c7e4 diff --git a/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch b/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch deleted file mode 100644 index 85b639f0e615..000000000000 --- a/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch +++ /dev/null @@ -1,52 +0,0 @@ -Inspired by the Fedora patch: -https://src.fedoraproject.org/rpms/pytz/blob/rawhide/f/pytz-zoneinfo.patch - -_allzones() is based on code in gen_tzinfo.py in upstream repo. - -diff --git a/pytz/__init__.py b/pytz/__init__.py -index f89d0eb..d00f3bb 100644 ---- a/pytz/__init__.py -+++ b/pytz/__init__.py -@@ -75,6 +75,21 @@ else: # Python 2.x - return s.encode('ASCII') - - -+def _allzones(): -+ for dirpath, dirnames, filenames in os.walk(_PYTZ_TZDATADIR): -+ for f in filenames: -+ p = os.path.join(dirpath, f) -+ with open(p, 'rb') as tzfile: -+ if tzfile.read(4) == b'TZif': -+ yield os.path.relpath(p, _PYTZ_TZDATADIR) -+ -+ -+_PYTZ_TZDATADIR = os.environ.get('PYTZ_TZDATADIR', '/usr/share/zoneinfo') -+_all_timezones_unchecked = LazyList(x for x in _allzones()) -+all_timezones = _all_timezones_unchecked -+all_timezones_set = LazySet(all_timezones) -+ -+ - def open_resource(name): - """Open a resource from the zoneinfo subdir for reading. - -@@ -88,7 +102,7 @@ def open_resource(name): - for part in name_parts: - if part == os.path.pardir or os.sep in part: - raise ValueError('Bad path segment: %r' % part) -- zoneinfo_dir = os.environ.get('PYTZ_TZDATADIR', None) -+ zoneinfo_dir = _PYTZ_TZDATADIR - if zoneinfo_dir is not None: - filename = os.path.join(zoneinfo_dir, *name_parts) - else: -diff --git a/setup.py b/setup.py -index 24f7f37..b03592c 100644 ---- a/setup.py -+++ b/setup.py -@@ -21,7 +21,6 @@ for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')): - resources.extend([os.path.join(basepath, filename) for filename in filenames]) - package_data = {'pytz': resources} - --assert len(resources) > 10, 'zoneinfo files not found!' - - setup( - name='pytz', diff --git a/dev-python/pytz/metadata.xml b/dev-python/pytz/metadata.xml deleted file mode 100644 index 59ff8007ca82..000000000000 --- a/dev-python/pytz/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <longdescription lang="en"> - pytz brings the Olson tz database into Python. This library allows - accurate and cross platform timezone calculations using Python 2.3 - or higher. It also solves the issue of ambiguous times at the end of - daylight savings, which you can read more about in the Python - Library Reference (datetime.tzinfo). - Amost all (over 540) of the Olson timezones are supported. - </longdescription> - <stabilize-allarches/> - <upstream> - <remote-id type="github">stub42/pytz</remote-id> - <remote-id type="pypi">pytz</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pytz/pytz-2026.1_p1.ebuild b/dev-python/pytz/pytz-2026.1_p1.ebuild deleted file mode 100644 index 606702db015d..000000000000 --- a/dev-python/pytz/pytz-2026.1_p1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_VERIFY_REPO=https://github.com/stub42/pytz -PYTHON_COMPAT=( python3_{13..14} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 pypi - -DESCRIPTION="World timezone definitions for Python" -HOMEPAGE=" - https://pythonhosted.org/pytz/ - https://github.com/stub42/pytz/ - https://pypi.org/project/pytz/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - || ( - >=sys-libs/timezone-data-2023b - sys-libs/glibc[vanilla] - ) -" -BDEPEND=" - test? ( - ${RDEPEND} - ) -" - -src_prepare() { - distutils-r1_src_prepare - - # unbundle timezone-data - rm -r pytz/zoneinfo || die - # remove hardcoded list of all timezones but leave subjective set - # of "common timezones" - sed -i -e '/^_all_timezones_unchecked/,/^all_timezones_set/d' pytz/__init__.py || die - eapply "${FILESDIR}"/pytz-2023.2-system-tzinfo.patch -} - -python_test() { - "${EPYTHON}" pytz/tests/test_tzinfo.py -v || - die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/pytz/pytz-2026.2.ebuild b/dev-python/pytz/pytz-2026.2.ebuild deleted file mode 100644 index 25e025d264d4..000000000000 --- a/dev-python/pytz/pytz-2026.2.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_VERIFY_REPO=https://github.com/stub42/pytz -PYTHON_COMPAT=( python3_{13..14} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 pypi - -DESCRIPTION="World timezone definitions for Python" -HOMEPAGE=" - https://pythonhosted.org/pytz/ - https://github.com/stub42/pytz/ - https://pypi.org/project/pytz/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - || ( - >=sys-libs/timezone-data-2023b - sys-libs/glibc[vanilla] - ) -" -BDEPEND=" - test? ( - ${RDEPEND} - ) -" - -src_prepare() { - distutils-r1_src_prepare - - # unbundle timezone-data - rm -r pytz/zoneinfo || die - # remove hardcoded list of all timezones but leave subjective set - # of "common timezones" - sed -i -e '/^_all_timezones_unchecked/,/^all_timezones_set/d' pytz/__init__.py || die - eapply "${FILESDIR}"/pytz-2023.2-system-tzinfo.patch -} - -python_test() { - "${EPYTHON}" pytz/tests/test_tzinfo.py -v || - die "Tests fail with ${EPYTHON}" -} |
