Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipython/, dev-python/ipython/files/
Date: Sat, 10 Oct 2015 15:49:07
Message-Id: 1444492122.664e0d0f43e4f3ddc8033a3b6a3d6d57d0590425.jlec@gentoo
1 commit: 664e0d0f43e4f3ddc8033a3b6a3d6d57d0590425
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 15:48:42 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 15:48:42 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=664e0d0f
7
8 dev-python/ipython: Drop vulnerable version (CVE-2015-5607, CVE-2015-7337)
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=554868
11 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=560708
12
13 Package-Manager: portage-2.2.23
14 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
15
16 dev-python/ipython/Manifest | 1 -
17 dev-python/ipython/files/2.1.0-disable-tests.patch | 32 -----
18 dev-python/ipython/ipython-2.2.0-r1.ebuild | 137 ---------------------
19 3 files changed, 170 deletions(-)
20
21 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
22 index a7ca2e2..49d8b3f 100644
23 --- a/dev-python/ipython/Manifest
24 +++ b/dev-python/ipython/Manifest
25 @@ -1,2 +1 @@
26 -DIST ipython-2.2.0.tar.gz 11912007 SHA256 b7ca77ba54a02f032055b73f5f62b01431f818ae00f63716b78f881c2b2564e2 SHA512 4953bf5e9d6d5c6ad538d07d62b5b100fd86a37f6b861238501581c0059bd4655345ca05cf395e79709c38ce4cb9c6293f5d11ac0252a618ad8272b161140d13 WHIRLPOOL a5e433a3a840b65fd0644f023cc9e93862e48a906e4e9d1596ebbd24290d486be580dca017ef1586da980b6792dcd7ed9aab4af81421bbf083d885927db6fcc8
27 DIST ipython-3.2.1.tar.gz 10884249 SHA256 c913adee7ae5b338055274c51a7d2b3cea468b5b316046fa520cd8a434b09177 SHA512 de7723e3b859d21a58a24456c76c8d8ec98c019f290f61269f46270e7647d2b49a98671138fecd75cb6f46384fde7e09618eb5c85c175e0e442c7fae7328d8fe WHIRLPOOL 9f020c167559259931dcb177d0c3a5211939632e5775c2627795ba390cf57bd62c378c15b7ee9b9ed2079180f8df8e062eb9673ed9cfc025a56f1da82c9428d1
28
29 diff --git a/dev-python/ipython/files/2.1.0-disable-tests.patch b/dev-python/ipython/files/2.1.0-disable-tests.patch
30 deleted file mode 100644
31 index bdbb1be..0000000
32 --- a/dev-python/ipython/files/2.1.0-disable-tests.patch
33 +++ /dev/null
34 @@ -1,32 +0,0 @@
35 -The extension magics for oct2py and rpy live now in the oct2py and rpy2 package. The tests shipped with ipython are broken. We should disable
36 -those tests and remove the magics files:
37 -
38 -IPython/extensions/rmagic.py -> rpy/ipython/rmagic.py
39 -IPython/extension/octavemagic.py -> oct2py/ipython/octavemagic.py
40 -
41 -deleted: IPython/extensions/octavemagic.py
42 -deleted: IPython/extensions/rmagic.py
43 -modified: IPython/testing/iptest.py
44 -
45 -diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py
46 -index 45d2c78..db0bdfe 100644
47 ---- a/IPython/testing/iptest.py
48 -+++ b/IPython/testing/iptest.py
49 -@@ -250,12 +250,10 @@ sec = test_sections['extensions']
50 - if not have['cython']:
51 - sec.exclude('cythonmagic')
52 - sec.exclude('tests.test_cythonmagic')
53 --if not have['oct2py']:
54 -- sec.exclude('octavemagic')
55 -- sec.exclude('tests.test_octavemagic')
56 --if not have['rpy2'] or not have['numpy']:
57 -- sec.exclude('rmagic')
58 -- sec.exclude('tests.test_rmagic')
59 -+sec.exclude('octavemagic')
60 -+sec.exclude('tests.test_octavemagic')
61 -+sec.exclude('rmagic')
62 -+sec.exclude('tests.test_rmagic')
63 - # autoreload does some strange stuff, so move it to its own test section
64 - sec.exclude('autoreload')
65 - sec.exclude('tests.test_autoreload')
66 -
67
68 diff --git a/dev-python/ipython/ipython-2.2.0-r1.ebuild b/dev-python/ipython/ipython-2.2.0-r1.ebuild
69 deleted file mode 100644
70 index 62c6f8e..0000000
71 --- a/dev-python/ipython/ipython-2.2.0-r1.ebuild
72 +++ /dev/null
73 @@ -1,137 +0,0 @@
74 -# Copyright 1999-2015 Gentoo Foundation
75 -# Distributed under the terms of the GNU General Public License v2
76 -# $Id$
77 -
78 -EAPI=5
79 -
80 -PYTHON_COMPAT=( python2_7 python3_{3,4} )
81 -PYTHON_REQ_USE='readline,sqlite'
82 -
83 -inherit distutils-r1 virtualx
84 -
85 -DESCRIPTION="Advanced interactive shell for Python"
86 -HOMEPAGE="http://ipython.org/"
87 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
88 -
89 -LICENSE="BSD"
90 -SLOT="0"
91 -KEYWORDS="amd64 arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
92 -
93 -IUSE="doc examples matplotlib mongodb notebook nbconvert octave qt4 +smp test wxwidgets"
94 -
95 -PY2_USEDEP=$(python_gen_usedep python2_7)
96 -CDEPEND="
97 - dev-python/decorator[${PYTHON_USEDEP}]
98 - dev-python/pexpect[${PYTHON_USEDEP}]
99 - dev-python/pyparsing[${PYTHON_USEDEP}]
100 - dev-python/simplegeneric[${PYTHON_USEDEP}]
101 - matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
102 - mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
103 - octave? ( dev-python/oct2py[${PYTHON_USEDEP}] )
104 - smp? ( >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )
105 - wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython:*[${PYTHON_USEDEP}]' python2_7) )"
106 -RDEPEND="${CDEPEND}
107 - notebook? (
108 - >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
109 - dev-python/pygments[${PYTHON_USEDEP}]
110 - >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}]
111 - dev-python/jinja[${PYTHON_USEDEP}]
112 - dev-libs/mathjax
113 - )
114 - nbconvert? (
115 - >=app-text/pandoc-1.12.1
116 - dev-python/pygments[${PYTHON_USEDEP}]
117 - dev-python/sphinx[${PYTHON_USEDEP}]
118 - dev-python/jinja[${PYTHON_USEDEP}]
119 - )
120 - qt4? (
121 - || (
122 - dev-python/PyQt4[${PYTHON_USEDEP}]
123 - dev-python/pyside[${PYTHON_USEDEP}]
124 - )
125 - dev-python/pygments[${PYTHON_USEDEP}]
126 - >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )"
127 -DEPEND="${CDEPEND}
128 - dev-python/setuptools[${PYTHON_USEDEP}]
129 - test? (
130 - dev-python/nose[${PYTHON_USEDEP}]
131 - dev-python/mock[${PY2_USEDEP}]
132 - )
133 - doc? (
134 - dev-python/cython[${PYTHON_USEDEP}]
135 - $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
136 - dev-python/matplotlib[${PYTHON_USEDEP}]
137 - dev-python/nose[${PYTHON_USEDEP}]
138 - dev-python/numpydoc[${PYTHON_USEDEP}]
139 - dev-python/pymongo[${PYTHON_USEDEP}]
140 - dev-python/rpy[${PYTHON_USEDEP}]
141 - dev-python/sphinx[${PYTHON_USEDEP}]
142 - >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
143 - )"
144 -
145 -PATCHES=(
146 - "${FILESDIR}"/2.1.0-substitute-files.patch
147 - "${FILESDIR}"/2.1.0-disable-tests.patch
148 - "${FILESDIR}"/${P}-login-backport.patch
149 - )
150 -
151 -DISTUTILS_IN_SOURCE_BUILD=1
152 -
153 -python_prepare_all() {
154 - # Remove out of date insource files
155 - rm IPython/extensions/rmagic.py || die
156 - rm IPython/extensions/octavemagic.py || die
157 -
158 - # Prevent un-needed download during build
159 - if use doc; then
160 - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
161 - fi
162 -
163 - distutils-r1_python_prepare_all
164 -}
165 -
166 -python_compile_all() {
167 - use doc && emake -C docs html
168 -}
169 -
170 -src_test() {
171 - # virtualx has trouble with parallel runs.
172 - local DISTUTILS_NO_PARALLEL_BUILD=1
173 - distutils-r1_src_test
174 -}
175 -
176 -python_test() {
177 - distutils_install_for_testing
178 - local fail
179 - run_tests() {
180 - pushd ${TEST_DIR} > /dev/null
181 - "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
182 - popd > /dev/null
183 - }
184 - VIRTUALX_COMMAND=run_tests virtualmake
185 - [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
186 -}
187 -
188 -python_install() {
189 - distutils-r1_python_install
190 - use notebook && dosym /usr/share/mathjax $(python_get_sitedir)/IPython/html/static/mathjax
191 -
192 - # Create ipythonX.Y symlinks.
193 - # TODO:
194 - # 1. do we want them for pypy? No. pypy has no numpy
195 - # 2. handle it in the eclass instead (use _python_ln_rel).
196 - # With pypy not an option the dosym becomes unconditional
197 - dosym ../lib/python-exec/${EPYTHON}/ipython \
198 - /usr/bin/ipython${EPYTHON#python}
199 -}
200 -
201 -python_install_all() {
202 - use doc && local HTML_DOCS=( docs/build/html/. )
203 - use examples && local EXAMPLES=( examples/. )
204 - distutils-r1_python_install_all
205 -}
206 -
207 -pkg_postinst() {
208 - elog "To enable sympyprinting, it's required to emerge sympy"
209 - elog "To enable cythonmagic, it's required to emerge cython"
210 -}