summaryrefslogtreecommitdiff
path: root/dev-python/mpmath
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-06-09 06:50:18 +0100
committerSam James <sam@gentoo.org>2025-06-09 06:53:43 +0100
commitcb7a095e934e3941ce7686ca703674efc00695cc (patch)
treeb9db8afe87e1965e37153604bb7a6adbecbd9882 /dev-python/mpmath
parentc3d207da1bb5b0544d274fa6ffc0dc2855ed6d85 (diff)
downloadgentoo-cb7a095e934e3941ce7686ca703674efc00695cc.tar.gz
gentoo-cb7a095e934e3941ce7686ca703674efc00695cc.tar.bz2
gentoo-cb7a095e934e3941ce7686ca703674efc00695cc.zip
dev-python/mpmath: enable py3.14 with skipped matplotlib
matplotlib is always a big target to port and avoiding it where possible with PYTHON_FULLY_TESTED is worthwhile, so let's do that. Also, restore some skips that we dropped in d2163f6a9bbaad0bde1b344bea4cace8ac0e20c6: I didn't seem to need them the other day, but I do again now (and only consistently with >=py3.13?) for some reason. Also also, drop a stale workaround. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/mpmath')
-rw-r--r--dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild21
1 files changed, 13 insertions, 8 deletions
diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild
index 370afd841770..bfe3021d90a1 100644
--- a/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild
+++ b/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild
@@ -4,8 +4,8 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} )
-
+PYTHON_FULLY_TESTED=( pypy3_11 python3_{11..13} )
+PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_14 )
inherit distutils-r1 optfeature pypi
DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
@@ -33,7 +33,9 @@ BDEPEND="
dev-python/gmpy2[${PYTHON_USEDEP}]
' 'python3*')
test-full? (
- dev-python/matplotlib[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ ' "${PYTHON_FULLY_TESTED[@]}")
)
)
"
@@ -48,11 +50,14 @@ PATCHES=(
)
python_test() {
- local EPYTEST_DESELECT=()
-
- # CLI crashes otherwise, sigh (not a regression)
- # https://github.com/mpmath/mpmath/issues/907
- > "${HOME}/.python_history" || die
+ local EPYTEST_DESELECT=(
+ # Slow and often needs a re-run to pass
+ mpmath/tests/test_cli.py::test_bare_console_bare_division
+ mpmath/tests/test_cli.py::test_bare_console_no_bare_division
+ mpmath/tests/test_cli.py::test_bare_console_pretty
+ mpmath/tests/test_cli.py::test_bare_console_without_ipython
+ mpmath/tests/test_cli.py::test_bare_console_wrap_floats
+ )
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -p rerunfailures --reruns=5 -p timeout