commit: 8ec80905c649b285b8602955245b77a2058f2bfe Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Oct 10 11:11:28 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Oct 10 11:24:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ec80905
dev-python/mpmath: Remove old Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/mpmath/Manifest | 3 - .../files/mpmath-1.4.0_alpha2-before-numpy-2.patch | 22 ------ .../files/mpmath-1.4.0_alpha5-valueerror.patch | 50 -------------- dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild | 78 ---------------------- dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild | 69 ------------------- dev-python/mpmath/mpmath-1.4.0_alpha8.ebuild | 56 ---------------- 6 files changed, 278 deletions(-) diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest index b32990405ce7..64a508ab8366 100644 --- a/dev-python/mpmath/Manifest +++ b/dev-python/mpmath/Manifest @@ -1,6 +1,3 @@ -DIST mpmath-1.4.0a2.tar.gz 2079112 BLAKE2B 9d2d99dddd4e800b3860f38ef1955b7d803c928d54a7e5d7b07386a127c5a6477818e3ac5c9f679f596c7a2c21bbf430f0bb2348c70ab77d6a888cfb19c6a218 SHA512 523775f3e7d96fd9e0d2c5e4caf855f62d0b683ac00df9dce4fd50d8764bfcf77282fdb34afb51bc53bb303178e7f0e8b6d72700e530d3ca11e3d365b09fc4de -DIST mpmath-1.4.0a5.tar.gz 2081385 BLAKE2B a6a2b0415f1401948cc8af1bb61449d2804d52a75464b29bbeb18bcda089838336a10c4e5c4cb6a83ac7d710ebbfa1f2ba6566369d5e6bf5ea84047d465570b7 SHA512 998f11ffb66054fab88f6f9aa00def5dc0deee22f59031c8049fb6cda7485ef13352b48e51ab6e490c09c477adcd283b5c8e1d080974488fec5cd9b9139a914d DIST mpmath-1.4.0a6.tar.gz 2085764 BLAKE2B 0faddbcf68689807fae5c1a21b00e669a3fb5cf834321b2c903f298adf4ab74e2861706c4dc4ba2f10f91da02eee02b79f9720d8a1f58f5bff00c8febf75f13a SHA512 477f6af5e1f2bba5ec31f370549f1d91cff9f2985d579cab1392c3bdf4fa83d1417b015ab65655027a0dea36e41cc984b76f53b1cbe79bb057fe899baaa7fb48 DIST mpmath-1.4.0a7.tar.gz 2088255 BLAKE2B ae8578add85134d72401a1e47e687e35b2c40755f4121013c509bbb5d988b649c6bc7aaa803fe135fb34841ed2c12fd243900add9ba92909de66c32c3433063b SHA512 18be276fc51ae701853047e916c7710f27211a2b6a76f7fc7684794422fb9549cdd066daa3bb712123378787932756cf66bee4b718fb3bece99e886f215d2c27 -DIST mpmath-1.4.0a8.tar.gz 2088916 BLAKE2B b70f95320b9b49d529b8b855a8a641a748bf076866aa08d5e9a616f6c19f5ce9ec840968c05878ed7c813133ac1cbb903cc98b111f194391dbb0b5a283dda8da SHA512 be256da32d6aeef287205677a78f509acf568ee13a154c16222a1bc62ea14405e29adbbb5bb87a50a1105aff8a48bf533a34b514ff7f6fc48b477f9d164f9b6e DIST mpmath-1.4.0b1.tar.gz 2089057 BLAKE2B 3e59017435276ecac774626a80b2c488e95805f02c886833b35aa76ee4bd4371197bde3a61015ec05ea4435122ad05c54a94c40dd98f9792539cf576ddb9f81a SHA512 5c9217a67bca60bba75d4ad2b3c8fbbf0f422e4f5a001515862148e66977ebdd7af7916262d8a10e400997149dce65fd1ffb8978a8c9fe9b76526fbe700375b0 diff --git a/dev-python/mpmath/files/mpmath-1.4.0_alpha2-before-numpy-2.patch b/dev-python/mpmath/files/mpmath-1.4.0_alpha2-before-numpy-2.patch deleted file mode 100644 index bd8674118038..000000000000 --- a/dev-python/mpmath/files/mpmath-1.4.0_alpha2-before-numpy-2.patch +++ /dev/null @@ -1,22 +0,0 @@ -https://github.com/mpmath/mpmath/pull/878 -https://github.com/mpmath/mpmath/commit/728db99cd92dde589dc0cbe89f7f3f444af046ad - -From 9dd08e59dff0a0992b92d31e4f614e43881b301d Mon Sep 17 00:00:00 2001 -From: Doug Torrance <[email protected]> -Date: Tue, 15 Oct 2024 18:48:40 -0400 -Subject: [PATCH] Only check for NumPy array copy ValueError w/ NumPy >= 2.0 - -No such error is raised when using NumPy < 2.0. ---- a/mpmath/tests/test_matrices.py -+++ b/mpmath/tests/test_matrices.py -@@ -203,7 +203,8 @@ def test_matrix_numpy(): - - if sys.version_info < (3, 9): - pytest.skip("latest numpy dropped support for CPython 3.8") -- pytest.raises(ValueError, lambda: numpy.array(matrix(l), copy=False)) -+ if numpy.__version__ >= '2': -+ pytest.raises(ValueError, lambda: numpy.array(matrix(l), copy=False)) - - def test_interval_matrix_scalar_mult(): - """Multiplication of iv.matrix and any scalar type""" - diff --git a/dev-python/mpmath/files/mpmath-1.4.0_alpha5-valueerror.patch b/dev-python/mpmath/files/mpmath-1.4.0_alpha5-valueerror.patch deleted file mode 100644 index fc3ebefb7680..000000000000 --- a/dev-python/mpmath/files/mpmath-1.4.0_alpha5-valueerror.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 9ad6a13925922711ca004686194daf8f110feaea Mon Sep 17 00:00:00 2001 -From: Sergey B Kirpichev <[email protected]> -Date: Mon, 9 Jun 2025 05:07:00 +0300 -Subject: [PATCH] Fix from_man_exp to correctly reject non-integral mantissa - -This partially reverts 25506567 ---- - mpmath/ctx_mp_python.py | 2 +- - mpmath/libmp/libmpf.py | 7 +++++-- - mpmath/tests/test_basic_ops.py | 5 +++++ - 3 files changed, 11 insertions(+), 3 deletions(-) - -diff --git a/mpmath/ctx_mp_python.py b/mpmath/ctx_mp_python.py -index d9e9f64f..72b81278 100644 ---- a/mpmath/ctx_mp_python.py -+++ b/mpmath/ctx_mp_python.py -@@ -64,7 +64,7 @@ def __new__(cls, val=fzero, **kwargs): - if len(val) == 4: - val = val[0], MPZ(val[1]), *val[2:] - elif len(val) == 2: -- v._mpf_ = from_man_exp(MPZ(val[0]), val[1], prec, rounding) -+ v._mpf_ = from_man_exp(val[0], val[1], prec, rounding) - return v - else: - raise ValueError -diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py -index af61879e..266ee394 100644 ---- a/mpmath/libmp/libmpf.py -+++ b/mpmath/libmp/libmpf.py -@@ -8,7 +8,7 @@ - import sys - import warnings - --from .backend import BACKEND, MPZ, MPZ_FIVE, MPZ_ONE, MPZ_ZERO, gmpy -+from .backend import BACKEND, MPZ, MPZ_FIVE, MPZ_ONE, MPZ_ZERO, gmpy, int_types - from .libintmath import (bctable, bin_to_radix, isqrt, numeral, sqrtrem, - stddigits, trailtable) - -@@ -204,7 +204,10 @@ def normalize(sign, man, exp, bc, prec, rnd): - def from_man_exp(man, exp, prec=0, rnd=round_fast): - """Create raw mpf from (man, exp) pair. The mantissa may be signed. - If no precision is specified, the mantissa is stored exactly.""" -- man = MPZ(man) -+ if isinstance(man, int_types): -+ man = MPZ(man) -+ else: -+ raise TypeError("man expected to be an integer") - sign = 0 - if man < 0: - sign = 1 diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild deleted file mode 100644 index 3a0c0c403e05..000000000000 --- a/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{10..13} ) - -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic" -HOMEPAGE=" - https://mpmath.org/ - https://github.com/mpmath/mpmath/ - https://pypi.org/project/mpmath/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" - -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/gmpy2[${PYTHON_USEDEP}] - ' 'python3*') - !mips? ( - dev-python/ipython[${PYTHON_USEDEP}] - !hppa? ( - dev-python/matplotlib[${PYTHON_USEDEP}] - ) - ) - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-1.4.0_alpha2-before-numpy-2.patch -) - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # TODO - 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 - ) - - case ${EPYTHON} in - pypy3) - EPYTEST_DESELECT+=( - # minor whitespace mismatch - # https://github.com/mpmath/mpmath/issues/874 - mpmath/tests/test_format.py::test_mpf_floats_bulk - mpmath/tests/test_format.py::test_mpc_complexes - ) - ;; - esac - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p rerunfailures --reruns=5 -p timeout -} - -pkg_postinst() { - optfeature "gmp support" dev-python/gmpy2 - optfeature "matplotlib support" dev-python/matplotlib -} diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild deleted file mode 100644 index 8cade4b44c48..000000000000 --- a/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -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" -HOMEPAGE=" - https://mpmath.org/ - https://github.com/mpmath/mpmath/ - https://pypi.org/project/mpmath/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="test-full" - -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/gmpy2[${PYTHON_USEDEP}] - ' 'python3*') - test-full? ( - $(python_gen_cond_dep ' - dev-python/matplotlib[${PYTHON_USEDEP}] - ' "${PYTHON_FULLY_TESTED[@]}") - ) - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -PATCHES=( - # https://github.com/aleaxit/gmpy/pull/566 - # https://github.com/mpmath/mpmath/pull/969/commits/9ad6a13925922711ca004686194daf8f110feaea - "${FILESDIR}/${P}-valueerror.patch" -) - -python_test() { - 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 -} - -pkg_postinst() { - optfeature "gmp support" dev-python/gmpy2 - optfeature "matplotlib support" dev-python/matplotlib -} diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha8.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha8.ebuild deleted file mode 100644 index 3a2f70ae0b16..000000000000 --- a/dev-python/mpmath/mpmath-1.4.0_alpha8.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -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" -HOMEPAGE=" - https://mpmath.org/ - https://github.com/mpmath/mpmath/ - https://pypi.org/project/mpmath/ -" - -LICENSE="BSD" -SLOT="0" -IUSE="test-full" - -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/gmpy2-2.3.0_alpha1[${PYTHON_USEDEP}] - ' 'python3*') - test-full? ( - $(python_gen_cond_dep ' - dev-python/matplotlib[${PYTHON_USEDEP}] - ' "${PYTHON_FULLY_TESTED[@]}") - ) - ) -" - -EPYTEST_PLUGINS=( hypothesis pytest-timeout ) -EPYTEST_RERUNS=5 -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -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 -) - -pkg_postinst() { - optfeature "gmp support" dev-python/gmpy2 - optfeature "matplotlib support" dev-python/matplotlib -}
