diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2016-07-14 13:24:47 +0200 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2016-07-14 14:37:33 +0200 |
commit | c3baa934bb67ec87ecddb9b46a96cf4f6349a87d (patch) | |
tree | b86939fc910e97fceb6b9b12fa8d870aea4978cf /dev-python/pytz | |
parent | dev-util/eric: new major version (SLOT=6) (diff) | |
download | gentoo-c3baa934bb67ec87ecddb9b46a96cf4f6349a87d.tar.gz gentoo-c3baa934bb67ec87ecddb9b46a96cf4f6349a87d.tar.bz2 gentoo-c3baa934bb67ec87ecddb9b46a96cf4f6349a87d.zip |
dev-python/pytz: version bump to 2016.6.1
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-python/pytz')
-rw-r--r-- | dev-python/pytz/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytz/files/2016.6.1-zoneinfo.patch | 12 | ||||
-rw-r--r-- | dev-python/pytz/pytz-2016.6.1.ebuild | 35 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pytz/Manifest b/dev-python/pytz/Manifest index 1da34e98c952..023279706a5f 100644 --- a/dev-python/pytz/Manifest +++ b/dev-python/pytz/Manifest @@ -2,3 +2,4 @@ DIST pytz-2015.4.tar.bz2 157361 SHA256 a78b484d5472dd8c688f8b3eee18646a25c66ce45 DIST pytz-2015.6.tar.bz2 156925 SHA256 01eed1b2226dc386d8e467a2ff8c4f1aa08c65d5d7e7c43aa094bd45d5bd68ba SHA512 e6e117d85c0a0310b115cfaae2b9d5957641f8367a7890f4e1afed8129e77c6a08b733b985c06d5f3fe5bbfa565387826883864b79dd4946065561a60ad24f35 WHIRLPOOL 255684e9f24353aeda2f26fc89216aef3b34a87a74df4dc758f87da31cedce6d372d405d37e8c538b786324c6ce03da177d3429438999ecfd744009fd7bbbbe9 DIST pytz-2015.7.tar.bz2 156812 SHA256 fbd26746772c24cb93c8b97cbdad5cb9e46c86bbdb1b9d8a743ee00e2fb1fc5d SHA512 ffdea72f36b286ea63a3dbc022626ab01d2348ebd29c3532e9e1a289c3112f0ff01e9f3fcf2ad389b609d14393b68c9652f61d1589551f4979a010185da0609c WHIRLPOOL 3ed0deee15f831ae735a9d4f317fe1eaca91e10f450343b0a1e24998846785fd5b02c71caa4ee4e40e426fdc780e2ac9ccaf54abc1f7a66c662bef84feacd691 DIST pytz-2016.3.tar.bz2 170906 SHA256 c193dfa167ac32c8cb96f26cbcd92972591b22bda0bac3effdbdb04de6cc55d6 SHA512 8d91a84500257327361a8ccd19ce2d2e5848c10c7d4105ec1be012be592ec38113611558c7894c1825cc1967303901fce35079fc799cc10e84216864cd00266f WHIRLPOOL b2af20a788fa70c23b04cda3acdff812c30713f00a9aaf2144d85c64341f6fe4e365b558f3f0b5491c6c99ebf633d2d3910c95f7a6ae1f9c53b40da6bcbc23af +DIST pytz-2016.6.1.tar.bz2 172223 SHA256 b5aff44126cf828537581e534cc94299b223b945a2bb3b5434d37bf8c7f3a10c SHA512 89a1e19861a15884aa0ddc68ad7221e362994a0457e2e178e80fee539bd52dd9dcdf94a5bb3aa33e60e7523b803860f8fe01f90236f2a8f0c2a8da0a62bb61b2 WHIRLPOOL b8f6de9065fce0b34a6aca21f3f2625d2e077f705ccd80baaec92e70e51960e0a88edb0611a18197612f4b359720cd34994d14cf2327cb9871e98f78035ff6d9 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..2d61448ea7e6 --- /dev/null +++ b/dev-python/pytz/files/2016.6.1-zoneinfo.patch @@ -0,0 +1,12 @@ +--- pytz/__init__.py.bak 2016-07-14 13:20:37.856381431 +0200 ++++ pytz/__init__.py 2016-07-14 13:21:00.464512973 +0200 +@@ -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/pytz-2016.6.1.ebuild b/dev-python/pytz/pytz-2016.6.1.ebuild new file mode 100644 index 000000000000..c9234636c826 --- /dev/null +++ b/dev-python/pytz/pytz-2016.6.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} 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 ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=sys-libs/timezone-data-2015g" +RDEPEND="${DEPEND}" + +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}" +} |