Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/ipython: ipython-2.3.1.ebuild ChangeLog
Date: Mon, 01 Dec 2014 08:36:36
Message-Id: 20141201083628.4D926B463@oystercatcher.gentoo.org
1 patrick 14/12/01 08:36:28
2
3 Modified: ChangeLog
4 Added: ipython-2.3.1.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.152 dev-python/ipython/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.152&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.152&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?r1=1.151&r2=1.152
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v
20 retrieving revision 1.151
21 retrieving revision 1.152
22 diff -u -r1.151 -r1.152
23 --- ChangeLog 1 Dec 2014 06:05:58 -0000 1.151
24 +++ ChangeLog 1 Dec 2014 08:36:28 -0000 1.152
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/ipython
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.151 2014/12/01 06:05:58 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.152 2014/12/01 08:36:28 patrick Exp $
30 +
31 +*ipython-2.3.1 (01 Dec 2014)
32 +
33 + 01 Dec 2014; Patrick Lauer <patrick@g.o> +ipython-2.3.1.ebuild:
34 + Bump
35
36 01 Dec 2014; Patrick Lauer <patrick@g.o> ipython-2.3.0.ebuild:
37 Fix dependencies for test phase
38
39
40
41 1.1 dev-python/ipython/ipython-2.3.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-2.3.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-2.3.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ipython-2.3.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-2.3.1.ebuild,v 1.1 2014/12/01 08:36:28 patrick Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
55 PYTHON_REQ_USE='readline,sqlite'
56
57 inherit distutils-r1 virtualx
58
59 DESCRIPTION="Advanced interactive shell for Python"
60 HOMEPAGE="http://ipython.org/"
61 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
62
63 LICENSE="BSD"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
66
67 IUSE="doc examples matplotlib mongodb notebook nbconvert octave qt4 +smp test wxwidgets"
68
69 PY2_USEDEP=$(python_gen_usedep python2_7)
70 CDEPEND="
71 dev-python/decorator[${PYTHON_USEDEP}]
72 dev-python/pexpect[${PYTHON_USEDEP}]
73 dev-python/setuptools[${PYTHON_USEDEP}]
74 dev-python/simplegeneric[${PYTHON_USEDEP}]
75 dev-python/pyparsing[${PYTHON_USEDEP}]
76 matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
77 mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
78 octave? ( dev-python/oct2py[${PYTHON_USEDEP}] )
79 smp? ( >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )
80 wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython[${PYTHON_USEDEP}]' python2_7) )"
81 RDEPEND="${CDEPEND}
82 notebook? (
83 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
84 dev-python/pygments[${PYTHON_USEDEP}]
85 >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}]
86 dev-python/jinja[${PYTHON_USEDEP}]
87 dev-libs/mathjax
88 )
89 nbconvert? (
90 >=app-text/pandoc-1.12.1
91 dev-python/pygments[${PYTHON_USEDEP}]
92 dev-python/sphinx[${PYTHON_USEDEP}]
93 dev-python/jinja[${PYTHON_USEDEP}]
94 )
95 qt4? ( || ( dev-python/PyQt4[${PYTHON_USEDEP}] dev-python/pyside[${PYTHON_USEDEP}] )
96 dev-python/pygments[${PYTHON_USEDEP}]
97 >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )"
98 DEPEND="${CDEPEND}
99 test? (
100 dev-python/nose[${PYTHON_USEDEP}]
101 dev-python/mock[${PY2_USEDEP}]
102 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
103 )
104 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
105 dev-python/numpydoc[${PYTHON_USEDEP}]
106 dev-python/nose[${PYTHON_USEDEP}]
107 dev-python/cython[${PYTHON_USEDEP}]
108 dev-python/rpy[${PYTHON_USEDEP}]
109 $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
110 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
111 )"
112
113 REQUIRED_USE="doc? ( matplotlib mongodb octave )"
114
115 PATCHES=( ${FILESDIR}/2.1.0-substitute-files.patch
116 ${FILESDIR}/2.1.0-disable-tests.patch )
117
118 DISTUTILS_IN_SOURCE_BUILD=1
119
120 python_prepare_all() {
121 # Remove out of date insource files
122 rm IPython/extensions/rmagic.py || die
123 rm IPython/extensions/octavemagic.py || die
124
125 # Prevent un-needed download during build
126 if use doc; then
127 sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
128 fi
129
130 distutils-r1_python_prepare_all
131 }
132
133 python_compile_all() {
134 use doc && emake -C docs html
135 }
136
137 src_test() {
138 # virtualx has trouble with parallel runs.
139 local DISTUTILS_NO_PARALLEL_BUILD=1
140 distutils-r1_src_test
141 }
142
143 python_test() {
144 distutils_install_for_testing
145 local fail
146 run_tests() {
147 pushd ${TEST_DIR} > /dev/null
148 "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
149 popd > /dev/null
150 }
151 VIRTUALX_COMMAND=run_tests virtualmake
152 [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
153 }
154
155 python_install() {
156 distutils-r1_python_install
157 ln -snf "${EPREFIX}"/usr/share/mathjax \
158 "${D}$(python_get_sitedir)"/IPython/html/static/mathjax || die
159
160 # Create ipythonX.Y symlinks.
161 # TODO:
162 # 1. do we want them for pypy? No. pypy has no numpy
163 # 2. handle it in the eclass instead (use _python_ln_rel).
164 # With pypy not an option the dosym becomes unconditional
165 dosym ../lib/python-exec/${EPYTHON}/ipython \
166 /usr/bin/ipython${EPYTHON#python}
167 }
168
169 python_install_all() {
170 use doc && local HTML_DOCS=( docs/build/html/. )
171 use examples && local EXAMPLES=( examples/. )
172 distutils-r1_python_install_all
173 }
174
175 pkg_postinst() {
176 elog "To enable sympyprinting, it's required to emerge sympy"
177 elog "To enable cythonmagic, it's required to emerge cython"
178 }