Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/ipython: ipython-3.0.0.ebuild ChangeLog ipython-2.3.1.ebuild ipython-2.3.0.ebuild ipython-1.1.0-r2.ebuild ipython-2.1.0.ebuild ipython-0.13.2.ebuild ipython-1.2.0.ebuild ipython-0.12-r1.ebuild ipython-1.1.0-r1.ebuild ipython-1.1.0.ebuild
Date: Sat, 28 Feb 2015 12:53:11
Message-Id: 20150228125304.3B34C12BC4@oystercatcher.gentoo.org
1 jlec 15/02/28 12:53:04
2
3 Modified: ChangeLog
4 Added: ipython-3.0.0.ebuild
5 Removed: ipython-2.3.1.ebuild ipython-2.3.0.ebuild
6 ipython-1.1.0-r2.ebuild ipython-2.1.0.ebuild
7 ipython-0.13.2.ebuild ipython-1.2.0.ebuild
8 ipython-0.12-r1.ebuild ipython-1.1.0-r1.ebuild
9 ipython-1.1.0.ebuild
10 Log:
11 Version Bump; drop old
12
13 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
14
15 Revision Changes Path
16 1.160 dev-python/ipython/ChangeLog
17
18 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.160&view=markup
19 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.160&content-type=text/plain
20 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?r1=1.159&r2=1.160
21
22 Index: ChangeLog
23 ===================================================================
24 RCS file: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v
25 retrieving revision 1.159
26 retrieving revision 1.160
27 diff -u -r1.159 -r1.160
28 --- ChangeLog 8 Feb 2015 23:24:05 -0000 1.159
29 +++ ChangeLog 28 Feb 2015 12:53:04 -0000 1.160
30 @@ -1,6 +1,14 @@
31 # ChangeLog for dev-python/ipython
32 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
33 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.159 2015/02/08 23:24:05 xarthisius Exp $
34 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.160 2015/02/28 12:53:04 jlec Exp $
35 +
36 +*ipython-3.0.0 (28 Feb 2015)
37 +
38 + 28 Feb 2015; Justin Lecher <jlec@g.o> +ipython-3.0.0.ebuild,
39 + -ipython-0.12-r1.ebuild, -ipython-0.13.2.ebuild, -ipython-1.1.0-r1.ebuild,
40 + -ipython-1.1.0-r2.ebuild, -ipython-1.1.0.ebuild, -ipython-1.2.0.ebuild,
41 + -ipython-2.1.0.ebuild, -ipython-2.3.0.ebuild, -ipython-2.3.1.ebuild:
42 + Version Bump; drop old
43
44 08 Feb 2015; Kacper Kowalik <xarthisius@g.o> ipython-2.4.0.ebuild:
45 Simplify check if pandoc is installed. Thanks to Arfrever for a suggestion
46
47
48
49 1.1 dev-python/ipython/ipython-3.0.0.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-3.0.0.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-3.0.0.ebuild?rev=1.1&content-type=text/plain
53
54 Index: ipython-3.0.0.ebuild
55 ===================================================================
56 # Copyright 1999-2015 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-3.0.0.ebuild,v 1.1 2015/02/28 12:53:04 jlec Exp $
59
60 EAPI=5
61
62 PYTHON_COMPAT=( python2_7 python3_{3,4} )
63 PYTHON_REQ_USE='readline,sqlite'
64
65 inherit distutils-r1 eutils virtualx
66
67 DESCRIPTION="Advanced interactive shell for Python"
68 HOMEPAGE="http://ipython.org/"
69 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
70
71 LICENSE="BSD"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
74 IUSE="doc examples matplotlib mongodb notebook nbconvert octave qt4 +smp test wxwidgets"
75
76 PY2_USEDEP=$(python_gen_usedep python2_7)
77 CDEPEND="
78 dev-python/decorator[${PYTHON_USEDEP}]
79 dev-python/pexpect[${PYTHON_USEDEP}]
80 dev-python/pyparsing[${PYTHON_USEDEP}]
81 dev-python/setuptools[${PYTHON_USEDEP}]
82 dev-python/simplegeneric[${PYTHON_USEDEP}]
83 matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
84 mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
85 octave? ( dev-python/oct2py[${PYTHON_USEDEP}] )
86 smp? ( >=dev-python/pyzmq-13[${PYTHON_USEDEP}] )
87 wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython[${PYTHON_USEDEP}]' python2_7) )"
88 RDEPEND="${CDEPEND}
89 notebook? (
90 dev-libs/mathjax
91 dev-python/jinja[${PYTHON_USEDEP}]
92 dev-python/jsonschema[${PYTHON_USEDEP}]
93 >=dev-python/mistune-0.5[${PYTHON_USEDEP}]
94 dev-python/pygments[${PYTHON_USEDEP}]
95 >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}]
96 >=dev-python/terminado-0.3.3[${PYTHON_USEDEP}]
97 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
98 )
99 nbconvert? (
100 || ( >=net-libs/nodejs-0.9.12 >=app-text/pandoc-1.12.1 )
101 dev-python/jinja[${PYTHON_USEDEP}]
102 dev-python/jsonschema[${PYTHON_USEDEP}]
103 >=dev-python/mistune-0.5[${PYTHON_USEDEP}]
104 dev-python/pygments[${PYTHON_USEDEP}]
105 dev-python/sphinx[${PYTHON_USEDEP}]
106 )
107 qt4? (
108 || ( dev-python/PyQt4[${PYTHON_USEDEP}] dev-python/pyside[${PYTHON_USEDEP}] )
109 dev-python/pygments[${PYTHON_USEDEP}]
110 >=dev-python/pyzmq-13[${PYTHON_USEDEP}] )"
111 DEPEND="${CDEPEND}
112 test? (
113 dev-python/jinja[${PYTHON_USEDEP}]
114 dev-python/mock[${PY2_USEDEP}]
115 >=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
116 dev-python/requests[${PYTHON_USEDEP}]
117 dev-python/sphinx[${PYTHON_USEDEP}]
118 >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
119 )
120 doc? (
121 dev-python/cython[${PYTHON_USEDEP}]
122 $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
123 >=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
124 dev-python/numpydoc[${PYTHON_USEDEP}]
125 dev-python/rpy[${PYTHON_USEDEP}]
126 >=dev-python/sphinx-1.1[${PYTHON_USEDEP}]
127 >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
128 )"
129
130 REQUIRED_USE="doc? ( matplotlib mongodb octave )"
131
132 PATCHES=(
133 "${FILESDIR}"/2.1.0-substitute-files.patch
134 )
135
136 DISTUTILS_IN_SOURCE_BUILD=1
137
138 python_prepare_all() {
139 # Remove out of date insource files
140 rm IPython/extensions/rmagic.py || die
141
142 # Prevent un-needed download during build
143 if use doc; then
144 sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
145 fi
146
147 distutils-r1_python_prepare_all
148 }
149
150 python_compile_all() {
151 use doc && emake -C docs html
152 }
153
154 src_test() {
155 # virtualx has trouble with parallel runs.
156 local DISTUTILS_NO_PARALLEL_BUILD=1
157 distutils-r1_src_test
158 }
159
160 python_test() {
161 distutils_install_for_testing
162 local fail
163 run_tests() {
164 pushd ${TEST_DIR} > /dev/null
165 "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
166 popd > /dev/null
167 }
168 VIRTUALX_COMMAND=run_tests virtualmake
169 [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
170 }
171
172 python_install() {
173 distutils-r1_python_install
174 ln -snf "${EPREFIX}"/usr/share/mathjax \
175 "${D}$(python_get_sitedir)"/IPython/html/static/mathjax || die
176
177 # Create ipythonX.Y symlinks.
178 # TODO:
179 # 1. do we want them for pypy? No. pypy has no numpy
180 # 2. handle it in the eclass instead (use _python_ln_rel).
181 # With pypy not an option the dosym becomes unconditional
182 dosym ../lib/python-exec/${EPYTHON}/ipython \
183 /usr/bin/ipython${EPYTHON#python}
184 }
185
186 python_install_all() {
187 use doc && local HTML_DOCS=( docs/build/html/. )
188 use examples && local EXAMPLES=( examples/. )
189 distutils-r1_python_install_all
190 }
191
192 pkg_postinst() {
193 optfeature "sympyprinting" dev-python/sympy
194 optfeature "cythonmagic" dev-python/cython
195 if use nbconvert; then
196 if ! has_version app-text/pandoc ; then
197 einfo "Node.js will be used to convert notebooks to other formats"
198 einfo "like HTML. Support for that is still experimental. If you"
199 einfo "encounter any problems, please use app-text/pandoc instead."
200 fi
201 fi
202 }