Gentoo Archives: gentoo-commits

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