diff options
author | Louis Sautier <sautier.louis@gmail.com> | 2016-03-23 19:42:40 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-03-23 20:54:56 +0000 |
commit | 0563e52ee8a0a6e403bc711fe156b00b3c1caeb7 (patch) | |
tree | 43fff6d69faaaa41b3d4761da79edbef6481bdeb /dev-python | |
parent | dev-ruby/bundler-audit: restrict test on 0.5.0, for now it seems broken (diff) | |
download | gentoo-0563e52ee8a0a6e403bc711fe156b00b3c1caeb7.tar.gz gentoo-0563e52ee8a0a6e403bc711fe156b00b3c1caeb7.tar.bz2 gentoo-0563e52ee8a0a6e403bc711fe156b00b3c1caeb7.zip |
dev-python/jaraco-functools: bump to 1.9
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1121
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/jaraco-functools/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jaraco-functools/jaraco-functools-1.9.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/jaraco-functools/Manifest b/dev-python/jaraco-functools/Manifest index b181d06fc5c8..c3d36ac9b453 100644 --- a/dev-python/jaraco-functools/Manifest +++ b/dev-python/jaraco-functools/Manifest @@ -1,2 +1,3 @@ DIST jaraco.functools-1.8.1.tar.gz 6125 SHA256 766cd9caed0c18dfbf744dcd05d1f171f03e64ab8f7363d5b2521ba200383c5a SHA512 d67795340238bd646bea450e8bb37fb64bca66a41a4b8f385f4a986b880578edfa2dad23b820a1a9cce7460dc530a2de2a219362e9cd0ced851040e86fb70f21 WHIRLPOOL bd050b7daa52f2f5043ca2209562472b96d9ec5d417edf96bf686eb0f60a4bde6b69890557140f7f0b278e8d612c702b01a5b72ccae5b894b3646d37582a1da5 DIST jaraco.functools-1.8.2.tar.gz 6549 SHA256 2766002fb0827e596744754158ceb5cfc4fba723567c756d39b9d7fbdb568ed0 SHA512 e655da8f812d21e20f671e5116357cea4f5ac1901715892c15a4284ea787e75c958ad087d73d0ad75c0a8bf6bb6b44d3ed3a6b68f9c393ae0de93063ecef8851 WHIRLPOOL 318679b1fcd3d9e8510a340bb5738608f4e0e1fac8229ca996925446921082339c6cf742ee353f8b08b08a777bfcce4c8384fd5f60482360699403014ed19dd1 +DIST jaraco.functools-1.9.tar.gz 7220 SHA256 79a813f061ee16f431ac3828caca58b173d95d1518af144fa6307a92e90da496 SHA512 93b2cb1690bb9cf68b9f19b8964c7b660d35c2bd467ad724fe9d6169ae6a257aa2eab78da5bb49af14209991dc67df4ee7c7c03953fc753655aac924d5af550b WHIRLPOOL f49782df05f26513cdb5117b7412719498824e4394aa7557ba245dac35ff306c47412a4798713e2333c4ec700cbb78665da850e40cb499e8d961d815a0912acb diff --git a/dev-python/jaraco-functools/jaraco-functools-1.9.ebuild b/dev-python/jaraco-functools/jaraco-functools-1.9.ebuild new file mode 100644 index 000000000000..0ff4c9adec63 --- /dev/null +++ b/dev-python/jaraco-functools/jaraco-functools-1.9.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Additional functions used by other projects by developer jaraco" +HOMEPAGE="https://github.com/jaraco/jaraco.functools" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7) +" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/pytest-2.8[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + dev-python/backports-unittest-mock[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_prepare_all() { + if use test && has_version "${CATEGORY}/${PN}"; then + die "Ensure $PN is not already installed or the test suite will fail" + fi + distutils-r1_python_prepare_all +} + +python_test() { + PYTHONPATH=. py.test || die "tests failed with ${EPYTHON}" +} |