Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipython/
Date: Wed, 24 Aug 2016 08:38:00
Message-Id: 1472027847.de586b7b5f35eb647fe642a9a4cdc050a3984389.soap@gentoo
1 commit: de586b7b5f35eb647fe642a9a4cdc050a3984389
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Wed Aug 24 08:01:46 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 08:37:27 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de586b7b
7
8 dev-python/ipython: Version bump to 5.1.0; Fix python_test()
9
10 Package-Manager: portage-2.2.28
11 Closes: https://github.com/gentoo/gentoo/pull/2134
12
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 dev-python/ipython/Manifest | 1 +
16 dev-python/ipython/ipython-5.1.0.ebuild | 139 ++++++++++++++++++++++++++++++++
17 2 files changed, 140 insertions(+)
18
19 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
20 index 690baed..94466d8 100644
21 --- a/dev-python/ipython/Manifest
22 +++ b/dev-python/ipython/Manifest
23 @@ -4,3 +4,4 @@ DIST ipython-4.0.3.tar.gz 6207899 SHA256 3a928f59e8ac8dd97858c28390867c87c09510f
24 DIST ipython-4.1.1.tar.gz 4938684 SHA256 1cb340dfdf6ec306b9ded72071742c87fa5247929db7ab704e17defe1975e38f SHA512 ccb24a6d3de5f12a21225387e46ad1b1038910d51d8c0aeb1f4ad6d24751b300295548083f60f3eadec3f29c75370644638b30e6ce391d13f900454e8b3d60a5 WHIRLPOOL f041d10747d4919566a0119e25bfd9030d6213021ecd222bad9e456a7cb3505ee5d3ffc7fe0de5aa1080453565245c3e95cb774df0746f7d4a13b51067bc53b9
25 DIST ipython-4.1.2.tar.gz 4953949 SHA256 052f9692a227f285febecec856d749811ac6a20b32c7629b4de31f04ea701692 SHA512 2a28a82cbc5d11cb1f1c88e452f52dbc6b196ac12d46cdec1f35d49e7f97aa8ee5c2a90a6f02f072297c4ef17f84a4454100a4b2594968ec46995c4fd459c09b WHIRLPOOL 1ae1fb4a88d9fd73c93ce096cdb4754d3153e156d87760b48825a2af3ec7eec3d3232b2b0f59f5fce94fb4e14b8c51361781527d9f5320a336ed786fc339567f
26 DIST ipython-4.2.0.tar.gz 4935042 SHA256 dba42f182b5f6f26630d2202efd30383712d9f7d8d8d9896b37ae2145deca616 SHA512 01c931a9745af7d43d174b761b506b78840ac9484007741665ff3d4a448131384194869552957353d07beb35e29187743353002c7c0a31f3b336f3b01a64a323 WHIRLPOOL 62468bef537d7533eaf9c89106bd7587dae70c921d623374c0ea796262e304cbf53020375c1876ebefb8b42e7d896b8b071afbcd5e1c710dac4a0a00783f3d82
27 +DIST ipython-5.1.0.tar.gz 4945490 SHA256 7ef4694e1345913182126b219aaa4a0047e191af414256da6772cf249571b961 SHA512 84dbb5629d7a781abdadb9015dc637551bd57427d3187a55de3fb7f50d3d36afb1a8c0a5aaf75da95a8ff41ab623a3c6216373b2145914b960983ba0bf52c3c2 WHIRLPOOL 298e5c248a9d56ec3d9d9824ecee67da95c48d664a44643b8eede8e1719c7d6566b8dcc1fbf8cd4ae8f2829218ad189e9415fb931151b71402a40f326ca9cf01
28
29 diff --git a/dev-python/ipython/ipython-5.1.0.ebuild b/dev-python/ipython/ipython-5.1.0.ebuild
30 new file mode 100644
31 index 00000000..aa838af
32 --- /dev/null
33 +++ b/dev-python/ipython/ipython-5.1.0.ebuild
34 @@ -0,0 +1,139 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=6
40 +
41 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
42 +PYTHON_REQ_USE='readline,sqlite,threads(+)'
43 +
44 +inherit distutils-r1 eutils
45 +
46 +DESCRIPTION="Advanced interactive shell for Python"
47 +HOMEPAGE="http://ipython.org/"
48 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 +
50 +LICENSE="BSD"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm64 ~x86"
53 +IUSE="doc examples matplotlib mongodb notebook nbconvert qt4 +smp test wxwidgets"
54 +
55 +REQUIRED_USE="
56 + test? ( doc matplotlib mongodb notebook nbconvert qt4 wxwidgets )
57 + doc? ( mongodb )"
58 +
59 +CDEPEND="
60 + dev-python/decorator[${PYTHON_USEDEP}]
61 + dev-python/pexpect[${PYTHON_USEDEP}]
62 + dev-python/pickleshare[${PYTHON_USEDEP}]
63 + dev-python/pyparsing[${PYTHON_USEDEP}]
64 + dev-python/simplegeneric[${PYTHON_USEDEP}]
65 + >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}]
66 + >=dev-python/prompt_toolkit-1.0.3[${PYTHON_USEDEP}]
67 + matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
68 + mongodb? ( <dev-python/pymongo-3[${PYTHON_USEDEP}] )
69 + wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython:*[${PYTHON_USEDEP}]' python2_7) )"
70 +
71 +RDEPEND="${CDEPEND}
72 + notebook? (
73 + dev-python/notebook[${PYTHON_USEDEP}]
74 + dev-python/ipywidgets[${PYTHON_USEDEP}]
75 + )
76 + nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] )"
77 +DEPEND="${CDEPEND}
78 + >=dev-python/setuptools-18.5[${PYTHON_USEDEP}]
79 + $(python_gen_cond_dep \
80 + 'dev-python/backports-shutil_get_terminal_size[${PYTHON_USEDEP}]' 'python2*')
81 + test? (
82 + app-text/dvipng
83 + dev-python/jinja[${PYTHON_USEDEP}]
84 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
85 + >=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
86 + dev-python/pygments[${PYTHON_USEDEP}]
87 + dev-python/requests[${PYTHON_USEDEP}]
88 + >=dev-python/sphinx-1.3[${PYTHON_USEDEP}]
89 + dev-python/testpath[${PYTHON_USEDEP}]
90 + >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
91 + x11-base/xorg-server[xvfb]
92 + )
93 + doc? (
94 + dev-python/cython[${PYTHON_USEDEP}]
95 + $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
96 + >=dev-python/jsonschema-2.0[${PYTHON_USEDEP}]
97 + dev-python/matplotlib[${PYTHON_USEDEP}]
98 + >=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
99 + dev-python/rpy[${PYTHON_USEDEP}]
100 + >=dev-python/sphinx-1.3[${PYTHON_USEDEP}]
101 + >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
102 + )"
103 +
104 +PDEPEND="
105 + qt4? ( dev-python/qtconsole )
106 + smp? ( dev-python/ipyparallel[${PYTHON_USEDEP}] )"
107 +
108 +PATCHES=(
109 + "${FILESDIR}"/2.1.0-substitute-files.patch
110 + )
111 +
112 +DISTUTILS_IN_SOURCE_BUILD=1
113 +
114 +python_prepare_all() {
115 + # Remove out of date insource files
116 + rm IPython/extensions/cythonmagic.py || die
117 + rm IPython/extensions/rmagic.py || die
118 +
119 + # Prevent un-needed download during build
120 + if use doc; then
121 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
122 + fi
123 +
124 + distutils-r1_python_prepare_all
125 +}
126 +
127 +python_compile_all() {
128 + use doc && emake -C docs html_noapi
129 +}
130 +
131 +python_test() {
132 + distutils_install_for_testing
133 +
134 + pushd ${TEST_DIR} > /dev/null || die
135 + "${PYTHON}" -m IPython.testing.iptestcontroller --all || die
136 + popd > /dev/null || die
137 +}
138 +
139 +python_install() {
140 + distutils-r1_python_install
141 +
142 + # Create ipythonX.Y symlinks.
143 + # TODO:
144 + # 1. do we want them for pypy? No. pypy has no numpy
145 + # 2. handle it in the eclass instead (use _python_ln_rel).
146 + # With pypy not an option the dosym becomes unconditional
147 + dosym ../lib/python-exec/${EPYTHON}/ipython \
148 + /usr/bin/ipython${EPYTHON#python}
149 +}
150 +
151 +python_install_all() {
152 + use doc && local HTML_DOCS=( docs/build/html/. )
153 + distutils-r1_python_install_all
154 + if use examples; then
155 + insinto /usr/share/doc/${PF}/examples
156 + doins -r examples/.
157 + docompress -x /usr/share/doc/${PF}/examples
158 + fi
159 +}
160 +
161 +pkg_postinst() {
162 + optfeature "sympyprinting" dev-python/sympy
163 + optfeature "cythonmagic" dev-python/cython
164 + optfeature "%lprun magic command" dev-python/line_profiler
165 + optfeature "%mprun magic command" dev-python/memory_profiler
166 + if use nbconvert; then
167 + if ! has_version app-text/pandoc ; then
168 + einfo "Node.js will be used to convert notebooks to other formats"
169 + einfo "like HTML. Support for that is still experimental. If you"
170 + einfo "encounter any problems, please use app-text/pandoc instead."
171 + fi
172 + fi
173 +}