* [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/
@ 2017-10-02 13:58 Andrey Grozin
0 siblings, 0 replies; 6+ messages in thread
From: Andrey Grozin @ 2017-10-02 13:58 UTC (permalink / raw
To: gentoo-commits
commit: 5e9b8034cae7d50a58361bd4f124e04ebb747c5a
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 2 13:56:43 2017 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Mon Oct 2 13:57:44 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e9b8034
dev-python/mpmath: bump to 1.0.0
Package-Manager: Portage-2.3.6, Repoman-2.3.3
dev-python/mpmath/Manifest | 1 +
dev-python/mpmath/files/mpmath-1.0.0.patch | 9 +++++++
dev-python/mpmath/mpmath-1.0.0.ebuild | 42 ++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+)
diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest
index c09501166a7..710b5dcace9 100644
--- a/dev-python/mpmath/Manifest
+++ b/dev-python/mpmath/Manifest
@@ -1,2 +1,3 @@
+DIST mpmath-1.0.0.tar.gz 511349 SHA256 d32ba7afffbae688229a15f54fbc37c11f4989e4fac628c99b3c5b6889aee03d SHA512 b225f237008e1cfee52b2f0dca0dce1445b932b6eaef92879d7feca30d728e3f88810bfa80882ad8776ba846a636807e59bebe0b9f690cd878c089e9418bd8b7 WHIRLPOOL 5dc18ab6f81a529c06bcc968dd3e9da0a5123740b2a5b2829e98b303b5e3d8208956122a7fd7698ad275d4246aafcbd1756bc0922801d32a535b809cf749b3ac
DIST mpmath-all-0.18.tar.gz 2122954 SHA256 47cc9587ea10202cdfb1afce4fb7410821e91ae6ecb1b54d62be1adfce80ee40 SHA512 a22e1c82f33a30584c975d196601e7bddaf33d4a41b1f288216a9df038ba5a45fd1002c5aa5f15084d05bee3abad944168ad131ac7e4feb218aac22789d8a63f WHIRLPOOL 7544b09310fbb262f2a4f487fa29af429196142e3fcab5822c1383420c7d8948a70b0f505adc0ce4fd7c0e6b6936b8dc6832a5e3d92e7c7cb71d05f6343dd79a
DIST mpmath-all-0.19.tar.gz 2123129 SHA256 21a824db176799f42843e4510da4bc6db36ef92b5a43fff70fad7e29bffb9c86 SHA512 5a6ed0b5fad84c1e8399467ea7a1295f9b77c8e673b821c11e3298e88df6c48d9967eed84e2979bf12868e2f9b42bffba01a0c1836a6d82ac42d5f423fed6580 WHIRLPOOL 360fedc4d6942a138b33c63867f8a5e4ce4c101a8f7221c61503933e75073807676cbb240c9bddea765159cb134efd608256c9b921b7d282763b57d2897eefdb
diff --git a/dev-python/mpmath/files/mpmath-1.0.0.patch b/dev-python/mpmath/files/mpmath-1.0.0.patch
new file mode 100644
index 00000000000..3a88f38c992
--- /dev/null
+++ b/dev-python/mpmath/files/mpmath-1.0.0.patch
@@ -0,0 +1,9 @@
+diff -r -U1 mpmath-1.0.0.orig/setup.py mpmath-1.0.0/setup.py
+--- mpmath-1.0.0.orig/setup.py 2017-09-27 21:42:12.000000000 +0700
++++ mpmath-1.0.0/setup.py 2017-10-02 20:36:02.919554100 +0700
+@@ -15,4 +15,3 @@
+ 'mpmath.functions',
+- 'mpmath.matrices',
+- 'mpmath.tests'],
++ 'mpmath.matrices'],
+ classifiers=['Topic :: Scientific/Engineering :: Mathematics']
diff --git a/dev-python/mpmath/mpmath-1.0.0.ebuild b/dev-python/mpmath/mpmath-1.0.0.ebuild
new file mode 100644
index 00000000000..06c4d284851
--- /dev/null
+++ b/dev-python/mpmath/mpmath-1.0.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
+HOMEPAGE="http://mpmath.org/"
+SRC_URI="http://mpmath.org/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE="gmp matplotlib test"
+
+RDEPEND="
+ gmp? ( dev-python/gmpy )
+ matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}/${P}.patch"
+ )
+
+ # this fails with the current version of dev-python/py
+ rm ${PN}/conftest.py || die
+
+ # this test requires X
+ rm ${PN}/tests/test_visualization.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ py.test -v || die
+}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/
@ 2020-01-15 16:17 Andrey Grozin
0 siblings, 0 replies; 6+ messages in thread
From: Andrey Grozin @ 2020-01-15 16:17 UTC (permalink / raw
To: gentoo-commits
commit: d74c525c4f89d0d8becf3299d2501ca55cf60b3b
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 15 16:17:18 2020 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 16:17:18 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d74c525c
dev-python/mpmath: remove a duplicated patch file
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
dev-python/mpmath/files/mpmath-1.1.0.patch | 9 ---------
dev-python/mpmath/mpmath-1.1.0.ebuild | 2 +-
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/dev-python/mpmath/files/mpmath-1.1.0.patch b/dev-python/mpmath/files/mpmath-1.1.0.patch
deleted file mode 100644
index 3a88f38c992..00000000000
--- a/dev-python/mpmath/files/mpmath-1.1.0.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -r -U1 mpmath-1.0.0.orig/setup.py mpmath-1.0.0/setup.py
---- mpmath-1.0.0.orig/setup.py 2017-09-27 21:42:12.000000000 +0700
-+++ mpmath-1.0.0/setup.py 2017-10-02 20:36:02.919554100 +0700
-@@ -15,4 +15,3 @@
- 'mpmath.functions',
-- 'mpmath.matrices',
-- 'mpmath.tests'],
-+ 'mpmath.matrices'],
- classifiers=['Topic :: Scientific/Engineering :: Mathematics']
diff --git a/dev-python/mpmath/mpmath-1.1.0.ebuild b/dev-python/mpmath/mpmath-1.1.0.ebuild
index 9dd5e4c9ae4..de811def919 100644
--- a/dev-python/mpmath/mpmath-1.1.0.ebuild
+++ b/dev-python/mpmath/mpmath-1.1.0.ebuild
@@ -26,7 +26,7 @@ DEPEND="${RDEPEND}
python_prepare_all() {
local PATCHES=(
- "${FILESDIR}/${P}.patch"
+ "${FILESDIR}/${PN}-1.0.0.patch"
)
# this test requires X
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/
@ 2021-03-15 8:57 Michał Górny
0 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2021-03-15 8:57 UTC (permalink / raw
To: gentoo-commits
commit: e669465581f11df5b1e7bdb8f4e52456edbbe406
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 15 08:53:36 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 15 08:53:36 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6694655
dev-python/mpmath: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/mpmath/Manifest | 1 -
dev-python/mpmath/files/mpmath-1.0.0.patch | 9 -------
dev-python/mpmath/mpmath-1.1.0.ebuild | 43 ------------------------------
3 files changed, 53 deletions(-)
diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest
index 5a871d21a76..b9377f33da4 100644
--- a/dev-python/mpmath/Manifest
+++ b/dev-python/mpmath/Manifest
@@ -1,2 +1 @@
-DIST mpmath-1.1.0.tar.gz 2136921 BLAKE2B 8c3a5f39b48015aab1147aaf77ee7523dbffd7f34911ff2158d7b8bf1612e64f91d157494c5199b22090e986aba02044d610171bb92a2b230cdfbe025652e340 SHA512 628b6c61015825516d983bfcc54fc3a2793f3d9d2b93ba9c5a487a340ddf13eb4e83f17fa35692b22dd8a200a8da3a65ed88091d75abb4c48c9c4e4f2c686bcc
DIST mpmath-1.2.1.tar.gz 2135690 BLAKE2B a21e0ef04a025f23e32dad5839db411708266c6cf3408e97ec5c995f197b14f446c1d328bd2e9f50e1c48a2e08239ef7908fcc3aab8659118fc1e0e78106a47e SHA512 2dd908bca26162adcdce0493146d009e04d3d96db965ff2207c332504020fa6f5a5e2af97d38e8fb3e7442a26c1e93a756a8d93b378da720ab7c07753f700d10
diff --git a/dev-python/mpmath/files/mpmath-1.0.0.patch b/dev-python/mpmath/files/mpmath-1.0.0.patch
deleted file mode 100644
index 3a88f38c992..00000000000
--- a/dev-python/mpmath/files/mpmath-1.0.0.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -r -U1 mpmath-1.0.0.orig/setup.py mpmath-1.0.0/setup.py
---- mpmath-1.0.0.orig/setup.py 2017-09-27 21:42:12.000000000 +0700
-+++ mpmath-1.0.0/setup.py 2017-10-02 20:36:02.919554100 +0700
-@@ -15,4 +15,3 @@
- 'mpmath.functions',
-- 'mpmath.matrices',
-- 'mpmath.tests'],
-+ 'mpmath.matrices'],
- classifiers=['Topic :: Scientific/Engineering :: Mathematics']
diff --git a/dev-python/mpmath/mpmath-1.1.0.ebuild b/dev-python/mpmath/mpmath-1.1.0.ebuild
deleted file mode 100644
index 19af77bd55d..00000000000
--- a/dev-python/mpmath/mpmath-1.1.0.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DISTUTILS_USE_SETUPTOOLS=no
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit distutils-r1 eutils virtualx
-
-DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
-HOMEPAGE="http://mpmath.org/"
-SRC_URI="https://github.com/fredrik-johansson/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="gmp matplotlib test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- gmp? ( dev-python/gmpy )
- matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
-DEPEND="${RDEPEND}
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
-
-python_prepare_all() {
- local PATCHES=(
- "${FILESDIR}/${PN}-1.0.0.patch"
- )
-
- distutils-r1_python_prepare_all
-}
-
-src_test() {
- virtx distutils-r1_src_test
-}
-
-python_test() {
- pushd ${PN}/tests >/dev/null
- ${EPYTHON} runtests.py -local || die "Tests failed with ${EPYTHON}"
- popd >/dev/null
-}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/
@ 2024-07-02 6:58 Michał Górny
0 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2024-07-02 6:58 UTC (permalink / raw
To: gentoo-commits
commit: 4010bd0e93aafb73979a5c5fc43510ebb7abb2f4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 2 06:18:30 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 2 06:58:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4010bd0e
dev-python/mpmath: Bump to 1.4.0_alpha1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/mpmath/Manifest | 1 +
.../mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch | 32 +++++++++++
dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild | 63 ++++++++++++++++++++++
3 files changed, 96 insertions(+)
diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest
index c856f8ba229c..62f82da139aa 100644
--- a/dev-python/mpmath/Manifest
+++ b/dev-python/mpmath/Manifest
@@ -1 +1,2 @@
DIST mpmath-1.3.0.tar.gz 508106 BLAKE2B 9d4eebbbb6788dd3ee45c8c30068ef3512043dd09ab626cbaf69b0f6bdf057a6e8c53c34e3dda7627db923f0d536a0bebf83916d8942f4dde9546bb8e0046f33 SHA512 a68028150095d743eae9669a0f70cbe6b7bcb4d27dfad6b1a96575f0885ec7306459a2a464117bab18779883ee8b4293502b4bd0ebd8672767e1d08d38f8b202
+DIST mpmath-1.4.0a1.tar.gz 2063946 BLAKE2B 0c6a86b1c8dc9addc3eb82586d4c4182ae6a9318cbe45d4fc699b9fbf9539774ae30f11c2d50137a3aa16ed4b0c328990483c2ceea812f86751cfa3ce419de5c SHA512 260afb20faaa949b89054ced3b039e346086d47c6ea018c8d226a0c42d9aa8f792611fe709c894a0df6930a0703dc8cfcf814432eba7ac977a821effd8879903
diff --git a/dev-python/mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch b/dev-python/mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch
new file mode 100644
index 000000000000..13b6ffc9a94f
--- /dev/null
+++ b/dev-python/mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch
@@ -0,0 +1,32 @@
+From b80b0e08b75f41730a1116aebe34361e5d63d58c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Tue, 2 Jul 2024 08:11:58 +0200
+Subject: [PATCH] Fix the comparison in test_compatibility for NumPy 2.0.0
+
+The comparison in `mpmath/tests/test_convert.py::test_compatibility`
+failed for `np.float16` in NumPy 2.0.0 since `2.0**-53` cannot be
+represented in half-precision floating point type. Convert the LHS
+to `np.float64` to ensure that the comparison is done in sufficiently
+precise type.
+
+This fixes the actual test failure from #815 but the deprecation warning
+remains.
+---
+ mpmath/tests/test_convert.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/mpmath/tests/test_convert.py b/mpmath/tests/test_convert.py
+index 5578b245..c6ef2187 100644
+--- a/mpmath/tests/test_convert.py
++++ b/mpmath/tests/test_convert.py
+@@ -254,7 +254,9 @@ def test_compatibility():
+ # Handle the weird types
+ try: diff = np.abs(type(np.sqrt(x))(sqrt(x)) - np.sqrt(x))
+ except: continue
+- assert diff < 2.0**-53
++ # numpy-2 does the comparison on LHS type, so we need to convert
++ # it to a type that can actually represent 2.0**-53
++ assert np.float64(diff) < 2.0**-53
+ assert mpf(np.float64('inf')) == inf
+ assert isnan(mp.npconvert(np.float64('nan')))
+ if hasattr(np, "float128"):
diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild
new file mode 100644
index 000000000000..ef235883f25d
--- /dev/null
+++ b/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 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 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/gmpy[${PYTHON_USEDEP}]
+ ' 'python3*')
+ $(python_gen_cond_dep '
+ dev-python/ipython[${PYTHON_USEDEP}]
+ ' 3.{10..12})
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/mpmath/mpmath/pull/816
+ "${FILESDIR}/${P}-numpy-2.patch"
+)
+
+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
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -p rerunfailures --reruns=5
+}
+
+pkg_postinst() {
+ optfeature "gmp support" dev-python/gmpy
+ optfeature "matplotlib support" dev-python/matplotlib
+}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/
@ 2024-08-10 8:43 Michał Górny
0 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2024-08-10 8:43 UTC (permalink / raw
To: gentoo-commits
commit: b79a49eaefe6feaad3a4a7cf48b4650488df1b36
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 10 08:42:54 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 10 08:42:54 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b79a49ea
dev-python/mpmath: Deselect test failing on ppc64, sparc
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch | 32 ----------------------
dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild | 9 +++---
2 files changed, 4 insertions(+), 37 deletions(-)
diff --git a/dev-python/mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch b/dev-python/mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch
deleted file mode 100644
index 13b6ffc9a94f..000000000000
--- a/dev-python/mpmath/files/mpmath-1.4.0_alpha1-numpy-2.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From b80b0e08b75f41730a1116aebe34361e5d63d58c Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Tue, 2 Jul 2024 08:11:58 +0200
-Subject: [PATCH] Fix the comparison in test_compatibility for NumPy 2.0.0
-
-The comparison in `mpmath/tests/test_convert.py::test_compatibility`
-failed for `np.float16` in NumPy 2.0.0 since `2.0**-53` cannot be
-represented in half-precision floating point type. Convert the LHS
-to `np.float64` to ensure that the comparison is done in sufficiently
-precise type.
-
-This fixes the actual test failure from #815 but the deprecation warning
-remains.
----
- mpmath/tests/test_convert.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/mpmath/tests/test_convert.py b/mpmath/tests/test_convert.py
-index 5578b245..c6ef2187 100644
---- a/mpmath/tests/test_convert.py
-+++ b/mpmath/tests/test_convert.py
-@@ -254,7 +254,9 @@ def test_compatibility():
- # Handle the weird types
- try: diff = np.abs(type(np.sqrt(x))(sqrt(x)) - np.sqrt(x))
- except: continue
-- assert diff < 2.0**-53
-+ # numpy-2 does the comparison on LHS type, so we need to convert
-+ # it to a type that can actually represent 2.0**-53
-+ assert np.float64(diff) < 2.0**-53
- assert mpf(np.float64('inf')) == inf
- assert isnan(mp.npconvert(np.float64('nan')))
- if hasattr(np, "float128"):
diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild
index ef235883f25d..d1fb0d556ec1 100644
--- a/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild
+++ b/dev-python/mpmath/mpmath-1.4.0_alpha1.ebuild
@@ -38,11 +38,6 @@ BDEPEND="
EPYTEST_XDIST=1
distutils_enable_tests pytest
-PATCHES=(
- # https://github.com/mpmath/mpmath/pull/816
- "${FILESDIR}/${P}-numpy-2.patch"
-)
-
python_test() {
local EPYTEST_DESELECT=(
# TODO
@@ -51,6 +46,10 @@ python_test() {
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
+ # precision problems on some arches, also np2
+ # https://github.com/mpmath/mpmath/pull/816
+ # https://github.com/mpmath/mpmath/issues/836
+ mpmath/tests/test_convert.py::test_compatibility
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/
@ 2024-10-31 0:23 Sam James
0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2024-10-31 0:23 UTC (permalink / raw
To: gentoo-commits
commit: 17d6502b0285cf9e6695b19a6198c38de62a7ca7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 31 00:22:26 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 00:22:26 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17d6502b
dev-python/mpmath: fix tests w/ <numpy-2
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/mpmath-1.4.0_alpha2-before-numpy-2.patch | 22 ++++++++++++++++++++++
dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild | 4 ++++
2 files changed, 26 insertions(+)
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 3b8f25219022..e40d8544179e 100644
--- a/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild
+++ b/dev-python/mpmath/mpmath-1.4.0_alpha2.ebuild
@@ -40,6 +40,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.4.0_alpha2-before-numpy-2.patch
+)
+
EPYTEST_XDIST=1
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-10-31 0:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-15 16:17 [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/, dev-python/mpmath/files/ Andrey Grozin
-- strict thread matches above, loose matches on Subject: below --
2024-10-31 0:23 Sam James
2024-08-10 8:43 Michał Górny
2024-07-02 6:58 Michał Górny
2021-03-15 8:57 Michał Górny
2017-10-02 13:58 Andrey Grozin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox