diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pytz |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pytz')
-rw-r--r-- | dev-python/pytz/Manifest | 10 | ||||
-rw-r--r-- | dev-python/pytz/files/2016.6.1-zoneinfo.patch | 12 | ||||
-rw-r--r-- | dev-python/pytz/files/pytz-2009h-zoneinfo-noinstall.patch | 32 | ||||
-rw-r--r-- | dev-python/pytz/files/pytz-2009j-zoneinfo.patch | 14 | ||||
-rw-r--r-- | dev-python/pytz/metadata.xml | 19 | ||||
-rw-r--r-- | dev-python/pytz/pytz-2016.3.ebuild | 34 | ||||
-rw-r--r-- | dev-python/pytz/pytz-2017.2.ebuild | 35 |
7 files changed, 156 insertions, 0 deletions
diff --git a/dev-python/pytz/Manifest b/dev-python/pytz/Manifest new file mode 100644 index 000000000000..467f4dd560c4 --- /dev/null +++ b/dev-python/pytz/Manifest @@ -0,0 +1,10 @@ +AUX 2016.6.1-zoneinfo.patch 569 SHA256 a78b5bd8c4e07776f2436e23c4832b40bd77abb67e0e6fa67c3ef6e08bb67b53 SHA512 d1b2bf717c8099eb5cfbe353d50eb034ed321303f6430c0f4183dd84a64780157615b29b7aaf7c04eb8fe69e48c039e479f22f70f713b2aa5e907ae371c8ba01 WHIRLPOOL 77bfc0ff901fc19588bb4888c6c6f77d0aef142b04a81bac0ae13a90b65e374e0aabd31cecb5791b6947580ae477aca3e02b3cf187864668ba0cf386e0202891 +AUX pytz-2009h-zoneinfo-noinstall.patch 957 SHA256 4f25eeb077fa14f8423b6742de8276b5153f75d97b0f979556cf634a56e4946a SHA512 142d3ac58be3fffc35e2dc1f70ee988a7c9ebec51518d15bee9d36f4d4a08178840fa4d73f9734e92192c3633e517f525a9d583f7b5dc754af83f7c9536bd446 WHIRLPOOL c1a1861f88ee5be2851e4e8a12f1df0c6beac05af1888527d1120ee9a67c3155b4ad5e0d9d3436e46cc6f027f079cf66135422f9576a333801e7597983cfc575 +AUX pytz-2009j-zoneinfo.patch 651 SHA256 5d015c0857cfab9916bb2d3e7de00d12fee5721d5d3556eb5ad049cc350cfd60 SHA512 228d3c59e3e0b5b0b3b80f5b0b6e947815d11191fd5523d17420dde6cea488bc544c05b552619934c4ca72c30ebefd042114abfea6c72f03710e96a776f39038 WHIRLPOOL c5a4565934dae7fd7b9501ff84c72e0707a52bb73c45f8d525da5477995ed226c693c1962b8219aaf964bd69c84df573d520049d8049013b17c694e1a2cece1c +DIST pytz-2016.3.tar.bz2 170906 SHA256 c193dfa167ac32c8cb96f26cbcd92972591b22bda0bac3effdbdb04de6cc55d6 SHA512 8d91a84500257327361a8ccd19ce2d2e5848c10c7d4105ec1be012be592ec38113611558c7894c1825cc1967303901fce35079fc799cc10e84216864cd00266f WHIRLPOOL b2af20a788fa70c23b04cda3acdff812c30713f00a9aaf2144d85c64341f6fe4e365b558f3f0b5491c6c99ebf633d2d3910c95f7a6ae1f9c53b40da6bcbc23af +DIST pytz-2017.2.zip 502168 SHA256 f5c056e8f62d45ba8215e5cb8f50dfccb198b4b9fbea8500674f3443e4689589 SHA512 d67d64a64b4c21e0bd41da56020fc7b016aec9da7f3243f79b65704119f70b8a9cd4f5f905631b6761e06ecef93830e5e479e16c7b1611ac70e0cd2b39d5b916 WHIRLPOOL 3a8e5e0c71ba12c8083592582238a17c1db862c1f779e84b4e93dbdadf9f5445d11d7725bc40f8d340569d2374adbf0ef19886c595f2d766a3dd7c57742cda44 +EBUILD pytz-2016.3.ebuild 1008 SHA256 5225cf0302c5218bb4f3e2739dd8d9d12068570347b2cdcb1b4528b5924a63d9 SHA512 acfb68faa2c28b38f6ca8b0a184f0aab55c125ec1eafda8b749d39ed672b46bbbe4e43dbf3d63e8158617ac5e98c691917821a11e364314a7bfe72dc0fd75eb6 WHIRLPOOL 73481d6f013626063f8a2eef826a02417bf400e55da077929b0a677e40f6c9a446eff429e167a6d894747d1a0ab795e136a3fc6dd616710bda1f9a6bb9732642 +EBUILD pytz-2017.2.ebuild 1033 SHA256 9d9e22fb8171cb9ce3323a7c58d4745720a00c60b0184708a93eddcefd7fe28e SHA512 3647051df823d61b9b091ae33bb3f14768fcce6e6fdcc2663950b7c4ce17e5ba5dfbdd0e289fa7a8ee408a36dfee72a10af570580aa76e63aca673360100b9c9 WHIRLPOOL 70eda371b6b0e360ab520d86eda1ab909930ecf5b95bc75644bb9237b0f926228bc021db43884e3c2b01b1a19a30c8494312cc55d5840dc1370215a997b8ede3 +MISC ChangeLog 7090 SHA256 a1c82a57aef600b33f53af9aea3a4211c46760d9d0776287ed19edbc242ae832 SHA512 92fb57ae3779da5ac39afa5dd9559aa297b2aaede9eae5786467ae465dd6725d2eb1718f2459e178e6c7c3afbc422d8625897bf218f62db78039bdaafbf99547 WHIRLPOOL dc95ecfa51a45b469fe5c4c9e3a8412671d9c254f34bd028c028e90e88e89315b27d631fdc917102dd6b23ea4db831d184770a5f5a385495b19f46b2dfe6d3c5 +MISC ChangeLog-2015 23925 SHA256 5d3eedcf346c4124172a300b29a5c16dbe44219f3a2dda1f103afde3302d32a4 SHA512 b613a160e8eabb0b8d967430cb12cc4f978f38d4dba568efebbed2141bffeaa1bc55e50952fa263568998e170c11be83594a7b82faacf00a2453f4e71e1f157e WHIRLPOOL 7a8a692e5eee591692e80b151b78f2a1076fd498f8522c21cfc439c4089606145be92e1fe08bce2813fa19ac67b9a9a34cefde92ff68e69f182969a15a49d7df +MISC metadata.xml 739 SHA256 48f9d99e4a2b0786cd3a9f85b3ab78522ff768c1ec436b42e3c3a1d752916423 SHA512 b7c9e6ea1b5bd128f1c5ce0a77171d0b7cdbb6f8ffb186d92aa4167d2d84c60c28c647cae66ffc7532350bca13ab65aaab5eb441f68321fc786a14b90f8813e8 WHIRLPOOL f892689ad05404787558af6ac507205a2e6ca2579b99d242f6cf8cc0036a30dedd600ca2d491aeee704635235a2b7d8f7bed9108711819240d2eec6b25a7a7a1 diff --git a/dev-python/pytz/files/2016.6.1-zoneinfo.patch b/dev-python/pytz/files/2016.6.1-zoneinfo.patch new file mode 100644 index 000000000000..d8223da436cf --- /dev/null +++ b/dev-python/pytz/files/2016.6.1-zoneinfo.patch @@ -0,0 +1,12 @@ +--- a/pytz/__init__.py ++++ b/pytz/__init__.py +@@ -81,8 +81,7 @@ + for part in name_parts: + if part == os.path.pardir or os.path.sep in part: + raise ValueError('Bad path segment: %r' % part) +- filename = os.path.join(os.path.dirname(__file__), +- 'zoneinfo', *name_parts) ++ filename = os.path.join('/usr/share/zoneinfo', *name_parts) + if not os.path.exists(filename): + # http://bugs.launchpad.net/bugs/383171 - we avoid using this + # unless absolutely necessary to help when a broken version of diff --git a/dev-python/pytz/files/pytz-2009h-zoneinfo-noinstall.patch b/dev-python/pytz/files/pytz-2009h-zoneinfo-noinstall.patch new file mode 100644 index 000000000000..2e9709579883 --- /dev/null +++ b/dev-python/pytz/files/pytz-2009h-zoneinfo-noinstall.patch @@ -0,0 +1,32 @@ +From e43745593e4627de8027587cb3b4a465c93fa0b1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 19 Dec 2012 19:22:29 +0100 +Subject: [PATCH] Do not install zoneinfo files. + +--- + setup.py | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/setup.py b/setup.py +index c8152d5..8f13279 100644 +--- a/setup.py ++++ b/setup.py +@@ -13,15 +13,8 @@ me = 'Stuart Bishop' + memail = 'stuart@stuartbishop.net' + packages = ['pytz'] + resources = ['zone.tab', 'locales/pytz.pot'] +-for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')): +- # remove the 'pytz' part of the path +- basepath = dirpath.split(os.path.sep, 1)[1] +- 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', + version=pytz.VERSION, +-- +1.8.0.2 + diff --git a/dev-python/pytz/files/pytz-2009j-zoneinfo.patch b/dev-python/pytz/files/pytz-2009j-zoneinfo.patch new file mode 100644 index 000000000000..ee05d9f5efa4 --- /dev/null +++ b/dev-python/pytz/files/pytz-2009j-zoneinfo.patch @@ -0,0 +1,14 @@ +Use the system zoneinfo from sys-libs/timezone-data. + +--- pytz/__init__.py ++++ pytz/__init__.py +@@ -54,8 +54,7 @@ + for part in name_parts: + if part == os.path.pardir or os.path.sep in part: + raise ValueError('Bad path segment: %r' % part) +- filename = os.path.join(os.path.dirname(__file__), +- 'zoneinfo', *name_parts) ++ filename = os.path.join('/usr/share/zoneinfo', *name_parts) + if not os.path.exists(filename) and resource_stream is not None: + # http://bugs.launchpad.net/bugs/383171 - we avoid using this + # unless absolutely necessary to help when a broken version of diff --git a/dev-python/pytz/metadata.xml b/dev-python/pytz/metadata.xml new file mode 100644 index 000000000000..afe53148fe95 --- /dev/null +++ b/dev-python/pytz/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://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> + <upstream> + <remote-id type="pypi">pytz</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pytz/pytz-2016.3.ebuild b/dev-python/pytz/pytz-2016.3.ebuild new file mode 100644 index 000000000000..9cf855487073 --- /dev/null +++ b/dev-python/pytz/pytz-2016.3.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="World timezone definitions for Python" +HOMEPAGE="http://pythonhosted.org/pytz/ https://pypi.python.org/pypi/pytz/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + || ( >=sys-libs/timezone-data-2015g sys-libs/glibc[vanilla] )" +RDEPEND="${DEPEND}" + +PATCHES=( + # Use timezone-data zoneinfo. + "${FILESDIR}"/${PN}-2009j-zoneinfo.patch + # ...and do not install a copy of it. + "${FILESDIR}"/${PN}-2009h-zoneinfo-noinstall.patch +) + +python_test() { + "${PYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/pytz/pytz-2017.2.ebuild b/dev-python/pytz/pytz-2017.2.ebuild new file mode 100644 index 000000000000..72e0867714b9 --- /dev/null +++ b/dev-python/pytz/pytz-2017.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="World timezone definitions for Python" +HOMEPAGE="http://pythonhosted.org/pytz/ https://pypi.python.org/pypi/pytz/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + || ( >=sys-libs/timezone-data-2017a sys-libs/glibc[vanilla] )" +DEPEND="${RDEPEND} + app-arch/unzip" + +PATCHES=( + # Use timezone-data zoneinfo. + "${FILESDIR}"/2016.6.1-zoneinfo.patch + # ...and do not install a copy of it. + "${FILESDIR}"/${PN}-2009h-zoneinfo-noinstall.patch +) + +python_test() { + "${PYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}" +} |