From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 58AAC1580E0 for ; Thu, 30 Jan 2025 04:10:55 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 445B634305E for ; Thu, 30 Jan 2025 04:10:55 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id F34D1110475; Thu, 30 Jan 2025 04:10:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id EAE32110474 for ; Thu, 30 Jan 2025 04:10:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A04D334305E for ; Thu, 30 Jan 2025 04:10:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A99E2558 for ; Thu, 30 Jan 2025 04:10:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1738210234.9e953a5a2ed85e0a65c01a72f6a1d7e6a59f67f3.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mpmath/Manifest dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild X-VCS-Directories: dev-python/mpmath/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9e953a5a2ed85e0a65c01a72f6a1d7e6a59f67f3 X-VCS-Branch: master Date: Thu, 30 Jan 2025 04:10:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c9b34df5-7876-4475-a328-fc5bfe4ec18f X-Archives-Hash: a133ef1277fc2581427d64087d134d3c commit: 9e953a5a2ed85e0a65c01a72f6a1d7e6a59f67f3 Author: Michał Górny gentoo org> AuthorDate: Thu Jan 30 03:47:44 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jan 30 04:10:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e953a5a dev-python/mpmath: Bump to 1.4.0_alpha4 Signed-off-by: Michał Górny gentoo.org> dev-python/mpmath/Manifest | 1 + dev-python/mpmath/mpmath-1.4.0_alpha4.ebuild | 70 ++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest index dec165612924..11be7898c592 100644 --- a/dev-python/mpmath/Manifest +++ b/dev-python/mpmath/Manifest @@ -1,2 +1,3 @@ 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 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..e1954b4926fc --- /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=( 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}] + ) + ) + ) +" + +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 +}