dev-python/pytest-xdist-9999.ebuild: Add this (indirect) Raven dependency
authorW. Trevor King <wking@tremily.us>
Thu, 2 Oct 2014 22:33:57 +0000 (15:33 -0700)
committerW. Trevor King <wking@tremily.us>
Fri, 3 Oct 2014 21:10:10 +0000 (14:10 -0700)
The tests currently fail due to a bug in Setuptools' egg-info handling
[1] which is only partially worked around in the distutils-r1 eclass
[2].

[1]: https://bitbucket.org/pypa/setuptools/pull-request/85/egg_info-search-egg-base-for-files-to-add/diff
[2]: https://bugs.gentoo.org/show_bug.cgi?id=524322

pytest-xdist-9999.ebuild [new file with mode: 0644]

diff --git a/pytest-xdist-9999.ebuild b/pytest-xdist-9999.ebuild
new file mode 100644 (file)
index 0000000..944b118
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit mercurial
+       EHG_REPO_URI="https://bitbucket.org/hpk42/pytest-xdist"
+       SRC_URI=""
+else
+       SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="A distributed testing plugin for py.test"
+HOMEPAGE="https://bitbucket.org/hpk42/pytest-xdist https://pypi.python.org/pypi/pytest-xdist"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+       >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}]
+       >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+       >=dev-python/execnet-1.1[${PYTHON_USEDEP}]
+       "
+DEPEND="
+       test? (
+               ${RDEPEND}
+       )"
+
+python_test() {
+       distutils_install_for_testing
+       py.test || die "Testsuite failed under ${EPYTHON}"
+}