dev-python/rdflib: take out doctests from test phase, fixes Bug #358189
authorIan Delaney <idella4@gentoo.org>
Wed, 19 Aug 2015 09:18:59 +0000 (17:18 +0800)
committerIan Delaney <idella4@gentoo.org>
Wed, 19 Aug 2015 10:05:31 +0000 (18:05 +0800)
Package-Manager: portage-2.2.20

dev-python/rdflib/rdflib-4.1.2.ebuild
dev-python/rdflib/rdflib-4.2.0.ebuild

index da5d38550c976763af7b4d001e6f4dd8d89c896e..ea599e27a076ea6d78705285100f762261d5ca1a 100644 (file)
@@ -1,3 +1,4 @@
+
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
@@ -36,6 +37,11 @@ DEPEND="${RDEPEND}
 python_prepare_all() {
        # Upstream manufactured .pyc files which promptly break distutils' src_test
        find -name "*.py[oc~]" -delete || die
+
+       # Bug 358189; take out tests that attempt to connect to the network
+       sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \
+               -e "/'--doctest-tests',/d" -i run_tests.py || die
+
        distutils-r1_python_prepare_all
 }
 
index 9ab19201e2121c152f473f65f8a481304ed664c4..294c0a58657fc50e5efce742c3495f99ca8cf440 100644 (file)
@@ -23,7 +23,7 @@ IUSE="berkdb examples mysql redland sqlite test"
 
 RDEPEND="
        dev-python/isodate[${PYTHON_USEDEP}]
-       dev-python/html5lib[$(python_gen_usedep 'python2*')]
+       dev-python/html5lib[${PYTHON_USEDEP}]
        dev-python/pyparsing[${PYTHON_USEDEP}]
        berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
        mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
@@ -36,6 +36,11 @@ DEPEND="${RDEPEND}
 python_prepare_all() {
        # Upstream manufactured .pyc files which promptly break distutils' src_test
        find -name "*.py[oc~]" -delete || die
+
+       # Bug 358189; take out tests that attempt to connect to the network
+        sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \
+               -e "/'--doctest-tests',/d" -i run_tests.py || die
+
        distutils-r1_python_prepare_all
 }