1 |
commit: d2a168cde4cc384ee36f3e774f669731f8ac97c6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 07:55:41 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 08:09:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2a168cd |
7 |
|
8 |
dev-python/ipython: Bump to 7.21.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-7.21.0.ebuild | 137 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 138 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest |
17 |
index 5a7e630c1db..606108cb1dc 100644 |
18 |
--- a/dev-python/ipython/Manifest |
19 |
+++ b/dev-python/ipython/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST ipython-7.19.0.tar.gz 5225775 BLAKE2B 1909d8336e7fc90959da4ca33ad7edcb8c2dec0a5aa20ca6f643ef53482fe7bf0d52e2bbec7cf97e72a1fd4d37af45ba01166febb25f35b52d69ffc062f0f0e8 SHA512 5350a125da3050acaea4899939a3b9d779009a2f5769fc9f3aa514ce029df050069ef9310d3255ad62f28912b4dec39207267248d3a2c3e9131cffd691322622 |
22 |
DIST ipython-7.20.0.tar.gz 5140776 BLAKE2B ec01caf874ab9c331eb1f074f9e70acb521fe6d4abe3e8f086d9e9e77cd710c3b0d88c6d7b071abc6962eee8141b65a012ec772cbec3450db25f086fc66cf1c6 SHA512 2fff1a64c3d83e794e76bcbdf54e105f499321d9a7e5d3221cdc3e15a96e90543fd465b8dbee4836965286e7c1f1ea6d13e4d3d88c095164858bf71c161111fe |
23 |
+DIST ipython-7.21.0.tar.gz 5141725 BLAKE2B dae44d481e959ef7d002bdb51d0ab1e2f3eca3449071a2e4161aa735c06fef8a948d80bafd3f2bdd066208437b5ed36615cad5885af453771a32a313fba907eb SHA512 200e41d4e06343b6320f3d106925f6c995f39cf88d01250f53885d4e94d0fd9454a6be4cd7c69410f7dced94b05634f6d2269f9737cc563accf85206d4d7fff8 |
24 |
|
25 |
diff --git a/dev-python/ipython/ipython-7.21.0.ebuild b/dev-python/ipython/ipython-7.21.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e314d1de998 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/ipython/ipython-7.21.0.ebuild |
30 |
@@ -0,0 +1,137 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=no |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+PYTHON_REQ_USE='readline,sqlite,threads(+)' |
39 |
+ |
40 |
+inherit distutils-r1 optfeature 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.16[${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 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
84 |
+ )" |
85 |
+ |
86 |
+PDEPEND=" |
87 |
+ notebook? ( |
88 |
+ dev-python/notebook[${PYTHON_USEDEP}] |
89 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
90 |
+ dev-python/widgetsnbextension[${PYTHON_USEDEP}] |
91 |
+ ) |
92 |
+ qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) |
93 |
+ smp? ( |
94 |
+ >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] |
96 |
+ )" |
97 |
+ |
98 |
+PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) |
99 |
+ |
100 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
101 |
+ |
102 |
+python_prepare_all() { |
103 |
+ # Remove out of date insource files |
104 |
+ rm IPython/extensions/cythonmagic.py || die |
105 |
+ rm IPython/extensions/rmagic.py || die |
106 |
+ |
107 |
+ # Prevent un-needed download during build |
108 |
+ if use doc; then |
109 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
110 |
+ fi |
111 |
+ |
112 |
+ distutils-r1_python_prepare_all |
113 |
+} |
114 |
+ |
115 |
+python_compile_all() { |
116 |
+ if use doc; then |
117 |
+ emake -C docs html_noapi |
118 |
+ HTML_DOCS=( docs/build/html/. ) |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+src_test() { |
123 |
+ virtx distutils-r1_src_test |
124 |
+} |
125 |
+ |
126 |
+python_test() { |
127 |
+ distutils_install_for_testing |
128 |
+ pushd "${TEST_DIR}" >/dev/null || die |
129 |
+ "${TEST_DIR}"/scripts/iptest || die |
130 |
+ popd >/dev/null || die |
131 |
+} |
132 |
+ |
133 |
+python_install() { |
134 |
+ distutils-r1_python_install |
135 |
+ |
136 |
+ # Create ipythonX.Y symlinks. |
137 |
+ # TODO: |
138 |
+ # 1. do we want them for pypy? No. pypy has no numpy |
139 |
+ # 2. handle it in the eclass instead (use _python_ln_rel). |
140 |
+ # With pypy not an option the dosym becomes unconditional |
141 |
+ dosym ../lib/python-exec/${EPYTHON}/ipython \ |
142 |
+ /usr/bin/ipython${EPYTHON#python} |
143 |
+} |
144 |
+ |
145 |
+python_install_all() { |
146 |
+ distutils-r1_python_install_all |
147 |
+ |
148 |
+ if use examples; then |
149 |
+ dodoc -r examples |
150 |
+ docompress -x /usr/share/doc/${PF}/examples |
151 |
+ fi |
152 |
+} |
153 |
+ |
154 |
+pkg_postinst() { |
155 |
+ optfeature "sympyprinting" dev-python/sympy |
156 |
+ optfeature "cythonmagic" dev-python/cython |
157 |
+ optfeature "%lprun magic command" dev-python/line_profiler |
158 |
+ optfeature "%mprun magic command" dev-python/memory_profiler |
159 |
+ |
160 |
+ if use nbconvert; then |
161 |
+ if ! has_version app-text/pandoc ; then |
162 |
+ einfo "Node.js will be used to convert notebooks to other formats" |
163 |
+ einfo "like HTML. Support for that is still experimental. If you" |
164 |
+ einfo "encounter any problems, please use app-text/pandoc instead." |
165 |
+ fi |
166 |
+ fi |
167 |
+} |