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/ipython/
Date: Sun, 30 Aug 2020 03:36:04
Message-Id: 1598758557.cd73fd3272f65f7cf0941107101bb5e5a94a2617.mgorny@gentoo
1 commit: cd73fd3272f65f7cf0941107101bb5e5a94a2617
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 03:30:05 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 03:35:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd73fd32
7
8 dev-python/ipython: Bump to 7.18.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ipython/Manifest | 1 +
13 dev-python/ipython/ipython-7.18.1.ebuild | 135 +++++++++++++++++++++++++++++++
14 2 files changed, 136 insertions(+)
15
16 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
17 index 790af047ba7..2333ec6f393 100644
18 --- a/dev-python/ipython/Manifest
19 +++ b/dev-python/ipython/Manifest
20 @@ -1,3 +1,4 @@
21 DIST ipython-7.16.1.tar.gz 5136303 BLAKE2B 9baf42c9befa50d78eec29d012aeae7f01886f29642a01845afd4a96d0efb7a4df5b14b68aeeb22d1d621e5427b219f717688a1d5074a6e70ad0509c7ca73a46 SHA512 60259fd6270b0355be67b4f620a58b56ae86e69e14debe2df86df6118548f2290ab3927b8dfab20db1ebd675df697d05eb6994b93625a7b8b6ea07112ddf63bd
22 DIST ipython-7.17.0.tar.gz 5139470 BLAKE2B df7dfb00ed81d5c3db7ba1408df6a4e26ac8439d6d58c7f9214ae89e446951eadf3f0d4c2be0654acebc0429a77773972b6dd081ef8c009a9d177924968e7b28 SHA512 0dabc6f4079719d2dd75c5ee92e4523b016b4a790776ccc7130a60bdd4ca1b88bcdcfb9ddd192f9c1a4397c27a27e7f7297540275d06832f870af347e2f14dd9
23 DIST ipython-7.18.0.tar.gz 5138647 BLAKE2B cb6e81468ff7b0d452bd4666a8dc47dda7a7ee7b4685391f222a84db6fddcffa3d41514c1d8a346f07e0c3a89a942893cc7e16ac5888e1c35cc2603698527846 SHA512 2c1cb414d0125aba54dcf98221011d3024d7db0779b2ba79d7c283e2fe918822b59a7771f67e45bf3a60d1a2582862ff3a97475163278961564644373b416029
24 +DIST ipython-7.18.1.tar.gz 5139337 BLAKE2B 936759db4377767537766a2baf0bff2adf1a95d17438899e1e1611d725e796d8ab78fcb8f1ca14d8d41171af64fa67abe9fadf84c6ca3cf17bb1d83fa2ba4268 SHA512 71f495021df56bbea97fb26b9274e54f7662875b7690a9493bdf682635e048d9ec53a947ee9b0d487634a3a8c639f0d93c6639b3a0dd20bdfefbb4c53fb53799
25
26 diff --git a/dev-python/ipython/ipython-7.18.1.ebuild b/dev-python/ipython/ipython-7.18.1.ebuild
27 new file mode 100644
28 index 00000000000..474f4f5f8fb
29 --- /dev/null
30 +++ b/dev-python/ipython/ipython-7.18.1.ebuild
31 @@ -0,0 +1,135 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +PYTHON_REQ_USE='readline,sqlite,threads(+)'
39 +
40 +inherit distutils-r1 eutils virtualx
41 +
42 +DESCRIPTION="Advanced interactive shell for Python"
43 +HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test"
50 +RESTRICT="!test? ( test )"
51 +
52 +CDEPEND="
53 + dev-python/backcall[${PYTHON_USEDEP}]
54 + dev-python/decorator[${PYTHON_USEDEP}]
55 + >=dev-python/jedi-0.10[${PYTHON_USEDEP}]
56 + >=dev-python/pexpect-4.3[${PYTHON_USEDEP}]
57 + dev-python/pickleshare[${PYTHON_USEDEP}]
58 + >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}]
59 + <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}]
60 + dev-python/pygments[${PYTHON_USEDEP}]
61 + dev-python/traitlets[${PYTHON_USEDEP}]
62 + matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
63 +"
64 +
65 +RDEPEND="${CDEPEND}
66 + nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] )"
67 +
68 +BDEPEND="
69 + test? (
70 + ${CDEPEND}
71 + app-text/dvipng[truetype]
72 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
73 + dev-python/nbformat[${PYTHON_USEDEP}]
74 + dev-python/nose[${PYTHON_USEDEP}]
75 + >=dev-python/numpy-1.14[${PYTHON_USEDEP}]
76 + dev-python/requests[${PYTHON_USEDEP}]
77 + dev-python/testpath[${PYTHON_USEDEP}]
78 + )
79 + doc? (
80 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
81 + dev-python/matplotlib[${PYTHON_USEDEP}]
82 + >=dev-python/sphinx-2[${PYTHON_USEDEP}]
83 + )"
84 +
85 +PDEPEND="
86 + notebook? (
87 + dev-python/notebook[${PYTHON_USEDEP}]
88 + dev-python/ipywidgets[${PYTHON_USEDEP}]
89 + dev-python/widgetsnbextension[${PYTHON_USEDEP}]
90 + )
91 + qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
92 + smp? (
93 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
94 + >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}]
95 + )"
96 +
97 +PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch )
98 +
99 +DISTUTILS_IN_SOURCE_BUILD=1
100 +
101 +python_prepare_all() {
102 + # Remove out of date insource files
103 + rm IPython/extensions/cythonmagic.py || die
104 + rm IPython/extensions/rmagic.py || die
105 +
106 + # Prevent un-needed download during build
107 + if use doc; then
108 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
109 + fi
110 +
111 + distutils-r1_python_prepare_all
112 +}
113 +
114 +python_compile_all() {
115 + if use doc; then
116 + emake -C docs html_noapi
117 + HTML_DOCS=( docs/build/html/. )
118 + fi
119 +}
120 +
121 +src_test() {
122 + virtx distutils-r1_src_test
123 +}
124 +
125 +python_test() {
126 + distutils_install_for_testing
127 + pushd "${TEST_DIR}" >/dev/null || die
128 + "${TEST_DIR}"/scripts/iptest || die
129 + popd >/dev/null || die
130 +}
131 +
132 +python_install() {
133 + distutils-r1_python_install
134 +
135 + # Create ipythonX.Y symlinks.
136 + # TODO:
137 + # 1. do we want them for pypy? No. pypy has no numpy
138 + # 2. handle it in the eclass instead (use _python_ln_rel).
139 + # With pypy not an option the dosym becomes unconditional
140 + dosym ../lib/python-exec/${EPYTHON}/ipython \
141 + /usr/bin/ipython${EPYTHON#python}
142 +}
143 +
144 +python_install_all() {
145 + distutils-r1_python_install_all
146 +
147 + if use examples; then
148 + dodoc -r examples
149 + docompress -x /usr/share/doc/${PF}/examples
150 + fi
151 +}
152 +
153 +pkg_postinst() {
154 + optfeature "sympyprinting" dev-python/sympy
155 + optfeature "cythonmagic" dev-python/cython
156 + optfeature "%lprun magic command" dev-python/line_profiler
157 + optfeature "%mprun magic command" dev-python/memory_profiler
158 +
159 + if use nbconvert; then
160 + if ! has_version app-text/pandoc ; then
161 + einfo "Node.js will be used to convert notebooks to other formats"
162 + einfo "like HTML. Support for that is still experimental. If you"
163 + einfo "encounter any problems, please use app-text/pandoc instead."
164 + fi
165 + fi
166 +}