1 |
commit: 5894128aacb279445972ea8d0bcb812ad20c7ad7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 06:09:12 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 06:59:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5894128a |
7 |
|
8 |
dev-python/ipython: Bump to 8.7.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.7.0.ebuild | 156 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 157 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest |
17 |
index 06102f98cbac..bdda37078239 100644 |
18 |
--- a/dev-python/ipython/Manifest |
19 |
+++ b/dev-python/ipython/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST ipython-8.5.0.tar.gz 5319096 BLAKE2B 6ab330ffe99611478bdcf1211a500c08edd4aff802a1121156c302cb8a49b9c5f2fa98012dbaf80996574789bdb98d87924492181e45f00f46f600789c1ae6e4 SHA512 9339507fbe229d83f4c41b79257a7b40890d9d0601692521a61dc777c040a6d22d131014d660ffc9ba79f7128f579082473642f47b86e59a038f79c6553c8186 |
22 |
DIST ipython-8.6.0.tar.gz 5329155 BLAKE2B 2c2ed361af7f4a3884fe3d20fa92fb65c9eb0f020ca935e6a7edec7d28891b74433db56b55070ae07369f93d69e0f46a23fc470ba1c0b7ebf8d3d0f620464ab5 SHA512 54c9e354754b1086e5b87d4d76fa4fe5aa261b095d18210f6660fa9e0a3177db4c9b66d26da5e5d6880a40534477d8c6ea59615c4069327939bca41d49addb47 |
23 |
+DIST ipython-8.7.0.tar.gz 5329857 BLAKE2B 876ed4e16377f2a4d1c0aa83a7e2e0dfda64100de97ff349911d10b07acf351329b0bff75bcf6085f9fadf773fa6762ed88586e1132cabf6479790a38a0bc4e6 SHA512 4652d06d1a0cf33a2b55f640d6bcc3fd9f1f644c848e869bc3807da8f4166060798ea5629fa80cc98a4a79b8ea1cde6013507eae859354a5db270b7fb3cca6bf |
24 |
|
25 |
diff --git a/dev-python/ipython/ipython-8.7.0.ebuild b/dev-python/ipython/ipython-8.7.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..ef4cfe7d4971 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/ipython/ipython-8.7.0.ebuild |
30 |
@@ -0,0 +1,156 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+PYTHON_REQ_USE='readline,sqlite,threads(+)' |
39 |
+ |
40 |
+inherit distutils-r1 optfeature virtualx |
41 |
+ |
42 |
+DESCRIPTION="Advanced interactive shell for Python" |
43 |
+HOMEPAGE=" |
44 |
+ https://ipython.org/ |
45 |
+ https://github.com/ipython/ipython/ |
46 |
+ https://pypi.org/project/ipython/ |
47 |
+" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
53 |
+IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-python/backcall[${PYTHON_USEDEP}] |
58 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/jedi-0.16[${PYTHON_USEDEP}] |
60 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
61 |
+ dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] |
63 |
+ dev-python/pickleshare[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] |
65 |
+ <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] |
67 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
68 |
+ dev-python/stack_data[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/traitlets-5.0[${PYTHON_USEDEP}] |
70 |
+" |
71 |
+ |
72 |
+BDEPEND=" |
73 |
+ test? ( |
74 |
+ app-text/dvipng[truetype] |
75 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
76 |
+ dev-python/matplotlib-inline[${PYTHON_USEDEP}] |
77 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/numpy-1.20[${PYTHON_USEDEP}] |
79 |
+ dev-python/requests[${PYTHON_USEDEP}] |
80 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+ doc? ( |
83 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
84 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/sphinx-2[${PYTHON_USEDEP}] |
86 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
87 |
+ ) |
88 |
+" |
89 |
+ |
90 |
+distutils_enable_tests pytest |
91 |
+ |
92 |
+RDEPEND+=" |
93 |
+ nbconvert? ( |
94 |
+ dev-python/nbconvert[${PYTHON_USEDEP}] |
95 |
+ ) |
96 |
+" |
97 |
+PDEPEND=" |
98 |
+ notebook? ( |
99 |
+ dev-python/notebook[${PYTHON_USEDEP}] |
100 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
101 |
+ dev-python/widgetsnbextension[${PYTHON_USEDEP}] |
102 |
+ ) |
103 |
+ qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) |
104 |
+ smp? ( |
105 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] |
107 |
+ ) |
108 |
+" |
109 |
+ |
110 |
+PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
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 |
+src_test() { |
137 |
+ virtx distutils-r1_src_test |
138 |
+} |
139 |
+ |
140 |
+python_test() { |
141 |
+ local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 |
142 |
+ local EPYTEST_DESELECT=( |
143 |
+ # TODO: looks to be a regression due to a newer dep |
144 |
+ IPython/core/tests/test_oinspect.py::test_class_signature |
145 |
+ IPython/core/tests/test_oinspect.py::test_render_signature_long |
146 |
+ ) |
147 |
+ # nonfatal implied by virtx |
148 |
+ nonfatal epytest || die "Tests failed with ${EPYTHON}" |
149 |
+} |
150 |
+ |
151 |
+python_install() { |
152 |
+ distutils-r1_python_install |
153 |
+ |
154 |
+ # Create ipythonX.Y symlinks. |
155 |
+ # TODO: |
156 |
+ # 1. do we want them for pypy? No. pypy has no numpy |
157 |
+ # 2. handle it in the eclass instead (use _python_ln_rel). |
158 |
+ # With pypy not an option the dosym becomes unconditional |
159 |
+ dosym ../lib/python-exec/${EPYTHON}/ipython \ |
160 |
+ /usr/bin/ipython${EPYTHON#python} |
161 |
+} |
162 |
+ |
163 |
+python_install_all() { |
164 |
+ distutils-r1_python_install_all |
165 |
+ |
166 |
+ if use examples; then |
167 |
+ dodoc -r examples |
168 |
+ docompress -x /usr/share/doc/${PF}/examples |
169 |
+ fi |
170 |
+} |
171 |
+ |
172 |
+pkg_postinst() { |
173 |
+ optfeature "code formatting" dev-python/black |
174 |
+ optfeature "sympyprinting" dev-python/sympy |
175 |
+ optfeature "cythonmagic" dev-python/cython |
176 |
+ optfeature "%lprun magic command" dev-python/line_profiler |
177 |
+ optfeature "%mprun magic command" dev-python/memory_profiler |
178 |
+ |
179 |
+ if use nbconvert; then |
180 |
+ if ! has_version app-text/pandoc ; then |
181 |
+ einfo "Node.js will be used to convert notebooks to other formats" |
182 |
+ einfo "like HTML. Support for that is still experimental. If you" |
183 |
+ einfo "encounter any problems, please use app-text/pandoc instead." |
184 |
+ fi |
185 |
+ fi |
186 |
+} |