1 |
commit: a4d6dd77c00a0adcf81f5a22575c7549d76b902f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 07:05:36 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 07:34:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4d6dd77 |
7 |
|
8 |
dev-python/ipython: Bump to 8.3.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/ipython/Manifest | 1 + |
13 |
dev-python/ipython/ipython-8.3.0.ebuild | 160 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 161 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest |
17 |
index aca004ed16ca..939e41328ace 100644 |
18 |
--- a/dev-python/ipython/Manifest |
19 |
+++ b/dev-python/ipython/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST ipython-8.0.1.tar.gz 5306811 BLAKE2B 9088faf779e2783ce97c6a45f0baa3c7163e12 |
21 |
DIST ipython-8.1.0.tar.gz 5312523 BLAKE2B 9a44555dcb91655c5d483a7ba5d99074b9c2c4af3ec272d0adabc345352359b061ea4fd92198c3910945139edb80c8837afe1ae3c34b0bddb517d226584f28a1 SHA512 847ddab96ecfe06e46921b081fe3a51910c3fde1fa440c9955e374614b1ae6a7d20fc2e78d286178366893d342126a01a160a4efb0aa7be0b2234229638e95bc |
22 |
DIST ipython-8.1.1.tar.gz 5313998 BLAKE2B 0972b2f4a8072c5775f5cc4637aeb8e684b342d097d77e2d9d0a3e659d7a10f94f741bafc7f33595cbb205d8dbbc72e88b820e5407cb9ab506189d44e8c19cf0 SHA512 ce93d4d0839f32256461ff53c510f694db6ec0358a487a6af016d41f811e1b78b3244f1c67097e14afd32635ae392b4bff5d6eb2fc823c299c699335dc43bdc0 |
23 |
DIST ipython-8.2.0.tar.gz 5400583 BLAKE2B 6af50e671823005b035a8463e65463b06dacb3bf4d43c4d3bd9720d1747ebda8abe3d73a49f59ae0e6e2651035db20bcfa1e82dbb0a73e40b4e2507e63118921 SHA512 0bf93527bcafe5dfbfe034b901dff2f002e0fc732159073f0371263e23784f45eb6c9e3f7f2cb9567e93ea4ee313773f836157afe9d23256e71bc4b2fcac15af |
24 |
+DIST ipython-8.3.0.tar.gz 5314400 BLAKE2B 8f06dcaf32cea70ba9f19fb218d4ea6ca3e42651da065521133b1c7163f80324244f59b3c4d85039f1aa5ed363acad0dae11615ae4927d6c9a24197cc9640349 SHA512 95a3d50a5cffe9d4ed3f072c7fa8920c96beccdb15a7437836daa5f38f1ba228b4ebc4c3313d4c5016b77ed7d6f3787af727487ea379c9dc3b3de90eafa4d1c3 |
25 |
|
26 |
diff --git a/dev-python/ipython/ipython-8.3.0.ebuild b/dev-python/ipython/ipython-8.3.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..f4c7b535daeb |
29 |
--- /dev/null |
30 |
+++ b/dev-python/ipython/ipython-8.3.0.ebuild |
31 |
@@ -0,0 +1,160 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=setuptools |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+PYTHON_REQ_USE='readline,sqlite,threads(+)' |
40 |
+ |
41 |
+inherit distutils-r1 optfeature virtualx |
42 |
+ |
43 |
+DESCRIPTION="Advanced interactive shell for Python" |
44 |
+HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/" |
45 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
50 |
+IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/backcall[${PYTHON_USEDEP}] |
55 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/jedi-0.16[${PYTHON_USEDEP}] |
57 |
+ dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] |
59 |
+ dev-python/pickleshare[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] |
61 |
+ <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] |
63 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
64 |
+ dev-python/stack_data[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/traitlets-5.0[${PYTHON_USEDEP}] |
66 |
+ matplotlib? ( |
67 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+BDEPEND=" |
72 |
+ test? ( |
73 |
+ app-text/dvipng[truetype] |
74 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
75 |
+ dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
76 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
78 |
+ dev-python/requests[${PYTHON_USEDEP}] |
79 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
80 |
+ ) |
81 |
+ doc? ( |
82 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
83 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/sphinx-2[${PYTHON_USEDEP}] |
85 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
86 |
+ ) |
87 |
+" |
88 |
+ |
89 |
+distutils_enable_tests pytest |
90 |
+ |
91 |
+RDEPEND+=" |
92 |
+ nbconvert? ( |
93 |
+ dev-python/nbconvert[${PYTHON_USEDEP}] |
94 |
+ ) |
95 |
+" |
96 |
+PDEPEND=" |
97 |
+ notebook? ( |
98 |
+ dev-python/notebook[${PYTHON_USEDEP}] |
99 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
100 |
+ dev-python/widgetsnbextension[${PYTHON_USEDEP}] |
101 |
+ ) |
102 |
+ qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) |
103 |
+ smp? ( |
104 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] |
106 |
+ ) |
107 |
+" |
108 |
+ |
109 |
+PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
110 |
+ |
111 |
+python_prepare_all() { |
112 |
+ # Remove out of date insource files |
113 |
+ #rm IPython/extensions/cythonmagic.py || die |
114 |
+ #rm IPython/extensions/rmagic.py || die |
115 |
+ |
116 |
+ # Prevent un-needed download during build |
117 |
+ if use doc; then |
118 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
119 |
+ fi |
120 |
+ |
121 |
+ # Rename the test directory to reduce sys.path pollution |
122 |
+ # https://github.com/ipython/ipython/issues/12892 |
123 |
+ mv IPython/extensions/{,ipython_}tests || die |
124 |
+ |
125 |
+ distutils-r1_python_prepare_all |
126 |
+} |
127 |
+ |
128 |
+python_compile_all() { |
129 |
+ if use doc; then |
130 |
+ emake -C docs html_noapi |
131 |
+ HTML_DOCS=( docs/build/html/. ) |
132 |
+ fi |
133 |
+} |
134 |
+ |
135 |
+src_test() { |
136 |
+ virtx distutils-r1_src_test |
137 |
+} |
138 |
+ |
139 |
+python_test() { |
140 |
+ local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 |
141 |
+ local EPYTEST_DESELECT=( |
142 |
+ # Internet |
143 |
+ IPython/core/display.py::IPython.core.display.Image.__init__ |
144 |
+ # TODO: looks to be a regression due to a newer dep |
145 |
+ IPython/core/tests/test_oinspect.py::test_class_signature |
146 |
+ IPython/core/tests/test_oinspect.py::test_render_signature_long |
147 |
+ ) |
148 |
+ [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( |
149 |
+ # TODO |
150 |
+ IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups |
151 |
+ IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions |
152 |
+ ) |
153 |
+ epytest || die "Tests failed with ${EPYTHON}" |
154 |
+} |
155 |
+ |
156 |
+python_install() { |
157 |
+ distutils-r1_python_install |
158 |
+ |
159 |
+ # Create ipythonX.Y symlinks. |
160 |
+ # TODO: |
161 |
+ # 1. do we want them for pypy? No. pypy has no numpy |
162 |
+ # 2. handle it in the eclass instead (use _python_ln_rel). |
163 |
+ # With pypy not an option the dosym becomes unconditional |
164 |
+ dosym ../lib/python-exec/${EPYTHON}/ipython \ |
165 |
+ /usr/bin/ipython${EPYTHON#python} |
166 |
+} |
167 |
+ |
168 |
+python_install_all() { |
169 |
+ distutils-r1_python_install_all |
170 |
+ |
171 |
+ if use examples; then |
172 |
+ dodoc -r examples |
173 |
+ docompress -x /usr/share/doc/${PF}/examples |
174 |
+ fi |
175 |
+} |
176 |
+ |
177 |
+pkg_postinst() { |
178 |
+ optfeature "code formatting" dev-python/black |
179 |
+ optfeature "sympyprinting" dev-python/sympy |
180 |
+ optfeature "cythonmagic" dev-python/cython |
181 |
+ optfeature "%lprun magic command" dev-python/line_profiler |
182 |
+ optfeature "%mprun magic command" dev-python/memory_profiler |
183 |
+ |
184 |
+ if use nbconvert; then |
185 |
+ if ! has_version app-text/pandoc ; then |
186 |
+ einfo "Node.js will be used to convert notebooks to other formats" |
187 |
+ einfo "like HTML. Support for that is still experimental. If you" |
188 |
+ einfo "encounter any problems, please use app-text/pandoc instead." |
189 |
+ fi |
190 |
+ fi |
191 |
+} |