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, 01 Aug 2020 10:09:51
Message-Id: 1596276570.2a94ffbd80910cecf7cbc7a09f55aa57da01615a.mgorny@gentoo
1 commit: 2a94ffbd80910cecf7cbc7a09f55aa57da01615a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 07:09:39 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 10:09:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a94ffbd
7
8 dev-python/ipython: Bump to 7.17.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.17.0.ebuild | 135 +++++++++++++++++++++++++++++++
14 2 files changed, 136 insertions(+)
15
16 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
17 index 99cf8edfe59..5e4660a940c 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.17.0.tar.gz 5139470 BLAKE2B df7dfb00ed81d5c3db7ba1408df6a4e26ac8439d6d58c7f9214ae89e446951eadf3f0d4c2be0654acebc0429a77773972b6dd081ef8c009a9d177924968e7b28 SHA512 0dabc6f4079719d2dd75c5ee92e4523b016b4a790776ccc7130a60bdd4ca1b88bcdcfb9ddd192f9c1a4397c27a27e7f7297540275d06832f870af347e2f14dd9
23 DIST ipython-7.5.0.tar.gz 5118610 BLAKE2B 3f89babc292ea55724c2333076a673ef7fcd0a7a468e972a50c962194a71a0bc3cc9bdea4f96db4c21fe475b4d79dc87c124bcde53e1bc3ae7066a3c0c136e0d SHA512 564027879e53b3716ebe8cb1ed4b516835c15f326c865fd664aa7a4e5f26e1a78a329ff8e19d4acf6249e2acf7382501114cd2258c38bba89f0f382f7dcda09b
24
25 diff --git a/dev-python/ipython/ipython-7.17.0.ebuild b/dev-python/ipython/ipython-7.17.0.ebuild
26 new file mode 100644
27 index 00000000000..3ba94560a01
28 --- /dev/null
29 +++ b/dev-python/ipython/ipython-7.17.0.ebuild
30 @@ -0,0 +1,135 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +PYTHON_REQ_USE='readline,sqlite,threads(+)'
38 +
39 +inherit distutils-r1 eutils virtualx
40 +
41 +DESCRIPTION="Advanced interactive shell for Python"
42 +HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test"
49 +RESTRICT="!test? ( test )"
50 +
51 +CDEPEND="
52 + dev-python/backcall[${PYTHON_USEDEP}]
53 + dev-python/decorator[${PYTHON_USEDEP}]
54 + dev-python/jedi[${PYTHON_USEDEP}]
55 + dev-python/pexpect[${PYTHON_USEDEP}]
56 + dev-python/pickleshare[${PYTHON_USEDEP}]
57 + >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}]
58 + <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}]
59 + dev-python/pygments[${PYTHON_USEDEP}]
60 + dev-python/traitlets[${PYTHON_USEDEP}]
61 + matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
62 +"
63 +
64 +RDEPEND="${CDEPEND}
65 + nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] )"
66 +
67 +DEPEND="${CDEPEND}
68 + dev-python/setuptools[${PYTHON_USEDEP}]
69 + test? (
70 + app-text/dvipng[truetype]
71 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
72 + dev-python/nbformat[${PYTHON_USEDEP}]
73 + dev-python/nose[${PYTHON_USEDEP}]
74 + >=dev-python/numpy-1.14[${PYTHON_USEDEP}]
75 + dev-python/requests[${PYTHON_USEDEP}]
76 + dev-python/testpath[${PYTHON_USEDEP}]
77 + )
78 + doc? (
79 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
80 + dev-python/matplotlib[${PYTHON_USEDEP}]
81 + >=dev-python/sphinx-2[${PYTHON_USEDEP}]
82 + )"
83 +
84 +PDEPEND="
85 + notebook? (
86 + dev-python/notebook[${PYTHON_USEDEP}]
87 + dev-python/ipywidgets[${PYTHON_USEDEP}]
88 + dev-python/widgetsnbextension[${PYTHON_USEDEP}]
89 + )
90 + qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
91 + smp? (
92 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
93 + >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}]
94 + )"
95 +
96 +PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch )
97 +
98 +DISTUTILS_IN_SOURCE_BUILD=1
99 +
100 +python_prepare_all() {
101 + # Remove out of date insource files
102 + rm IPython/extensions/cythonmagic.py || die
103 + rm IPython/extensions/rmagic.py || die
104 +
105 + # Prevent un-needed download during build
106 + if use doc; then
107 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
108 + fi
109 +
110 + distutils-r1_python_prepare_all
111 +}
112 +
113 +python_compile_all() {
114 + if use doc; then
115 + emake -C docs html_noapi
116 + HTML_DOCS=( docs/build/html/. )
117 + fi
118 +}
119 +
120 +src_test() {
121 + virtx distutils-r1_src_test
122 +}
123 +
124 +python_test() {
125 + distutils_install_for_testing
126 + pushd "${TEST_DIR}" >/dev/null || die
127 + "${TEST_DIR}"/scripts/iptest || die
128 + popd >/dev/null || die
129 +}
130 +
131 +python_install() {
132 + distutils-r1_python_install
133 +
134 + # Create ipythonX.Y symlinks.
135 + # TODO:
136 + # 1. do we want them for pypy? No. pypy has no numpy
137 + # 2. handle it in the eclass instead (use _python_ln_rel).
138 + # With pypy not an option the dosym becomes unconditional
139 + dosym ../lib/python-exec/${EPYTHON}/ipython \
140 + /usr/bin/ipython${EPYTHON#python}
141 +}
142 +
143 +python_install_all() {
144 + distutils-r1_python_install_all
145 +
146 + if use examples; then
147 + dodoc -r examples
148 + docompress -x /usr/share/doc/${PF}/examples
149 + fi
150 +}
151 +
152 +pkg_postinst() {
153 + optfeature "sympyprinting" dev-python/sympy
154 + optfeature "cythonmagic" dev-python/cython
155 + optfeature "%lprun magic command" dev-python/line_profiler
156 + optfeature "%mprun magic command" dev-python/memory_profiler
157 +
158 + if use nbconvert; then
159 + if ! has_version app-text/pandoc ; then
160 + einfo "Node.js will be used to convert notebooks to other formats"
161 + einfo "like HTML. Support for that is still experimental. If you"
162 + einfo "encounter any problems, please use app-text/pandoc instead."
163 + fi
164 + fi
165 +}