commit: cb7a095e934e3941ce7686ca703674efc00695cc
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 9 05:50:18 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 9 05:53:43 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb7a095e
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 <AT> gentoo.org>
dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild | 21 +++++++++++++--------
1 file 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