Gentoo Archives: gentoo-commits

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