diff options
author | Sebastian Pipping <sping@gentoo.org> | 2020-04-06 15:38:07 +0200 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2020-04-06 15:58:15 +0200 |
commit | 43aee606b34d6aab660e97e8a5dc08351abf759e (patch) | |
tree | 74b5062f0468e9cf76f0cbfb481f111fe77f9df7 /dev-python/contextlib2 | |
parent | net-analyzer/netdata: 1.21.0 version bump (diff) | |
download | gentoo-43aee606b34d6aab660e97e8a5dc08351abf759e.tar.gz gentoo-43aee606b34d6aab660e97e8a5dc08351abf759e.tar.bz2 gentoo-43aee606b34d6aab660e97e8a5dc08351abf759e.zip |
dev-python/contextlib2: 0.6.0_p1 + QA
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-2.3.92, Repoman-2.3.22
Diffstat (limited to 'dev-python/contextlib2')
-rw-r--r-- | dev-python/contextlib2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/contextlib2/Manifest b/dev-python/contextlib2/Manifest index d4dfec530835..c75571aab5ab 100644 --- a/dev-python/contextlib2/Manifest +++ b/dev-python/contextlib2/Manifest @@ -1 +1,2 @@ +DIST contextlib2-0.6.0.post1.tar.gz 29670 BLAKE2B 927cbc674c2cb568e71bd110773bea6f848233928bb910e0db7114812b3359b9395e43c01be1645d44f3202f94c62bc21c4db883a155c64feb636a61865dd7d8 SHA512 bd3b458b365bc1d556476f6368bc523fde07e85afdad74037aa98d7a498008103a789f6b481b606700da92606ee6477fc5a817f1596e93a6e3c548ed0d4a5bf8 DIST contextlib2-0.6.0.tar.gz 29607 BLAKE2B 674d0ed2cb71837ec8bed46b44790c31601347e315abb3ab666aac3a7754f07602bbc4f1591a8c905e02949ed9178fb6230f600ca35d244b83353286901510e2 SHA512 01901ac226c7fca40add00e95cedb2535a802e0114a53ae1315c6dfee20744dbafa7d9619986ad76345ad9b9aa3e364ac01d23f51b5eb70dd2febd5af1f1fc56 diff --git a/dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild b/dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild new file mode 100644 index 000000000000..114a17add9f9 --- /dev/null +++ b/dev-python/contextlib2/contextlib2-0.6.0_p1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) + +inherit distutils-r1 + +MY_P="${PN}-${PV/_p/.post}" +DESCRIPTION="Backports and enhancements for the contextlib module" +HOMEPAGE="https://pypi.org/project/contextlib2/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + +LICENSE="PSF-2.4" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep ' + dev-python/unittest2[${PYTHON_USEDEP}] + ' python2_7 pypy3 + ) + ) +" + +S="${WORKDIR}"/${MY_P} + +RESTRICT="!test? ( test )" + +DOCS=( NEWS.rst README.rst ) + +python_prepare_all() { + sed -i -e 's:unittest.main():unittest.main(verbosity=2):' \ + test_contextlib2.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test_contextlib2.py || die "Tests fail for ${EPYTHON}" +} |