commit:     730e3249f7e37c2d58aeb095b4a22d5f9b51e469
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 12 19:27:32 2017 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Jul 12 19:28:47 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=730e3249

dev-python/ipython: version bump

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-python/ipython/Manifest             |   1 +
 dev-python/ipython/ipython-5.4.1.ebuild | 128 ++++++++++++++++++++++++++++++++
 2 files changed, 129 insertions(+)

diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
index 6dd80614e55..d0d26013f90 100644
--- a/dev-python/ipython/Manifest
+++ b/dev-python/ipython/Manifest
@@ -1,2 +1,3 @@
 DIST ipython-3.2.1.tar.gz 10884249 SHA256 
c913adee7ae5b338055274c51a7d2b3cea468b5b316046fa520cd8a434b09177 SHA512 
de7723e3b859d21a58a24456c76c8d8ec98c019f290f61269f46270e7647d2b49a98671138fecd75cb6f46384fde7e09618eb5c85c175e0e442c7fae7328d8fe
 WHIRLPOOL 
9f020c167559259931dcb177d0c3a5211939632e5775c2627795ba390cf57bd62c378c15b7ee9b9ed2079180f8df8e062eb9673ed9cfc025a56f1da82c9428d1
 DIST ipython-5.3.0.tar.gz 4967956 SHA256 
bf5e615e7d96dac5a61fbf98d9e2926d98aa55582681bea7e9382992a3f43c1d SHA512 
41706d7521cc84f36f5580dc44cd91832a60aa8a7a946d15a9ec9563649b9ae97931b9f135f1fdbaecbcb0b9b925d467edfd6eec7f8c82309872047be77b598d
 WHIRLPOOL 
96478b15fd4928d11da35dbbaba6492ff12cf739c06b6f9cf8fdd827060baf5c07d093c3e340792b62102f85ada0b6ea29adc742b784ad21e5292cde09a6fa25
+DIST ipython-5.4.1.tar.gz 4973571 SHA256 
afaa92343c20cf4296728161521d84f606d8817f963beaf7198e63dfede897fb SHA512 
b37dae27a558585ec4f42fa22e86380ac81990207ec680fc7b0e6f97ac81c99d915cfe77488bc0b91a61c34e0c00b323df08aa06b142ce0fc88ce30203102907
 WHIRLPOOL 
e91e719a681c29e8ecd3e08ade470adcefb957ffddfa601f89306c19b6f6e80fa793a603948fb9fd697884474f2559ece30456be27d9034448cb618217a8cfa1

diff --git a/dev-python/ipython/ipython-5.4.1.ebuild 
b/dev-python/ipython/ipython-5.4.1.ebuild
new file mode 100644
index 00000000000..25d5da759d3
--- /dev/null
+++ b/dev-python/ipython/ipython-5.4.1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE='readline,sqlite,threads(+)'
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Advanced interactive shell for Python"
+HOMEPAGE="http://ipython.org/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples matplotlib notebook nbconvert qt4 qt5 +smp test wxwidgets"
+
+CDEPEND="
+       dev-python/decorator[${PYTHON_USEDEP}]
+       >=dev-python/jedi-0.10.0[${PYTHON_USEDEP}]
+       dev-python/pexpect[${PYTHON_USEDEP}]
+       dev-python/pickleshare[${PYTHON_USEDEP}]
+       >=dev-python/prompt_toolkit-1.0.4[${PYTHON_USEDEP}]
+       dev-python/pyparsing[${PYTHON_USEDEP}]
+       dev-python/simplegeneric[${PYTHON_USEDEP}]
+       >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}]
+       matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
+       wxwidgets? ( $(python_gen_cond_dep 
'dev-python/wxpython:*[${PYTHON_USEDEP}]' 'python2*') )
+"
+
+RDEPEND="${CDEPEND}
+       virtual/python-pathlib[${PYTHON_USEDEP}]
+       notebook? (
+               dev-python/notebook[${PYTHON_USEDEP}]
+               dev-python/ipywidgets[${PYTHON_USEDEP}]
+       )
+       nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] )"
+DEPEND="${CDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep \
+               
'dev-python/backports-shutil_get_terminal_size[${PYTHON_USEDEP}]' 'python2*')
+       dev-python/typing[${PYTHON_USEDEP}]
+       test? (
+               dev-python/ipykernel[${PYTHON_USEDEP}]
+               dev-python/nbformat[${PYTHON_USEDEP}]
+               dev-python/nose[${PYTHON_USEDEP}]
+               dev-python/pygments[${PYTHON_USEDEP}]
+               dev-python/requests[${PYTHON_USEDEP}]
+               dev-python/testpath[${PYTHON_USEDEP}]
+       )
+       doc? (
+               dev-python/ipykernel[${PYTHON_USEDEP}]
+               dev-python/sphinx[${PYTHON_USEDEP}]
+       )"
+
+PDEPEND="
+       qt4? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
+       qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
+       smp? ( dev-python/ipyparallel[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch )
+
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_prepare_all() {
+       # Remove out of date insource files
+       rm IPython/extensions/cythonmagic.py || die
+       rm IPython/extensions/rmagic.py || die
+
+       # Prevent un-needed download during build
+       if use doc; then
+               sed -e "/^    'sphinx.ext.intersphinx',/d" -i 
docs/source/conf.py || die
+       fi
+
+       distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+       if use doc; then
+               emake -C docs html_noapi
+               HTML_DOCS=( docs/build/html/. )
+       fi
+}
+
+python_test() {
+       distutils_install_for_testing
+       pushd "${TEST_DIR}" >/dev/null || die
+       "${TEST_DIR}"/scripts/iptest || die
+       popd >/dev/null || die
+}
+
+python_install() {
+       distutils-r1_python_install
+
+       # Create ipythonX.Y symlinks.
+       # TODO:
+       # 1. do we want them for pypy? No.  pypy has no numpy
+       # 2. handle it in the eclass instead (use _python_ln_rel).
+       # With pypy not an option the dosym becomes unconditional
+       dosym ../$(get_libdir)/python-exec/${EPYTHON}/ipython \
+               /usr/bin/ipython${EPYTHON#python}
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}
+
+pkg_postinst() {
+       optfeature "sympyprinting" dev-python/sympy
+       optfeature "cythonmagic" dev-python/cython
+       optfeature "%lprun magic command" dev-python/line_profiler
+       optfeature "%mprun magic command" dev-python/memory_profiler
+
+       if use nbconvert; then
+               if ! has_version app-text/pandoc ; then
+                       einfo "Node.js will be used to convert notebooks to 
other formats"
+                       einfo "like HTML. Support for that is still 
experimental. If you"
+                       einfo "encounter any problems, please use 
app-text/pandoc instead."
+               fi
+       fi
+}

Reply via email to