commit:     fec3a1ebbe1b74519bbb910e6d436f079694602f
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 14 11:44:47 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 14 12:12:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fec3a1eb

dev-python/numpydoc: enable py3.10, cleaner test deselect

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/numpydoc/numpydoc-1.1.0.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/dev-python/numpydoc/numpydoc-1.1.0.ebuild 
b/dev-python/numpydoc/numpydoc-1.1.0.ebuild
index ff388752840..5693d12146f 100644
--- a/dev-python/numpydoc/numpydoc-1.1.0.ebuild
+++ b/dev-python/numpydoc/numpydoc-1.1.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
@@ -30,14 +30,14 @@ distutils_enable_tests pytest
 src_prepare() {
        sed -i -e 's:--cov-report= --cov=numpydoc::' setup.cfg || die
 
-       # these require Internet (intersphinx)
-       sed -e 's:test_MyClass:_&:' \
-               -e 's:test_my_function:_&:' \
-               -i numpydoc/tests/test_full.py || die
-
        distutils-r1_src_prepare
 }
 
 python_test() {
-       pytest -vv --pyargs numpydoc || die "Tests failed with ${EPYTHON}"
+       local EPYTEST_DESELECT=(
+               # these require Internet (intersphinx)
+               numpydoc/tests/test_full.py::test_MyClass
+               numpydoc/tests/test_full.py::test_my_function
+       )
+       epytest --pyargs numpydoc
 }

Reply via email to