summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-05-29 19:50:14 +0000
committerIan Delaney <idella4@gentoo.org>2013-05-29 19:50:14 +0000
commitfec78b10cddf579e10f4e5f1e5366a9f6c6685dc (patch)
tree4e1502ff5d3bb16899e12b68f4ff353090dbf3e9 /dev-python
parentFix rspec dependency: bug 471416. (diff)
downloadgentoo-2-fec78b10cddf579e10f4e5f1e5366a9f6c6685dc.tar.gz
gentoo-2-fec78b10cddf579e10f4e5f1e5366a9f6c6685dc.tar.bz2
gentoo-2-fec78b10cddf579e10f4e5f1e5366a9f6c6685dc.zip
add pypy support, test phase
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/doit/ChangeLog5
-rw-r--r--dev-python/doit/doit-0.20.0.ebuild33
2 files changed, 33 insertions, 5 deletions
diff --git a/dev-python/doit/ChangeLog b/dev-python/doit/ChangeLog
index dfedd957c7fb..c8a6c7e2f4e3 100644
--- a/dev-python/doit/ChangeLog
+++ b/dev-python/doit/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/doit
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/ChangeLog,v 1.3 2013/02/02 09:17:36 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/ChangeLog,v 1.4 2013/05/29 19:50:14 idella4 Exp $
+
+ 29 May 2013; Ian Delaney <idella4@gentoo.org> doit-0.20.0.ebuild:
+ add pypy support, test phase
*doit-0.20.0 (02 Feb 2013)
diff --git a/dev-python/doit/doit-0.20.0.ebuild b/dev-python/doit/doit-0.20.0.ebuild
index c358fe6e0d10..2891ce766166 100644
--- a/dev-python/doit/doit-0.20.0.ebuild
+++ b/dev-python/doit/doit-0.20.0.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/doit-0.20.0.ebuild,v 1.1 2013/02/02 09:17:36 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/doit-0.20.0.ebuild,v 1.2 2013/05/29 19:50:14 idella4 Exp $
EAPI=5
-PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
inherit eutils distutils-r1
DESCRIPTION="Automation tool"
@@ -13,10 +13,35 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="test"
DEPEND=""
-RDEPEND="dev-python/pyinotify"
+RDEPEND="dev-python/pyinotify[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ use test && DISTUTILS_IN_SOURCE_BUILD=1
+ sed -e 's:from .conf:from conf:' -i tests/test_dependency.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ local test
+ # https://bitbucket.org/schettino72/doit/issue/48/test-suite-has-me-perplexed-doit-0200
+ # "${PYTHON}" runtests.py # How it's supposed to work
+ # How it works
+ if [[ "${EPYTHON}" == python3* ]]; then
+ einfo "tests don't work for py3"
+ else
+ for test in tests/test_*.py
+ do
+ if ! "${PYTHON}" $test; then
+ die "Test $test failed under ${EPYTHON}"
+ else
+ einfo "Test ${test#tests/} passed under ${EPYTHON}"
+ fi
+ done
+ fi
+}
src_install() {
distutils-r1_src_install