diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-01-30 06:53:35 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-01-30 06:53:35 +0000 |
| commit | c274884963bce2da3feb11087ab38d5359dce6b4 (patch) | |
| tree | 3cdc2dcbe2612dd61ce81792bdc14d25864d3537 /dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild | |
| parent | 09e7ba82863ca0798e5f9d24118c3905b4e17ae6 (diff) | |
| download | baldeagleos-repo-c274884963bce2da3feb11087ab38d5359dce6b4.tar.gz baldeagleos-repo-c274884963bce2da3feb11087ab38d5359dce6b4.tar.xz baldeagleos-repo-c274884963bce2da3feb11087ab38d5359dce6b4.zip | |
Adding metadata
Diffstat (limited to 'dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild')
| -rw-r--r-- | dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild new file mode 100644 index 000000000000..71afff46b64f --- /dev/null +++ b/dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +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}] + ) + ) + ) +" + +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 +} |
