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: Sun, 28 Jun 2020 02:35:51
Message-Id: 1593311742.1e962278b065270294f8bbd343eff6e016895a2b.mgorny@gentoo
1 commit: 1e962278b065270294f8bbd343eff6e016895a2b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 28 02:18:09 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 28 02:35:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e962278
7
8 dev-python/ipython: Bump to 7.16.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.16.1.ebuild | 134 +++++++++++++++++++++++++++++++
14 2 files changed, 135 insertions(+)
15
16 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
17 index 5341d4df095..59a3f4b2688 100644
18 --- a/dev-python/ipython/Manifest
19 +++ b/dev-python/ipython/Manifest
20 @@ -1,2 +1,3 @@
21 DIST ipython-7.15.0.tar.gz 5245923 BLAKE2B 36c9712c72a38e918403cdc91fc098904282a48faed3e7faf03a1791356d09b9953c080b1b6f73b958713984748ee8af6d586956ccdad3ddadc60292cefd6d83 SHA512 46b09a8b6e5611d7b11b26aac475e7b823b00653ea6a3bf1a66d294cef22762b38e63c79f1e4e9bea0fe3e6423b058a2a692dc544c082dca37b9bb91c816cd22
22 +DIST ipython-7.16.1.tar.gz 5136303 BLAKE2B 9baf42c9befa50d78eec29d012aeae7f01886f29642a01845afd4a96d0efb7a4df5b14b68aeeb22d1d621e5427b219f717688a1d5074a6e70ad0509c7ca73a46 SHA512 60259fd6270b0355be67b4f620a58b56ae86e69e14debe2df86df6118548f2290ab3927b8dfab20db1ebd675df697d05eb6994b93625a7b8b6ea07112ddf63bd
23 DIST ipython-7.5.0.tar.gz 5118610 BLAKE2B 3f89babc292ea55724c2333076a673ef7fcd0a7a468e972a50c962194a71a0bc3cc9bdea4f96db4c21fe475b4d79dc87c124bcde53e1bc3ae7066a3c0c136e0d SHA512 564027879e53b3716ebe8cb1ed4b516835c15f326c865fd664aa7a4e5f26e1a78a329ff8e19d4acf6249e2acf7382501114cd2258c38bba89f0f382f7dcda09b
24
25 diff --git a/dev-python/ipython/ipython-7.16.1.ebuild b/dev-python/ipython/ipython-7.16.1.ebuild
26 new file mode 100644
27 index 00000000000..72cb41ac0a1
28 --- /dev/null
29 +++ b/dev-python/ipython/ipython-7.16.1.ebuild
30 @@ -0,0 +1,134 @@
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_{6..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 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
71 + dev-python/nbformat[${PYTHON_USEDEP}]
72 + dev-python/nose[${PYTHON_USEDEP}]
73 + >=dev-python/numpy-1.14[${PYTHON_USEDEP}]
74 + dev-python/requests[${PYTHON_USEDEP}]
75 + dev-python/testpath[${PYTHON_USEDEP}]
76 + )
77 + doc? (
78 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
79 + dev-python/matplotlib[${PYTHON_USEDEP}]
80 + >=dev-python/sphinx-2[${PYTHON_USEDEP}]
81 + )"
82 +
83 +PDEPEND="
84 + notebook? (
85 + dev-python/notebook[${PYTHON_USEDEP}]
86 + dev-python/ipywidgets[${PYTHON_USEDEP}]
87 + dev-python/widgetsnbextension[${PYTHON_USEDEP}]
88 + )
89 + qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
90 + smp? (
91 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
92 + >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}]
93 + )"
94 +
95 +PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch )
96 +
97 +DISTUTILS_IN_SOURCE_BUILD=1
98 +
99 +python_prepare_all() {
100 + # Remove out of date insource files
101 + rm IPython/extensions/cythonmagic.py || die
102 + rm IPython/extensions/rmagic.py || die
103 +
104 + # Prevent un-needed download during build
105 + if use doc; then
106 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
107 + fi
108 +
109 + distutils-r1_python_prepare_all
110 +}
111 +
112 +python_compile_all() {
113 + if use doc; then
114 + emake -C docs html_noapi
115 + HTML_DOCS=( docs/build/html/. )
116 + fi
117 +}
118 +
119 +src_test() {
120 + virtx distutils-r1_src_test
121 +}
122 +
123 +python_test() {
124 + distutils_install_for_testing
125 + pushd "${TEST_DIR}" >/dev/null || die
126 + "${TEST_DIR}"/scripts/iptest || die
127 + popd >/dev/null || die
128 +}
129 +
130 +python_install() {
131 + distutils-r1_python_install
132 +
133 + # Create ipythonX.Y symlinks.
134 + # TODO:
135 + # 1. do we want them for pypy? No. pypy has no numpy
136 + # 2. handle it in the eclass instead (use _python_ln_rel).
137 + # With pypy not an option the dosym becomes unconditional
138 + dosym ../lib/python-exec/${EPYTHON}/ipython \
139 + /usr/bin/ipython${EPYTHON#python}
140 +}
141 +
142 +python_install_all() {
143 + distutils-r1_python_install_all
144 +
145 + if use examples; then
146 + dodoc -r examples
147 + docompress -x /usr/share/doc/${PF}/examples
148 + fi
149 +}
150 +
151 +pkg_postinst() {
152 + optfeature "sympyprinting" dev-python/sympy
153 + optfeature "cythonmagic" dev-python/cython
154 + optfeature "%lprun magic command" dev-python/line_profiler
155 + optfeature "%mprun magic command" dev-python/memory_profiler
156 +
157 + if use nbconvert; then
158 + if ! has_version app-text/pandoc ; then
159 + einfo "Node.js will be used to convert notebooks to other formats"
160 + einfo "like HTML. Support for that is still experimental. If you"
161 + einfo "encounter any problems, please use app-text/pandoc instead."
162 + fi
163 + fi
164 +}