Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sympy/
Date: Sun, 02 Aug 2020 19:05:35
Message-Id: 1596394733.40eae544d0639e2a9a208d590bd0b93ce1ab65a9.sam@gentoo
1 commit: 40eae544d0639e2a9a208d590bd0b93ce1ab65a9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 2 18:58:52 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 2 18:58:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40eae544
7
8 dev-python/sympy: bump to 1.6.1
9
10 * Bump to 1.6.1
11 * Add Python 3.8, 3.9
12 * Unrestrict tests (all pass here)
13
14 Closes: https://bugs.gentoo.org/722546
15 Package-Manager: Portage-3.0.1, Repoman-2.3.23
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 dev-python/sympy/Manifest | 1 +
19 dev-python/sympy/sympy-1.6.1.ebuild | 65 +++++++++++++++++++++++++++++++++++++
20 2 files changed, 66 insertions(+)
21
22 diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest
23 index b8791fc94ef..ed15a2352fd 100644
24 --- a/dev-python/sympy/Manifest
25 +++ b/dev-python/sympy/Manifest
26 @@ -1 +1,2 @@
27 DIST sympy-1.5.1.tar.gz 6815997 BLAKE2B bc74d01fdf2ccea6b83a06c11f810e3d105e9d35b397c8b87a1bcc4e316d00c456f576baf57d1b4a6175e056dec58f05fbb05893519775ffa252ac018452d2ff SHA512 3c4220243d2cbcff9eedb2a7986431b5b4d7d0007c78208a60b21830c9a3528d2171086874c42205c1227f779e44c19b9562943e2935d329bc352e7ea85396c7
28 +DIST sympy-1.6.1.tar.gz 6811393 BLAKE2B cd19946fc726b5a74f9ff0af07f07f8f76ea28b20818653d785848e331c126d634d8167e3506d8b87c12ed057df4a59551f0a0214b7d1292e199c6a3353f70be SHA512 95630b6fad1e41f2d58d1f4f4433ef76d4553f3e119bfdd36048c5880ac7f07d572e901eaae0b5c6208f598989a86ab5e03932a851f8048c584154973be6982c
29
30 diff --git a/dev-python/sympy/sympy-1.6.1.ebuild b/dev-python/sympy/sympy-1.6.1.ebuild
31 new file mode 100644
32 index 00000000000..adb5f1ab365
33 --- /dev/null
34 +++ b/dev-python/sympy/sympy-1.6.1.ebuild
35 @@ -0,0 +1,65 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python3_{7,8,9} )
42 +
43 +inherit distutils-r1 eutils virtualx
44 +
45 +DESCRIPTION="Computer Algebra System in pure Python"
46 +HOMEPAGE="https://sympy.org"
47 +SRC_URI="https://github.com/sympy/sympy/archive/${P}.tar.gz"
48 +S="${WORKDIR}/${PN}-${P}"
49 +
50 +LICENSE="BSD"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
53 +IUSE="examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano"
54 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
55 +RESTRICT="!test? ( test )"
56 +
57 +BDEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
58 +RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}]
59 + dev-python/pexpect[${PYTHON_USEDEP}]
60 + imaging? ( dev-python/pillow[${PYTHON_USEDEP}] )
61 + ipython? ( dev-python/ipython[${PYTHON_USEDEP}] )
62 + latex? (
63 + virtual/latex-base
64 + dev-texlive/texlive-fontsextra
65 + png? ( app-text/dvipng )
66 + pdf? ( app-text/ghostscript-gpl )
67 + )
68 + mathml? ( dev-libs/libxml2:2[${PYTHON_USEDEP}] )
69 + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
70 + pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] )
71 + symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
72 + texmacs? ( app-office/texmacs )
73 + theano? ( dev-python/theano[${PYTHON_USEDEP}] )
74 +"
75 +
76 +src_test() {
77 + virtx distutils-r1_src_test
78 +}
79 +
80 +python_test() {
81 + "${EPYTHON}" setup.py test || die "Tests failed with ${EPYTHON}"
82 +}
83 +
84 +python_install_all() {
85 + local DOCS=( AUTHORS README.md )
86 +
87 + if use examples; then
88 + dodoc -r examples
89 + docompress -x /usr/share/doc/${PF}/examples
90 + fi
91 +
92 + distutils-r1_python_install_all
93 +
94 + if use texmacs; then
95 + exeinto /usr/libexec/TeXmacs/bin/
96 + doexe data/TeXmacs/bin/tm_sympy
97 + insinto /usr/share/TeXmacs/plugins/sympy/
98 + doins -r data/TeXmacs/progs
99 + fi
100 +}