Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mpmath/
Date: Tue, 09 Feb 2021 18:48:53
Message-Id: 1612896525.820a288c5d4bd2326f1145f5d2b6854428c8736c.mgorny@gentoo
1 commit: 820a288c5d4bd2326f1145f5d2b6854428c8736c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 9 18:31:19 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 18:48:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820a288c
7
8 dev-python/mpmath: Bump to 1.2.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/mpmath/Manifest | 1 +
13 dev-python/mpmath/mpmath-1.2.1.ebuild | 40 +++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest
17 index 021ebeb7abf..5a871d21a76 100644
18 --- a/dev-python/mpmath/Manifest
19 +++ b/dev-python/mpmath/Manifest
20 @@ -1 +1,2 @@
21 DIST mpmath-1.1.0.tar.gz 2136921 BLAKE2B 8c3a5f39b48015aab1147aaf77ee7523dbffd7f34911ff2158d7b8bf1612e64f91d157494c5199b22090e986aba02044d610171bb92a2b230cdfbe025652e340 SHA512 628b6c61015825516d983bfcc54fc3a2793f3d9d2b93ba9c5a487a340ddf13eb4e83f17fa35692b22dd8a200a8da3a65ed88091d75abb4c48c9c4e4f2c686bcc
22 +DIST mpmath-1.2.1.tar.gz 2135690 BLAKE2B a21e0ef04a025f23e32dad5839db411708266c6cf3408e97ec5c995f197b14f446c1d328bd2e9f50e1c48a2e08239ef7908fcc3aab8659118fc1e0e78106a47e SHA512 2dd908bca26162adcdce0493146d009e04d3d96db965ff2207c332504020fa6f5a5e2af97d38e8fb3e7442a26c1e93a756a8d93b378da720ab7c07753f700d10
23
24 diff --git a/dev-python/mpmath/mpmath-1.2.1.ebuild b/dev-python/mpmath/mpmath-1.2.1.ebuild
25 new file mode 100644
26 index 00000000000..ee062f0cf51
27 --- /dev/null
28 +++ b/dev-python/mpmath/mpmath-1.2.1.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit distutils-r1 virtualx
38 +
39 +DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
40 +HOMEPAGE="https://mpmath.org/"
41 +SRC_URI="https://github.com/fredrik-johansson/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
46 +IUSE="gmp matplotlib test"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="
50 + gmp? ( dev-python/gmpy[${PYTHON_USEDEP}] )
51 + matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
52 +BDEPEND="
53 + dev-python/setuptools_scm[${PYTHON_USEDEP}]"
54 +
55 +distutils_enable_tests pytest
56 +
57 +src_configure() {
58 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
59 +}
60 +
61 +src_test() {
62 + virtx distutils-r1_src_test
63 +}
64 +
65 +python_test() {
66 + pushd ${PN}/tests >/dev/null
67 + ${EPYTHON} runtests.py -local || die "Tests failed with ${EPYTHON}"
68 + popd >/dev/null
69 +}