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: Sat, 04 Jun 2016 08:24:50
Message-Id: 1465028619.6499a53dcfe5e681083caadd1c45e9dc40c4dbff.soap@gentoo
1 commit: 6499a53dcfe5e681083caadd1c45e9dc40c4dbff
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Tue May 31 08:51:34 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 08:23:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6499a53d
7
8 dev-python/ipython: Version bump to 4.2.0
9
10 Package-Manager: portage-2.2.28
11 Closes: https://github.com/gentoo/gentoo/pull/1571
12
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 dev-python/ipython/Manifest | 1 +
16 dev-python/ipython/ipython-4.2.0.ebuild | 142 ++++++++++++++++++++++++++++++++
17 2 files changed, 143 insertions(+)
18
19 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
20 index 10ce4dd..690baed 100644
21 --- a/dev-python/ipython/Manifest
22 +++ b/dev-python/ipython/Manifest
23 @@ -3,3 +3,4 @@ DIST ipython-4.0.1.tar.gz 6207566 SHA256 3bd3b78abc4f43b9ea7fa5353a2a9ba01af8ac4
24 DIST ipython-4.0.3.tar.gz 6207899 SHA256 3a928f59e8ac8dd97858c28390867c87c09510f1f8bbe97e4e9c6b036eb84fc0 SHA512 1e2deb597348757e69aaeadd0632cf984056e5f7278ee5bbbd7b4233581323b07f55685b1891c23dc0977d9f30f7dc734dcf2216bc8876424cdb0f7a9294fecf WHIRLPOOL 1beb60e6daf3cea4609318e87a07307843eeb1002847f8c3c5fbe8e114ab29cb052c810884b410f1e8414437b91c5335048106756e2d88a82a7e440e3ff8fc17
25 DIST ipython-4.1.1.tar.gz 4938684 SHA256 1cb340dfdf6ec306b9ded72071742c87fa5247929db7ab704e17defe1975e38f SHA512 ccb24a6d3de5f12a21225387e46ad1b1038910d51d8c0aeb1f4ad6d24751b300295548083f60f3eadec3f29c75370644638b30e6ce391d13f900454e8b3d60a5 WHIRLPOOL f041d10747d4919566a0119e25bfd9030d6213021ecd222bad9e456a7cb3505ee5d3ffc7fe0de5aa1080453565245c3e95cb774df0746f7d4a13b51067bc53b9
26 DIST ipython-4.1.2.tar.gz 4953949 SHA256 052f9692a227f285febecec856d749811ac6a20b32c7629b4de31f04ea701692 SHA512 2a28a82cbc5d11cb1f1c88e452f52dbc6b196ac12d46cdec1f35d49e7f97aa8ee5c2a90a6f02f072297c4ef17f84a4454100a4b2594968ec46995c4fd459c09b WHIRLPOOL 1ae1fb4a88d9fd73c93ce096cdb4754d3153e156d87760b48825a2af3ec7eec3d3232b2b0f59f5fce94fb4e14b8c51361781527d9f5320a336ed786fc339567f
27 +DIST ipython-4.2.0.tar.gz 4935042 SHA256 dba42f182b5f6f26630d2202efd30383712d9f7d8d8d9896b37ae2145deca616 SHA512 01c931a9745af7d43d174b761b506b78840ac9484007741665ff3d4a448131384194869552957353d07beb35e29187743353002c7c0a31f3b336f3b01a64a323 WHIRLPOOL 62468bef537d7533eaf9c89106bd7587dae70c921d623374c0ea796262e304cbf53020375c1876ebefb8b42e7d896b8b071afbcd5e1c710dac4a0a00783f3d82
28
29 diff --git a/dev-python/ipython/ipython-4.2.0.ebuild b/dev-python/ipython/ipython-4.2.0.ebuild
30 new file mode 100644
31 index 0000000..8d0e448
32 --- /dev/null
33 +++ b/dev-python/ipython/ipython-4.2.0.ebuild
34 @@ -0,0 +1,142 @@
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_{3,4,5} )
42 +PYTHON_REQ_USE='readline,sqlite,threads(+)'
43 +
44 +inherit distutils-r1 eutils virtualx
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 ~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.0[${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 + test? (
80 + app-text/dvipng
81 + dev-python/jinja[${PYTHON_USEDEP}]
82 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
83 + >=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
84 + dev-python/pygments[${PYTHON_USEDEP}]
85 + dev-python/requests[${PYTHON_USEDEP}]
86 + dev-python/sphinx[${PYTHON_USEDEP}]
87 + dev-python/testpath[${PYTHON_USEDEP}]
88 + >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
89 + x11-base/xorg-server[xvfb]
90 + )
91 + doc? (
92 + dev-python/cython[${PYTHON_USEDEP}]
93 + $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
94 + >=dev-python/jsonschema-2.0[${PYTHON_USEDEP}]
95 + dev-python/matplotlib[${PYTHON_USEDEP}]
96 + >=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
97 + dev-python/rpy[${PYTHON_USEDEP}]
98 + >=dev-python/sphinx-1.3[${PYTHON_USEDEP}]
99 + >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
100 + )"
101 +
102 +PDEPEND="
103 + qt4? ( dev-python/qtconsole )
104 + smp? ( dev-python/ipyparallel[${PYTHON_USEDEP}] )"
105 +
106 +PATCHES=(
107 + "${FILESDIR}"/2.1.0-substitute-files.patch
108 + )
109 +
110 +DISTUTILS_IN_SOURCE_BUILD=1
111 +
112 +python_prepare_all() {
113 + # Remove out of date insource files
114 + rm IPython/extensions/rmagic.py || die
115 +
116 + # Prevent un-needed download during build
117 + if use doc; then
118 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
119 + fi
120 +
121 + distutils-r1_python_prepare_all
122 +}
123 +
124 +python_compile_all() {
125 + use doc && emake -C docs html_noapi
126 +}
127 +
128 +python_test() {
129 + distutils_install_for_testing
130 + # https://github.com/ipython/ipython/issues/8639
131 + # Failure of some modules only in python3.4
132 + local fail
133 + run_tests() {
134 + pushd ${TEST_DIR} > /dev/null || die
135 + "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
136 + popd > /dev/null || die
137 + }
138 + virtx run_tests
139 + [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
140 +}
141 +
142 +python_install() {
143 + distutils-r1_python_install
144 +
145 + # Create ipythonX.Y symlinks.
146 + # TODO:
147 + # 1. do we want them for pypy? No. pypy has no numpy
148 + # 2. handle it in the eclass instead (use _python_ln_rel).
149 + # With pypy not an option the dosym becomes unconditional
150 + dosym ../lib/python-exec/${EPYTHON}/ipython \
151 + /usr/bin/ipython${EPYTHON#python}
152 +}
153 +
154 +python_install_all() {
155 + use doc && local HTML_DOCS=( docs/build/html/. )
156 + distutils-r1_python_install_all
157 + if use examples; then
158 + insinto /usr/share/doc/${PF}/examples
159 + doins -r examples/.
160 + docompress -x /usr/share/doc/${PF}/examples
161 + fi
162 +}
163 +
164 +pkg_postinst() {
165 + optfeature "sympyprinting" dev-python/sympy
166 + optfeature "cythonmagic" dev-python/cython
167 + optfeature "%lprun magic command" dev-python/line_profiler
168 + optfeature "%mprun magic command" dev-python/memory_profiler
169 + if use nbconvert; then
170 + if ! has_version app-text/pandoc ; then
171 + einfo "Node.js will be used to convert notebooks to other formats"
172 + einfo "like HTML. Support for that is still experimental. If you"
173 + einfo "encounter any problems, please use app-text/pandoc instead."
174 + fi
175 + fi
176 +}