diff options
Diffstat (limited to 'dev-python/mpmath')
-rw-r--r-- | dev-python/mpmath/Manifest | 4 | ||||
-rw-r--r-- | dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild | 2 | ||||
-rw-r--r-- | dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild | 69 |
3 files changed, 73 insertions, 2 deletions
diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest index 0d9513fc51f2..76222c5123ee 100644 --- a/dev-python/mpmath/Manifest +++ b/dev-python/mpmath/Manifest @@ -2,7 +2,9 @@ AUX mpmath-1.4.0_alpha2-before-numpy-2.patch 917 BLAKE2B 82ca24da1dd51102192c71a DIST mpmath-1.4.0a2.tar.gz 2079112 BLAKE2B 9d2d99dddd4e800b3860f38ef1955b7d803c928d54a7e5d7b07386a127c5a6477818e3ac5c9f679f596c7a2c21bbf430f0bb2348c70ab77d6a888cfb19c6a218 SHA512 523775f3e7d96fd9e0d2c5e4caf855f62d0b683ac00df9dce4fd50d8764bfcf77282fdb34afb51bc53bb303178e7f0e8b6d72700e530d3ca11e3d365b09fc4de DIST mpmath-1.4.0a3.tar.gz 2079258 BLAKE2B f57e4603758f8aae879e9e61d42f11303eb3f81c02ee51ea54260ce26fa49013f41c7f6f7d97eea6489c42d490ae4f423c3d7f79052972d6b089fb8a03d47aa0 SHA512 8fd32e98beaf2382a2ec8a92df2a097f2101e746bd3e821b92183b6be560b0fed30daeb0b93d459fad62bea29c425ed142055819a346629d385a1426fb00e611 DIST mpmath-1.4.0a4.tar.gz 2079349 BLAKE2B 197578fe989776a2def8bc7de009a9a7a2720ebf488e03e4d0a97ec7fbebbf75b009686bf936b884af5d98dd82abf8f65df0e3b8a9b29a92b3d92925103ead67 SHA512 ea04bed2d95de4ff45420d5e8785410589c118831f7d66f0cc0eb5e9a1a8b42e7acc39d7d36b39c28b6c92640617432c17f7162a5bc66410b2581e98c75e951f +DIST mpmath-1.4.0a5.tar.gz 2081385 BLAKE2B a6a2b0415f1401948cc8af1bb61449d2804d52a75464b29bbeb18bcda089838336a10c4e5c4cb6a83ac7d710ebbfa1f2ba6566369d5e6bf5ea84047d465570b7 SHA512 998f11ffb66054fab88f6f9aa00def5dc0deee22f59031c8049fb6cda7485ef13352b48e51ab6e490c09c477adcd283b5c8e1d080974488fec5cd9b9139a914d EBUILD mpmath-1.4.0_alpha2.ebuild 2008 BLAKE2B 2ef42d92584f6ac46177ac4dbae0e31038227d51d07b38dabce8217b97dbb65565dbdd9c8062b622364f1c59ba118e13557de13ba0eb4914055e67dffbc9cd19 SHA512 6c386658eeb5e7489d2f49364fd1391f12a7df5df37988c39dbb9e2b06ca4f9bb25358ff6c4ff2e83ec3188e43da05ee33e62e6681190aa60e3f8e00b6945ca1 EBUILD mpmath-1.4.0_alpha3.ebuild 1755 BLAKE2B 5c382eb043a42042b65d8e07fb4ff457d211322c505a0641fdabd6f6f1c582c34249b9b64f2f3b0576ddc3b32a2daf9009c59958d648a1ca6f36073959945ae2 SHA512 5d5a85239702be4c44a8fcef1183ea033d48f3073e26beb99aab84f357e32ffea75131014dc84b0ed904be5cfc01f3a95486dafe5e6b9f759a94b7a7b5406963 -EBUILD mpmath-1.4.0_alpha4.ebuild 1722 BLAKE2B cd3f46d790c2e940b54972847867239baa523e3ec2ab6b7d059146c7279fff48627b978e9c783140e72eb3510da8d2a2a3f71965c7e8f02d05612569cd3f04ce SHA512 ba1056dcd0922d103ffb389113be9932ad1cb454e3e74031564eb13d19a446bb2c2a14c2256c7f73fab91e8b323186f8ce775862d917014f4c36126e5669001d +EBUILD mpmath-1.4.0_alpha4.ebuild 1721 BLAKE2B 774798dcb58edeed414d9e1d8b51a152c2286b632a86827345b30a12b0304df063079bfd66910761ba0b94f6c798e093c8a6953a61ff4977987f30b5c1969190 SHA512 1ca6b3ccb2cd49a5ef4c751320dd92ca7b3c632101e9b00c40da2f9ea5e72a8f5d670e3171715b8167f69a2a690cf05a2c4c7cfbbda931a347845b2b0c9aa9c5 +EBUILD mpmath-1.4.0_alpha5.ebuild 1727 BLAKE2B 7cc00d9f10797e4c169351b59e7d381dbdfcb4eab55a74542270affa379adc5835f6ad2d26638611b5e23988e9e352d9e88700595a0fb734cf348b694bb2b154 SHA512 3342f5a71af81b21db427b9862b2434698e2ce76fffbfc953db333ac039147a01f82b4d01610af7032d1fa5ede4f3669c648436933b556821908d76489644f25 MISC metadata.xml 645 BLAKE2B b56183cb416aee2fb297686aaceb2f90e3f6ec0f820200737b6866dfd725fb82f378b1163a377819396ba44c87c3f44b74cf18d086653ed0e08366f6c2aee3c0 SHA512 a8a75c7e0b0fedfc55daff459b745b1b25362fe6bd1439ea1bde60b06f6d689848d6bc2d5f0f57d691a4f41ad3ef0c5f96e12361ec6725abb887ac2373f67615 diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild index 33ed6ad900a8..9d147dcf01cd 100644 --- a/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild +++ b/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm arm64 hppa ~loong ~mips ppc ~ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +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}] diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild new file mode 100644 index 000000000000..307119af163b --- /dev/null +++ b/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild @@ -0,0 +1,69 @@ +# 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 pypy3_11 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? ( + !hppa? ( + dev-python/matplotlib[${PYTHON_USEDEP}] + ) + ) + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # minor whitespace mismatch, apparently fixed in pypy 7.3.18 + mpmath/tests/test_format.py::test_mpf_floats_bulk + mpmath/tests/test_format.py::test_mpc_complexes + ) + ;; + esac + + # CLI crashes otherwise, sigh (not a regression) + # https://github.com/mpmath/mpmath/issues/907 + > "${HOME}/.python_history" || die + + 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 +} |