diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-10-31 07:16:52 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-10-31 07:16:52 +0000 |
| commit | e0638acb46ef74cef3fac572b36fcce8cd3953f6 (patch) | |
| tree | f929f5de5a2a6fdf38c48f12ea27a240e3c5466a /dev-python/mpmath | |
| parent | 66983b0029f6c4803a35bd33ff32bea7abee640f (diff) | |
| download | baldeagleos-repo-e0638acb46ef74cef3fac572b36fcce8cd3953f6.tar.gz baldeagleos-repo-e0638acb46ef74cef3fac572b36fcce8cd3953f6.tar.xz baldeagleos-repo-e0638acb46ef74cef3fac572b36fcce8cd3953f6.zip | |
Adding metadata
Diffstat (limited to 'dev-python/mpmath')
| -rw-r--r-- | dev-python/mpmath/files/mpmath-1.4.0_alpha2-before-numpy-2.patch | 22 | ||||
| -rw-r--r-- | dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild | 6 |
2 files changed, 27 insertions, 1 deletions
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 new file mode 100644 index 000000000000..bd8674118038 --- /dev/null +++ b/dev-python/mpmath/files/mpmath-1.4.0_alpha2-before-numpy-2.patch @@ -0,0 +1,22 @@ +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 <dtorrance@piedmont.edu> +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/mpmath-1.4.0_alpha2.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild index 77a931ed7781..641bdd157495 100644 --- a/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild +++ b/dev-python/mpmath/mpmath-1.4.0_alpha2.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}] @@ -40,6 +40,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${PN}-1.4.0_alpha2-before-numpy-2.patch +) + EPYTEST_XDIST=1 distutils_enable_tests pytest |
