From 97973bebc1ca33be91e233bd055343ea82190d89 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Fri, 3 Sep 2021 14:48:41 +0300 Subject: [PATCH] dev-python/mpmath: enable py3.10 Signed-off-by: Arthur Zamarin --- 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 7960b10143a97..38db5821fca70 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}" }