diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-04-29 11:37:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-07 20:43:22 +0200 |
commit | 7137b61e91ee3a3f1127b4672210d856bc32d9fb (patch) | |
tree | 3f573cb417dd4c0225071f5e167a3b939651f36d /dev-python/zope-testing/zope-testing-4.6.1.ebuild | |
parent | dev-python/zope-exceptions: New package, dep of zope.testing (diff) | |
download | gentoo-7137b61e91ee3a3f1127b4672210d856bc32d9fb.tar.gz gentoo-7137b61e91ee3a3f1127b4672210d856bc32d9fb.tar.bz2 gentoo-7137b61e91ee3a3f1127b4672210d856bc32d9fb.zip |
dev-python/zope-testing: New package, dep of zc.buildout
Diffstat (limited to 'dev-python/zope-testing/zope-testing-4.6.1.ebuild')
-rw-r--r-- | dev-python/zope-testing/zope-testing-4.6.1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/zope-testing/zope-testing-4.6.1.ebuild b/dev-python/zope-testing/zope-testing-4.6.1.ebuild new file mode 100644 index 000000000000..95578fccb91a --- /dev/null +++ b/dev-python/zope-testing/zope-testing-4.6.1.ebuild @@ -0,0 +1,38 @@ +# 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{,3} ) +inherit distutils-r1 + +MY_PN=${PN/-/.} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Zope testing helpers" +HOMEPAGE="https://pypi.python.org/pypi/zope.testing https://github.com/zopefoundation/zope.testing" +SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}] + dev-python/zope-exceptions[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_P} + +python_test() { + esetup.py test +} + +python_install_all() { + distutils-r1_python_install_all + + # remove .pth files since dev-python/namespace-zope handles the ns + find "${D}" -name '*.pth' -delete || die +} |