commit:     97973bebc1ca33be91e233bd055343ea82190d89
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  3 11:48:41 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  3 14:41:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97973beb

dev-python/mpmath: enable py3.10

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

 dev-python/mpmath/mpmath-1.2.1.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-python/mpmath/mpmath-1.2.1.ebuild 
b/dev-python/mpmath/mpmath-1.2.1.ebuild
index 7960b10143a..38db5821fca 100644
--- a/dev-python/mpmath/mpmath-1.2.1.ebuild
+++ b/dev-python/mpmath/mpmath-1.2.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1 virtualx
 
@@ -14,8 +14,7 @@ 
SRC_URI="https://github.com/fredrik-johansson/${PN}/archive/${PV}.tar.gz -> ${P}
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos"
-IUSE="gmp matplotlib test"
-RESTRICT="!test? ( test )"
+IUSE="gmp matplotlib"
 
 RDEPEND="
        gmp? ( dev-python/gmpy[${PYTHON_USEDEP}] )
@@ -27,6 +26,7 @@ distutils_enable_tests pytest
 
 src_configure() {
        export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+       distutils-r1_src_configure
 }
 
 src_test() {
@@ -34,7 +34,5 @@ src_test() {
 }
 
 python_test() {
-       pushd ${PN}/tests >/dev/null
-       ${EPYTHON} runtests.py -local || die "Tests failed with ${EPYTHON}"
-       popd >/dev/null
+       "${EPYTHON}" mpmath/tests/runtests.py -local || die "Tests failed with 
${EPYTHON}"
 }

Reply via email to