1 |
commit: 68eaba5b44755e300306f8baa1c1438bc761f462 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 19 22:33:57 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 19 22:59:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68eaba5b |
7 |
|
8 |
dev-python/ipython: Bump to 7.31.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.31.1.ebuild | 157 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 158 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest |
17 |
index fc5e7602c6b7..315d892b12d7 100644 |
18 |
--- a/dev-python/ipython/Manifest |
19 |
+++ b/dev-python/ipython/Manifest |
20 |
@@ -1,5 +1,6 @@ |
21 |
DIST ipython-7.29.0.tar.gz 5151803 BLAKE2B 685bb7df39513fe262c07dbb10de4d795860bf2958c626d030bfa3e18052a98d7c9d5f0f96c0c9a5d4b9fdcfab09c492457d409f05ce522f607456ff3a4b35fd SHA512 b8e9cc07a0f77bbfaa88183546ed9d7e4a4c37e7c1704b1a3716d605a04339f986c7767f3c0920a94039eda99e75afb62a7bb43fa0cde6699a902f3b8f83a398 |
22 |
DIST ipython-7.30.1.tar.gz 5154336 BLAKE2B 0753433eea2ee6a5a6451db6aa537c9c9469c749b970ecdd040123787064e7be78363060a785c7ea4175b8e0f4f2bfefa15485f6f5412ec34690fe505a1cfb97 SHA512 839f709e019dd5efe32730f2e4c457e6dae0db5490844805d30f12a1fd17bfb2f991f1374a84542b2392d3ce332096d3922471c6b14149331075be8719b14734 |
23 |
DIST ipython-7.31.0.tar.gz 5154974 BLAKE2B 5debac9a1011cc6541a2ce97df5d8793465ce4c289d1293c33c29eacc23cbd2271f0a8d7362c3445a88d080edefd85046aebc8782cd930c3dd8b6837ec682bf6 SHA512 705122ca63df17812ab360da06d58431b51d3a1f3bba47df7131e882de64de54c6986e7ba3d55f4b77c4b1049981b0100ba64825e952b25712c843ef7e975e2f |
24 |
+DIST ipython-7.31.1.tar.gz 5156314 BLAKE2B e6528c9d3920078918180c4c2fae5d0ac20cd377e012691fee4c0cfa6c3056c739efc1ab9cc6231f55034d70619e501ff30e31b929bd5f1f623c89075abfb02d SHA512 7bd1378f7b2bd2146d8c2cf15c958b08f286b0163ca3e267bcd92c3f988d2d20cf48fd6e3c185eed6d30baceb195aeb0170280900e587c898d0812c4ffdee3a0 |
25 |
DIST ipython-8.0.0.tar.gz 5395839 BLAKE2B 8844372c423c4b33a2a77b376c033aa00a4d44d1735cad42c4c85b05950370fcafea109025f4f02d124643656673ebf45ef27f78a93d31083b94e13d9364b32c SHA512 cb372080fac212f0d3872747820d06829f6b008ba142650c1af6fbc2ff287a0a82e9ec27777fe1c94f86d7dd9b57a9ebab467eeabd100344d053becd8ec1f70b |
26 |
DIST ipython-8.0.1.tar.gz 5306811 BLAKE2B 9088faf779e2783ce97c6a45f0baa3c7163e12f63546aa65eb961de2b2fbacaac8ba1cf0c3c705bc326b4c999fe3ce672f31e3abaa7168d912504880ad8d3c2f SHA512 c4f3cf6e4aa7dab1e4e8cec2d669e5fe4ea3eeac9063132a38544596fafbaaed0f287bbdce12e8bc3d7613766c51b0e1ff8c7c86fdbd53e387caade6bbcdb828 |
27 |
|
28 |
diff --git a/dev-python/ipython/ipython-7.31.1.ebuild b/dev-python/ipython/ipython-7.31.1.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..5f1351e1d213 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/ipython/ipython-7.31.1.ebuild |
33 |
@@ -0,0 +1,157 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+DISTUTILS_USE_SETUPTOOLS=no |
40 |
+PYTHON_COMPAT=( python3_{8..10} ) |
41 |
+PYTHON_REQ_USE='readline,sqlite,threads(+)' |
42 |
+ |
43 |
+inherit distutils-r1 optfeature virtualx |
44 |
+ |
45 |
+DESCRIPTION="Advanced interactive shell for Python" |
46 |
+HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="BSD" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
52 |
+IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-python/backcall[${PYTHON_USEDEP}] |
57 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/jedi-0.16[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] |
60 |
+ dev-python/pickleshare[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] |
62 |
+ <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] |
63 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
64 |
+ dev-python/traitlets[${PYTHON_USEDEP}] |
65 |
+ matplotlib? ( |
66 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
67 |
+ dev-python/matplotlib-inline[${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[${PYTHON_USEDEP}] |
76 |
+ dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
77 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
78 |
+ dev-python/nose[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/numpy-1.17[${PYTHON_USEDEP}] |
80 |
+ dev-python/requests[${PYTHON_USEDEP}] |
81 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ doc? ( |
84 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
85 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/sphinx-2[${PYTHON_USEDEP}] |
87 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
88 |
+ )" |
89 |
+ |
90 |
+distutils_enable_tests pytest |
91 |
+ |
92 |
+RDEPEND+=" |
93 |
+ nbconvert? ( |
94 |
+ dev-python/nbconvert[${PYTHON_USEDEP}] |
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 |
+PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
109 |
+ |
110 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
111 |
+ |
112 |
+python_prepare_all() { |
113 |
+ # Remove out of date insource files |
114 |
+ rm IPython/extensions/cythonmagic.py || die |
115 |
+ rm IPython/extensions/rmagic.py || die |
116 |
+ |
117 |
+ # Prevent un-needed download during build |
118 |
+ if use doc; then |
119 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
120 |
+ fi |
121 |
+ |
122 |
+ # Rename the test directory to reduce sys.path pollution |
123 |
+ # https://github.com/ipython/ipython/issues/12892 |
124 |
+ mv IPython/extensions/{,ipython_}tests || die |
125 |
+ |
126 |
+ distutils-r1_python_prepare_all |
127 |
+} |
128 |
+ |
129 |
+python_compile_all() { |
130 |
+ if use doc; then |
131 |
+ emake -C docs html_noapi |
132 |
+ HTML_DOCS=( docs/build/html/. ) |
133 |
+ fi |
134 |
+} |
135 |
+ |
136 |
+python_test() { |
137 |
+ local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 |
138 |
+ local EPYTEST_DESELECT=( |
139 |
+ # TODO: looks to be a regression due to a newer dep |
140 |
+ IPython/core/tests/test_oinspect.py::test_class_signature |
141 |
+ IPython/core/tests/test_oinspect.py::test_render_signature_long |
142 |
+ ) |
143 |
+ [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( |
144 |
+ # TODO |
145 |
+ IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups |
146 |
+ IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions |
147 |
+ IPython/core/tests/test_oinspect.py::test_pinfo_docstring_if_detail_and_no_source |
148 |
+ # fails due to changed argparse output |
149 |
+ IPython/core/tests/test_magic_arguments.py::test_magic_arguments |
150 |
+ # py3.10 API incompat, doesn't look important |
151 |
+ IPython/lib/tests/test_pretty.py::test_pprint_heap_allocated_type |
152 |
+ ) |
153 |
+ virtx epytest |
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 "sympyprinting" dev-python/sympy |
179 |
+ optfeature "cythonmagic" dev-python/cython |
180 |
+ optfeature "%lprun magic command" dev-python/line_profiler |
181 |
+ optfeature "%mprun magic command" dev-python/memory_profiler |
182 |
+ |
183 |
+ if use nbconvert; then |
184 |
+ if ! has_version app-text/pandoc ; then |
185 |
+ einfo "Node.js will be used to convert notebooks to other formats" |
186 |
+ einfo "like HTML. Support for that is still experimental. If you" |
187 |
+ einfo "encounter any problems, please use app-text/pandoc instead." |
188 |
+ fi |
189 |
+ fi |
190 |
+} |