dev-python/pytest-forked: initial import for newer pytest-xdist

This commit is contained in:
Tim Harder
2017-08-21 22:21:21 -04:00
parent 66717c3ab9
commit dc51fe278d
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST pytest-forked-0.2.tar.gz 9617 SHA256 e4500cd0509ec4a26535f7d4112a8cc0f17d3a41c29ffd4eab479d2a55b30805 SHA512 5e84fcaceed46ee9da8eec051e72acb46f09e2df3458511651604c35d68e3ad06fc41d52578127fd29f0c216dcb5fce1844c614f10501727cbf8fa8f2316f231 WHIRLPOOL 7f34574246d8280b6eaceaffd0e6c1a1517a35336f4aed7ac804ff1e5235c05462fe7b4e09a2908d87499a1fff1ee13e9d58d29a4877b4b40b87e0a92ba5d99d

View File

@@ -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>

View File

@@ -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}"
}