1 |
commit: 21a016521d76712d660ed9dc36279b76e3cf616f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 7 20:02:34 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 7 20:04:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21a01652 |
7 |
|
8 |
dev-python/ipython: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/ipython/Manifest | 3 - |
13 |
dev-python/ipython/ipython-8.0.1.ebuild | 157 -------------------------------- |
14 |
dev-python/ipython/ipython-8.1.0.ebuild | 157 -------------------------------- |
15 |
dev-python/ipython/ipython-8.1.1.ebuild | 157 -------------------------------- |
16 |
4 files changed, 474 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest |
19 |
index 939e41328ace..d3a1cf86b2ac 100644 |
20 |
--- a/dev-python/ipython/Manifest |
21 |
+++ b/dev-python/ipython/Manifest |
22 |
@@ -1,6 +1,3 @@ |
23 |
DIST ipython-7.31.1.tar.gz 5156314 BLAKE2B e6528c9d3920078918180c4c2fae5d0ac20cd377e012691fee4c0cfa6c3056c739efc1ab9cc6231f55034d70619e501ff30e31b929bd5f1f623c89075abfb02d SHA512 7bd1378f7b2bd2146d8c2cf15c958b08f286b0163ca3e267bcd92c3f988d2d20cf48fd6e3c185eed6d30baceb195aeb0170280900e587c898d0812c4ffdee3a0 |
24 |
-DIST ipython-8.0.1.tar.gz 5306811 BLAKE2B 9088faf779e2783ce97c6a45f0baa3c7163e12f63546aa65eb961de2b2fbacaac8ba1cf0c3c705bc326b4c999fe3ce672f31e3abaa7168d912504880ad8d3c2f SHA512 c4f3cf6e4aa7dab1e4e8cec2d669e5fe4ea3eeac9063132a38544596fafbaaed0f287bbdce12e8bc3d7613766c51b0e1ff8c7c86fdbd53e387caade6bbcdb828 |
25 |
-DIST ipython-8.1.0.tar.gz 5312523 BLAKE2B 9a44555dcb91655c5d483a7ba5d99074b9c2c4af3ec272d0adabc345352359b061ea4fd92198c3910945139edb80c8837afe1ae3c34b0bddb517d226584f28a1 SHA512 847ddab96ecfe06e46921b081fe3a51910c3fde1fa440c9955e374614b1ae6a7d20fc2e78d286178366893d342126a01a160a4efb0aa7be0b2234229638e95bc |
26 |
-DIST ipython-8.1.1.tar.gz 5313998 BLAKE2B 0972b2f4a8072c5775f5cc4637aeb8e684b342d097d77e2d9d0a3e659d7a10f94f741bafc7f33595cbb205d8dbbc72e88b820e5407cb9ab506189d44e8c19cf0 SHA512 ce93d4d0839f32256461ff53c510f694db6ec0358a487a6af016d41f811e1b78b3244f1c67097e14afd32635ae392b4bff5d6eb2fc823c299c699335dc43bdc0 |
27 |
DIST ipython-8.2.0.tar.gz 5400583 BLAKE2B 6af50e671823005b035a8463e65463b06dacb3bf4d43c4d3bd9720d1747ebda8abe3d73a49f59ae0e6e2651035db20bcfa1e82dbb0a73e40b4e2507e63118921 SHA512 0bf93527bcafe5dfbfe034b901dff2f002e0fc732159073f0371263e23784f45eb6c9e3f7f2cb9567e93ea4ee313773f836157afe9d23256e71bc4b2fcac15af |
28 |
DIST ipython-8.3.0.tar.gz 5314400 BLAKE2B 8f06dcaf32cea70ba9f19fb218d4ea6ca3e42651da065521133b1c7163f80324244f59b3c4d85039f1aa5ed363acad0dae11615ae4927d6c9a24197cc9640349 SHA512 95a3d50a5cffe9d4ed3f072c7fa8920c96beccdb15a7437836daa5f38f1ba228b4ebc4c3313d4c5016b77ed7d6f3787af727487ea379c9dc3b3de90eafa4d1c3 |
29 |
|
30 |
diff --git a/dev-python/ipython/ipython-8.0.1.ebuild b/dev-python/ipython/ipython-8.0.1.ebuild |
31 |
deleted file mode 100644 |
32 |
index 95e0c3ecffa4..000000000000 |
33 |
--- a/dev-python/ipython/ipython-8.0.1.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,157 +0,0 @@ |
36 |
-# Copyright 1999-2022 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=8 |
40 |
- |
41 |
-DISTUTILS_USE_PEP517=setuptools |
42 |
-PYTHON_COMPAT=( python3_{8..10} ) |
43 |
-PYTHON_REQ_USE='readline,sqlite,threads(+)' |
44 |
- |
45 |
-inherit distutils-r1 optfeature virtualx |
46 |
- |
47 |
-DESCRIPTION="Advanced interactive shell for Python" |
48 |
-HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/" |
49 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
50 |
- |
51 |
-LICENSE="BSD" |
52 |
-SLOT="0" |
53 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~riscv ~sparc" |
54 |
-IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" |
55 |
-RESTRICT="!test? ( test )" |
56 |
- |
57 |
-RDEPEND=" |
58 |
- dev-python/backcall[${PYTHON_USEDEP}] |
59 |
- dev-python/black[${PYTHON_USEDEP}] |
60 |
- dev-python/decorator[${PYTHON_USEDEP}] |
61 |
- >=dev-python/jedi-0.16[${PYTHON_USEDEP}] |
62 |
- dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
63 |
- >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] |
64 |
- dev-python/pickleshare[${PYTHON_USEDEP}] |
65 |
- >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] |
66 |
- <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] |
67 |
- dev-python/pygments[${PYTHON_USEDEP}] |
68 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
69 |
- dev-python/stack_data[${PYTHON_USEDEP}] |
70 |
- >=dev-python/traitlets-5.0[${PYTHON_USEDEP}] |
71 |
- matplotlib? ( |
72 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
73 |
- ) |
74 |
-" |
75 |
- |
76 |
-BDEPEND=" |
77 |
- test? ( |
78 |
- app-text/dvipng[truetype] |
79 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
80 |
- dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
81 |
- dev-python/nbformat[${PYTHON_USEDEP}] |
82 |
- >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
83 |
- dev-python/requests[${PYTHON_USEDEP}] |
84 |
- dev-python/testpath[${PYTHON_USEDEP}] |
85 |
- ) |
86 |
- doc? ( |
87 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
88 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
89 |
- >=dev-python/sphinx-2[${PYTHON_USEDEP}] |
90 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
91 |
- )" |
92 |
- |
93 |
-distutils_enable_tests pytest |
94 |
- |
95 |
-RDEPEND+=" |
96 |
- nbconvert? ( |
97 |
- dev-python/nbconvert[${PYTHON_USEDEP}] |
98 |
- )" |
99 |
-PDEPEND=" |
100 |
- notebook? ( |
101 |
- dev-python/notebook[${PYTHON_USEDEP}] |
102 |
- dev-python/ipywidgets[${PYTHON_USEDEP}] |
103 |
- dev-python/widgetsnbextension[${PYTHON_USEDEP}] |
104 |
- ) |
105 |
- qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) |
106 |
- smp? ( |
107 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
108 |
- >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] |
109 |
- )" |
110 |
- |
111 |
-PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
112 |
- |
113 |
-python_prepare_all() { |
114 |
- # Remove out of date insource files |
115 |
- #rm IPython/extensions/cythonmagic.py || die |
116 |
- #rm IPython/extensions/rmagic.py || die |
117 |
- |
118 |
- # Prevent un-needed download during build |
119 |
- if use doc; then |
120 |
- sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
121 |
- fi |
122 |
- |
123 |
- # Rename the test directory to reduce sys.path pollution |
124 |
- # https://github.com/ipython/ipython/issues/12892 |
125 |
- mv IPython/extensions/{,ipython_}tests || die |
126 |
- |
127 |
- distutils-r1_python_prepare_all |
128 |
-} |
129 |
- |
130 |
-python_compile_all() { |
131 |
- if use doc; then |
132 |
- emake -C docs html_noapi |
133 |
- HTML_DOCS=( docs/build/html/. ) |
134 |
- fi |
135 |
-} |
136 |
- |
137 |
-src_test() { |
138 |
- virtx distutils-r1_src_test |
139 |
-} |
140 |
- |
141 |
-python_test() { |
142 |
- local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 |
143 |
- local EPYTEST_DESELECT=( |
144 |
- # Internet |
145 |
- IPython/core/display.py::IPython.core.display.Image.__init__ |
146 |
- # TODO: looks to be a regression due to a newer dep |
147 |
- IPython/core/tests/test_oinspect.py::test_class_signature |
148 |
- IPython/core/tests/test_oinspect.py::test_render_signature_long |
149 |
- ) |
150 |
- [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( |
151 |
- # TODO |
152 |
- IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups |
153 |
- IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions |
154 |
- ) |
155 |
- epytest || die "Tests failed with ${EPYTHON}" |
156 |
-} |
157 |
- |
158 |
-python_install() { |
159 |
- distutils-r1_python_install |
160 |
- |
161 |
- # Create ipythonX.Y symlinks. |
162 |
- # TODO: |
163 |
- # 1. do we want them for pypy? No. pypy has no numpy |
164 |
- # 2. handle it in the eclass instead (use _python_ln_rel). |
165 |
- # With pypy not an option the dosym becomes unconditional |
166 |
- dosym ../lib/python-exec/${EPYTHON}/ipython \ |
167 |
- /usr/bin/ipython${EPYTHON#python} |
168 |
-} |
169 |
- |
170 |
-python_install_all() { |
171 |
- distutils-r1_python_install_all |
172 |
- |
173 |
- if use examples; then |
174 |
- dodoc -r examples |
175 |
- docompress -x /usr/share/doc/${PF}/examples |
176 |
- fi |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- optfeature "sympyprinting" dev-python/sympy |
181 |
- optfeature "cythonmagic" dev-python/cython |
182 |
- optfeature "%lprun magic command" dev-python/line_profiler |
183 |
- optfeature "%mprun magic command" dev-python/memory_profiler |
184 |
- |
185 |
- if use nbconvert; then |
186 |
- if ! has_version app-text/pandoc ; then |
187 |
- einfo "Node.js will be used to convert notebooks to other formats" |
188 |
- einfo "like HTML. Support for that is still experimental. If you" |
189 |
- einfo "encounter any problems, please use app-text/pandoc instead." |
190 |
- fi |
191 |
- fi |
192 |
-} |
193 |
|
194 |
diff --git a/dev-python/ipython/ipython-8.1.0.ebuild b/dev-python/ipython/ipython-8.1.0.ebuild |
195 |
deleted file mode 100644 |
196 |
index fef74efca97e..000000000000 |
197 |
--- a/dev-python/ipython/ipython-8.1.0.ebuild |
198 |
+++ /dev/null |
199 |
@@ -1,157 +0,0 @@ |
200 |
-# Copyright 1999-2022 Gentoo Authors |
201 |
-# Distributed under the terms of the GNU General Public License v2 |
202 |
- |
203 |
-EAPI=8 |
204 |
- |
205 |
-DISTUTILS_USE_PEP517=setuptools |
206 |
-PYTHON_COMPAT=( python3_{8..10} ) |
207 |
-PYTHON_REQ_USE='readline,sqlite,threads(+)' |
208 |
- |
209 |
-inherit distutils-r1 optfeature virtualx |
210 |
- |
211 |
-DESCRIPTION="Advanced interactive shell for Python" |
212 |
-HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/" |
213 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
214 |
- |
215 |
-LICENSE="BSD" |
216 |
-SLOT="0" |
217 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~riscv ~sparc" |
218 |
-IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" |
219 |
-RESTRICT="!test? ( test )" |
220 |
- |
221 |
-RDEPEND=" |
222 |
- dev-python/backcall[${PYTHON_USEDEP}] |
223 |
- dev-python/decorator[${PYTHON_USEDEP}] |
224 |
- >=dev-python/jedi-0.16[${PYTHON_USEDEP}] |
225 |
- dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
226 |
- >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] |
227 |
- dev-python/pickleshare[${PYTHON_USEDEP}] |
228 |
- >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] |
229 |
- <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] |
230 |
- >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] |
231 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
232 |
- dev-python/stack_data[${PYTHON_USEDEP}] |
233 |
- >=dev-python/traitlets-5.0[${PYTHON_USEDEP}] |
234 |
- matplotlib? ( |
235 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
236 |
- ) |
237 |
-" |
238 |
- |
239 |
-BDEPEND=" |
240 |
- test? ( |
241 |
- app-text/dvipng[truetype] |
242 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
243 |
- dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
244 |
- dev-python/nbformat[${PYTHON_USEDEP}] |
245 |
- >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
246 |
- dev-python/requests[${PYTHON_USEDEP}] |
247 |
- dev-python/testpath[${PYTHON_USEDEP}] |
248 |
- ) |
249 |
- doc? ( |
250 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
251 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
252 |
- >=dev-python/sphinx-2[${PYTHON_USEDEP}] |
253 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
254 |
- )" |
255 |
- |
256 |
-distutils_enable_tests pytest |
257 |
- |
258 |
-RDEPEND+=" |
259 |
- nbconvert? ( |
260 |
- dev-python/nbconvert[${PYTHON_USEDEP}] |
261 |
- )" |
262 |
-PDEPEND=" |
263 |
- notebook? ( |
264 |
- dev-python/notebook[${PYTHON_USEDEP}] |
265 |
- dev-python/ipywidgets[${PYTHON_USEDEP}] |
266 |
- dev-python/widgetsnbextension[${PYTHON_USEDEP}] |
267 |
- ) |
268 |
- qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) |
269 |
- smp? ( |
270 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
271 |
- >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] |
272 |
- )" |
273 |
- |
274 |
-PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
275 |
- |
276 |
-python_prepare_all() { |
277 |
- # Remove out of date insource files |
278 |
- #rm IPython/extensions/cythonmagic.py || die |
279 |
- #rm IPython/extensions/rmagic.py || die |
280 |
- |
281 |
- # Prevent un-needed download during build |
282 |
- if use doc; then |
283 |
- sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
284 |
- fi |
285 |
- |
286 |
- # Rename the test directory to reduce sys.path pollution |
287 |
- # https://github.com/ipython/ipython/issues/12892 |
288 |
- mv IPython/extensions/{,ipython_}tests || die |
289 |
- |
290 |
- distutils-r1_python_prepare_all |
291 |
-} |
292 |
- |
293 |
-python_compile_all() { |
294 |
- if use doc; then |
295 |
- emake -C docs html_noapi |
296 |
- HTML_DOCS=( docs/build/html/. ) |
297 |
- fi |
298 |
-} |
299 |
- |
300 |
-src_test() { |
301 |
- virtx distutils-r1_src_test |
302 |
-} |
303 |
- |
304 |
-python_test() { |
305 |
- local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 |
306 |
- local EPYTEST_DESELECT=( |
307 |
- # Internet |
308 |
- IPython/core/display.py::IPython.core.display.Image.__init__ |
309 |
- # TODO: looks to be a regression due to a newer dep |
310 |
- IPython/core/tests/test_oinspect.py::test_class_signature |
311 |
- IPython/core/tests/test_oinspect.py::test_render_signature_long |
312 |
- ) |
313 |
- [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( |
314 |
- # TODO |
315 |
- IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups |
316 |
- IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions |
317 |
- ) |
318 |
- epytest || die "Tests failed with ${EPYTHON}" |
319 |
-} |
320 |
- |
321 |
-python_install() { |
322 |
- distutils-r1_python_install |
323 |
- |
324 |
- # Create ipythonX.Y symlinks. |
325 |
- # TODO: |
326 |
- # 1. do we want them for pypy? No. pypy has no numpy |
327 |
- # 2. handle it in the eclass instead (use _python_ln_rel). |
328 |
- # With pypy not an option the dosym becomes unconditional |
329 |
- dosym ../lib/python-exec/${EPYTHON}/ipython \ |
330 |
- /usr/bin/ipython${EPYTHON#python} |
331 |
-} |
332 |
- |
333 |
-python_install_all() { |
334 |
- distutils-r1_python_install_all |
335 |
- |
336 |
- if use examples; then |
337 |
- dodoc -r examples |
338 |
- docompress -x /usr/share/doc/${PF}/examples |
339 |
- fi |
340 |
-} |
341 |
- |
342 |
-pkg_postinst() { |
343 |
- optfeature "code formatting" dev-python/black |
344 |
- optfeature "sympyprinting" dev-python/sympy |
345 |
- optfeature "cythonmagic" dev-python/cython |
346 |
- optfeature "%lprun magic command" dev-python/line_profiler |
347 |
- optfeature "%mprun magic command" dev-python/memory_profiler |
348 |
- |
349 |
- if use nbconvert; then |
350 |
- if ! has_version app-text/pandoc ; then |
351 |
- einfo "Node.js will be used to convert notebooks to other formats" |
352 |
- einfo "like HTML. Support for that is still experimental. If you" |
353 |
- einfo "encounter any problems, please use app-text/pandoc instead." |
354 |
- fi |
355 |
- fi |
356 |
-} |
357 |
|
358 |
diff --git a/dev-python/ipython/ipython-8.1.1.ebuild b/dev-python/ipython/ipython-8.1.1.ebuild |
359 |
deleted file mode 100644 |
360 |
index 816702db689a..000000000000 |
361 |
--- a/dev-python/ipython/ipython-8.1.1.ebuild |
362 |
+++ /dev/null |
363 |
@@ -1,157 +0,0 @@ |
364 |
-# Copyright 1999-2022 Gentoo Authors |
365 |
-# Distributed under the terms of the GNU General Public License v2 |
366 |
- |
367 |
-EAPI=8 |
368 |
- |
369 |
-DISTUTILS_USE_PEP517=setuptools |
370 |
-PYTHON_COMPAT=( python3_{8..10} ) |
371 |
-PYTHON_REQ_USE='readline,sqlite,threads(+)' |
372 |
- |
373 |
-inherit distutils-r1 optfeature virtualx |
374 |
- |
375 |
-DESCRIPTION="Advanced interactive shell for Python" |
376 |
-HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/" |
377 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
378 |
- |
379 |
-LICENSE="BSD" |
380 |
-SLOT="0" |
381 |
-KEYWORDS="~amd64 arm arm64 hppa ~ia64 ~ppc ~ppc64 ~riscv sparc ~x86" |
382 |
-IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" |
383 |
-RESTRICT="!test? ( test )" |
384 |
- |
385 |
-RDEPEND=" |
386 |
- dev-python/backcall[${PYTHON_USEDEP}] |
387 |
- dev-python/decorator[${PYTHON_USEDEP}] |
388 |
- >=dev-python/jedi-0.16[${PYTHON_USEDEP}] |
389 |
- dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
390 |
- >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] |
391 |
- dev-python/pickleshare[${PYTHON_USEDEP}] |
392 |
- >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] |
393 |
- <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] |
394 |
- >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] |
395 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
396 |
- dev-python/stack_data[${PYTHON_USEDEP}] |
397 |
- >=dev-python/traitlets-5.0[${PYTHON_USEDEP}] |
398 |
- matplotlib? ( |
399 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
400 |
- ) |
401 |
-" |
402 |
- |
403 |
-BDEPEND=" |
404 |
- test? ( |
405 |
- app-text/dvipng[truetype] |
406 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
407 |
- dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
408 |
- dev-python/nbformat[${PYTHON_USEDEP}] |
409 |
- >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
410 |
- dev-python/requests[${PYTHON_USEDEP}] |
411 |
- dev-python/testpath[${PYTHON_USEDEP}] |
412 |
- ) |
413 |
- doc? ( |
414 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
415 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
416 |
- >=dev-python/sphinx-2[${PYTHON_USEDEP}] |
417 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
418 |
- )" |
419 |
- |
420 |
-distutils_enable_tests pytest |
421 |
- |
422 |
-RDEPEND+=" |
423 |
- nbconvert? ( |
424 |
- dev-python/nbconvert[${PYTHON_USEDEP}] |
425 |
- )" |
426 |
-PDEPEND=" |
427 |
- notebook? ( |
428 |
- dev-python/notebook[${PYTHON_USEDEP}] |
429 |
- dev-python/ipywidgets[${PYTHON_USEDEP}] |
430 |
- dev-python/widgetsnbextension[${PYTHON_USEDEP}] |
431 |
- ) |
432 |
- qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) |
433 |
- smp? ( |
434 |
- >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
435 |
- >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] |
436 |
- )" |
437 |
- |
438 |
-PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
439 |
- |
440 |
-python_prepare_all() { |
441 |
- # Remove out of date insource files |
442 |
- #rm IPython/extensions/cythonmagic.py || die |
443 |
- #rm IPython/extensions/rmagic.py || die |
444 |
- |
445 |
- # Prevent un-needed download during build |
446 |
- if use doc; then |
447 |
- sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
448 |
- fi |
449 |
- |
450 |
- # Rename the test directory to reduce sys.path pollution |
451 |
- # https://github.com/ipython/ipython/issues/12892 |
452 |
- mv IPython/extensions/{,ipython_}tests || die |
453 |
- |
454 |
- distutils-r1_python_prepare_all |
455 |
-} |
456 |
- |
457 |
-python_compile_all() { |
458 |
- if use doc; then |
459 |
- emake -C docs html_noapi |
460 |
- HTML_DOCS=( docs/build/html/. ) |
461 |
- fi |
462 |
-} |
463 |
- |
464 |
-src_test() { |
465 |
- virtx distutils-r1_src_test |
466 |
-} |
467 |
- |
468 |
-python_test() { |
469 |
- local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 |
470 |
- local EPYTEST_DESELECT=( |
471 |
- # Internet |
472 |
- IPython/core/display.py::IPython.core.display.Image.__init__ |
473 |
- # TODO: looks to be a regression due to a newer dep |
474 |
- IPython/core/tests/test_oinspect.py::test_class_signature |
475 |
- IPython/core/tests/test_oinspect.py::test_render_signature_long |
476 |
- ) |
477 |
- [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( |
478 |
- # TODO |
479 |
- IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups |
480 |
- IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions |
481 |
- ) |
482 |
- epytest || die "Tests failed with ${EPYTHON}" |
483 |
-} |
484 |
- |
485 |
-python_install() { |
486 |
- distutils-r1_python_install |
487 |
- |
488 |
- # Create ipythonX.Y symlinks. |
489 |
- # TODO: |
490 |
- # 1. do we want them for pypy? No. pypy has no numpy |
491 |
- # 2. handle it in the eclass instead (use _python_ln_rel). |
492 |
- # With pypy not an option the dosym becomes unconditional |
493 |
- dosym ../lib/python-exec/${EPYTHON}/ipython \ |
494 |
- /usr/bin/ipython${EPYTHON#python} |
495 |
-} |
496 |
- |
497 |
-python_install_all() { |
498 |
- distutils-r1_python_install_all |
499 |
- |
500 |
- if use examples; then |
501 |
- dodoc -r examples |
502 |
- docompress -x /usr/share/doc/${PF}/examples |
503 |
- fi |
504 |
-} |
505 |
- |
506 |
-pkg_postinst() { |
507 |
- optfeature "code formatting" dev-python/black |
508 |
- optfeature "sympyprinting" dev-python/sympy |
509 |
- optfeature "cythonmagic" dev-python/cython |
510 |
- optfeature "%lprun magic command" dev-python/line_profiler |
511 |
- optfeature "%mprun magic command" dev-python/memory_profiler |
512 |
- |
513 |
- if use nbconvert; then |
514 |
- if ! has_version app-text/pandoc ; then |
515 |
- einfo "Node.js will be used to convert notebooks to other formats" |
516 |
- einfo "like HTML. Support for that is still experimental. If you" |
517 |
- einfo "encounter any problems, please use app-text/pandoc instead." |
518 |
- fi |
519 |
- fi |
520 |
-} |