commit:     ae13e056d16c79c129d45cf95816f61ac181cdab
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 18 17:58:53 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 18 18:09:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae13e056

dev-python/rdflib: Port to py3.9

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rdflib/rdflib-4.2.2-r1.ebuild | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/dev-python/rdflib/rdflib-4.2.2-r1.ebuild 
b/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
index 448f91e6dd7..a6eb50c7d38 100644
--- a/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
+++ b/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6..9} )
 PYTHON_REQ_USE="sqlite?,threads(+)"
 
 # The usual required for tests
@@ -78,14 +78,9 @@ python_compile_all() {
 }
 
 python_test() {
-       # the default; nose with: --where=./ does not work for python3
-       if python_is_python3; then
-               pushd "${BUILD_DIR}/src/" >/dev/null || die
-               "${EPYTHON}" ./run_tests.py || die "Tests failed under 
${EPYTHON}"
-               popd >/dev/null || die
-       else
-               "${EPYTHON}" ./run_tests.py || die "Tests failed under 
${EPYTHON}"
-       fi
+       pushd "${BUILD_DIR}/src/" >/dev/null || die
+       "${EPYTHON}" ./run_tests.py -v || die "Tests failed under ${EPYTHON}"
+       popd >/dev/null || die
 }
 
 python_install_all() {

Reply via email to