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: Sun, 02 Aug 2020 06:46:09
Message-Id: 1596350742.ce03de844b82acd847aa463a018520d6fdfb51a2.mgorny@gentoo
1 commit: ce03de844b82acd847aa463a018520d6fdfb51a2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 02:20:24 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 2 06:45:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce03de84
7
8 dev-python/mpmath: add Python 3.9
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 dev-python/mpmath/mpmath-1.1.0.ebuild | 15 ++++++++-------
15 1 file changed, 8 insertions(+), 7 deletions(-)
16
17 diff --git a/dev-python/mpmath/mpmath-1.1.0.ebuild b/dev-python/mpmath/mpmath-1.1.0.ebuild
18 index 83effa8f603..4d5812aabbd 100644
19 --- a/dev-python/mpmath/mpmath-1.1.0.ebuild
20 +++ b/dev-python/mpmath/mpmath-1.1.0.ebuild
21 @@ -3,9 +3,9 @@
22
23 EAPI=6
24
25 -PYTHON_COMPAT=( python{3_6,3_7,3_8} )
26 +PYTHON_COMPAT=( python{3_6,3_7,3_8,3_9} )
27
28 -inherit distutils-r1 eutils
29 +inherit distutils-r1 eutils virtualx
30
31 DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
32 HOMEPAGE="http://mpmath.org/"
33 @@ -27,16 +27,17 @@ DEPEND="${RDEPEND}
34 python_prepare_all() {
35 local PATCHES=(
36 "${FILESDIR}/${PN}-1.0.0.patch"
37 - )
38 -
39 - # this test requires X
40 - rm ${PN}/tests/test_visualization.py || die
41 + )
42
43 distutils-r1_python_prepare_all
44 }
45
46 +src_test() {
47 + virtx distutils-r1_src_test
48 +}
49 +
50 python_test() {
51 pushd ${PN}/tests >/dev/null
52 - ${EPYTHON} runtests.py -local
53 + ${EPYTHON} runtests.py -local || die "Tests failed with ${EPYTHON}"
54 popd >/dev/null
55 }