diff options
author | Tim Harder <radhermit@gentoo.org> | 2017-08-21 22:21:21 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2017-08-21 23:39:25 -0400 |
commit | dc51fe278d02c417e969b00560e0fb81043127c4 (patch) | |
tree | 976b768226beb6f2c5260363fe8aa4d8a869e9c6 /dev-python/pytest-forked | |
parent | net-irc/unrealircd: Drop old unrealircd-4.0.6. (diff) | |
download | gentoo-dc51fe278d02c417e969b00560e0fb81043127c4.tar.gz gentoo-dc51fe278d02c417e969b00560e0fb81043127c4.tar.bz2 gentoo-dc51fe278d02c417e969b00560e0fb81043127c4.zip |
dev-python/pytest-forked: initial import for newer pytest-xdist
Diffstat (limited to 'dev-python/pytest-forked')
-rw-r--r-- | dev-python/pytest-forked/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-forked/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pytest-forked/pytest-forked-0.2.ebuild | 37 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pytest-forked/Manifest b/dev-python/pytest-forked/Manifest new file mode 100644 index 000000000000..faa8899d57f7 --- /dev/null +++ b/dev-python/pytest-forked/Manifest @@ -0,0 +1 @@ +DIST pytest-forked-0.2.tar.gz 9617 SHA256 e4500cd0509ec4a26535f7d4112a8cc0f17d3a41c29ffd4eab479d2a55b30805 SHA512 5e84fcaceed46ee9da8eec051e72acb46f09e2df3458511651604c35d68e3ad06fc41d52578127fd29f0c216dcb5fce1844c614f10501727cbf8fa8f2316f231 WHIRLPOOL 7f34574246d8280b6eaceaffd0e6c1a1517a35336f4aed7ac804ff1e5235c05462fe7b4e09a2908d87499a1fff1ee13e9d58d29a4877b4b40b87e0a92ba5d99d diff --git a/dev-python/pytest-forked/metadata.xml b/dev-python/pytest-forked/metadata.xml new file mode 100644 index 000000000000..2a3e6f5c321e --- /dev/null +++ b/dev-python/pytest-forked/metadata.xml @@ -0,0 +1,12 @@ +<?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> + <upstream> + <remote-id type="pypi">pytest-forked</remote-id> + <remote-id type="github">pytest-dev/pytest-forked</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pytest-forked/pytest-forked-0.2.ebuild b/dev-python/pytest-forked/pytest-forked-0.2.ebuild new file mode 100644 index 000000000000..1416c6954209 --- /dev/null +++ b/dev-python/pytest-forked/pytest-forked-0.2.ebuild @@ -0,0 +1,37 @@ +# 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 + +DESCRIPTION="run tests in isolated forked subprocesses" +HOMEPAGE="https://pypi.python.org/pypi/pytest-forked https://github.com/pytest-dev/pytest-forked" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] +" + +python_prepare_all() { + distutils-r1_python_prepare_all + + # remove bundled bytecode + rm -r testing/__pycache__ || die +} + +python_test() { + distutils_install_for_testing + py.test -v || die "Tests failed under ${EPYTHON}" +} |