Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipython/
Date: Sat, 29 May 2021 08:06:57
Message-Id: 1622275605.1516805d9041cdef97c82849b225e7341e234b1a.mgorny@gentoo
1 commit: 1516805d9041cdef97c82849b225e7341e234b1a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 29 07:15:55 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 29 08:06:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1516805d
7
8 dev-python/ipython: Bump to 7.24.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ipython/Manifest | 1 +
13 dev-python/ipython/ipython-7.24.0.ebuild | 139 +++++++++++++++++++++++++++++++
14 2 files changed, 140 insertions(+)
15
16 diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest
17 index cbd1b6eaa3c..c906b9a3ff5 100644
18 --- a/dev-python/ipython/Manifest
19 +++ b/dev-python/ipython/Manifest
20 @@ -1,2 +1,3 @@
21 DIST ipython-7.22.0.tar.gz 5143229 BLAKE2B be78fc7089d620cb9ad437ed8154b37ac8c7cd68ca18a2569cfcf7ea9af968c58eeee18c8d18a1f26459ccef73e59083ac27055c19e4df254836e484ce0a9908 SHA512 2647dcd5e0d9b6afc8d990d2c099ad7ed581b5eff6d657630929e0d0d9f8965e7c7924c51a10a797e7d7406212d7a06c941c163e6f6046aa62130049a9bbc0d0
22 DIST ipython-7.23.1.tar.gz 5188898 BLAKE2B 9713b0f1f75e283e53ba19044c9919f0c4d0b1c120e63d7a79ab9c6b8783499ed115e86a24cab34fc13c46245fb43865b851e6f98a2ee729ee35c3db242fa2ba SHA512 9b35626a8a07c6bd0b93552341e5a61d3d90a60c72ad6e3fc71266d9509134366c46a7ae8aeca9c3acc7509dfeab47b5144f105cb3d1d05ef1c7acca6c2f365d
23 +DIST ipython-7.24.0.tar.gz 5146172 BLAKE2B 9d10eea9c329c78d7698adda999d746cdb305fad71ad521bd2f856590dd1e34010adfef045633bec07f8a6705201325815bbc254c23d74f0a17d73d2c3c060fe SHA512 67f6392b5448f1526da67577e8fa84958c99b3ac71c616c78a034e5c20cd06224134da45a8c3930a3779ce98ebc983bea2f237b5be7e8ba9d6fe97fde91a0608
24
25 diff --git a/dev-python/ipython/ipython-7.24.0.ebuild b/dev-python/ipython/ipython-7.24.0.ebuild
26 new file mode 100644
27 index 00000000000..c085c76819c
28 --- /dev/null
29 +++ b/dev-python/ipython/ipython-7.24.0.ebuild
30 @@ -0,0 +1,139 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DISTUTILS_USE_SETUPTOOLS=no
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +PYTHON_REQ_USE='readline,sqlite,threads(+)'
39 +
40 +inherit distutils-r1 optfeature virtualx
41 +
42 +DESCRIPTION="Advanced interactive shell for Python"
43 +HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
49 +IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + dev-python/backcall[${PYTHON_USEDEP}]
54 + dev-python/decorator[${PYTHON_USEDEP}]
55 + >=dev-python/jedi-0.16[${PYTHON_USEDEP}]
56 + >=dev-python/pexpect-4.3[${PYTHON_USEDEP}]
57 + dev-python/pickleshare[${PYTHON_USEDEP}]
58 + >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}]
59 + <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}]
60 + dev-python/pygments[${PYTHON_USEDEP}]
61 + dev-python/traitlets[${PYTHON_USEDEP}]
62 + matplotlib? (
63 + dev-python/matplotlib[${PYTHON_USEDEP}]
64 + dev-python/matplotlib-inline[${PYTHON_USEDEP}]
65 + )
66 +"
67 +
68 +BDEPEND="
69 + test? (
70 + app-text/dvipng[truetype]
71 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
72 + dev-python/matplotlib[${PYTHON_USEDEP}]
73 + dev-python/matplotlib-inline[${PYTHON_USEDEP}]
74 + dev-python/nbformat[${PYTHON_USEDEP}]
75 + dev-python/nose[${PYTHON_USEDEP}]
76 + >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
77 + dev-python/requests[${PYTHON_USEDEP}]
78 + dev-python/testpath[${PYTHON_USEDEP}]
79 + )
80 + doc? (
81 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
82 + dev-python/matplotlib[${PYTHON_USEDEP}]
83 + >=dev-python/sphinx-2[${PYTHON_USEDEP}]
84 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
85 + )"
86 +
87 +distutils_enable_tests pytest
88 +
89 +RDEPEND+="
90 + nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] )"
91 +PDEPEND="
92 + notebook? (
93 + dev-python/notebook[${PYTHON_USEDEP}]
94 + dev-python/ipywidgets[${PYTHON_USEDEP}]
95 + dev-python/widgetsnbextension[${PYTHON_USEDEP}]
96 + )
97 + qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
98 + smp? (
99 + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
100 + >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}]
101 + )"
102 +
103 +PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch )
104 +
105 +DISTUTILS_IN_SOURCE_BUILD=1
106 +
107 +python_prepare_all() {
108 + # Remove out of date insource files
109 + rm IPython/extensions/cythonmagic.py || die
110 + rm IPython/extensions/rmagic.py || die
111 +
112 + # Prevent un-needed download during build
113 + if use doc; then
114 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
115 + fi
116 +
117 + # Rename the test directory to reduce sys.path pollution
118 + # https://github.com/ipython/ipython/issues/12892
119 + mv IPython/extensions/{,ipython_}tests || die
120 +
121 + distutils-r1_python_prepare_all
122 +}
123 +
124 +python_compile_all() {
125 + if use doc; then
126 + emake -C docs html_noapi
127 + HTML_DOCS=( docs/build/html/. )
128 + fi
129 +}
130 +
131 +src_test() {
132 + virtx distutils-r1_src_test
133 +}
134 +
135 +python_install() {
136 + distutils-r1_python_install
137 +
138 + # Create ipythonX.Y symlinks.
139 + # TODO:
140 + # 1. do we want them for pypy? No. pypy has no numpy
141 + # 2. handle it in the eclass instead (use _python_ln_rel).
142 + # With pypy not an option the dosym becomes unconditional
143 + dosym ../lib/python-exec/${EPYTHON}/ipython \
144 + /usr/bin/ipython${EPYTHON#python}
145 +}
146 +
147 +python_install_all() {
148 + distutils-r1_python_install_all
149 +
150 + if use examples; then
151 + dodoc -r examples
152 + docompress -x /usr/share/doc/${PF}/examples
153 + fi
154 +}
155 +
156 +pkg_postinst() {
157 + optfeature "sympyprinting" dev-python/sympy
158 + optfeature "cythonmagic" dev-python/cython
159 + optfeature "%lprun magic command" dev-python/line_profiler
160 + optfeature "%mprun magic command" dev-python/memory_profiler
161 +
162 + if use nbconvert; then
163 + if ! has_version app-text/pandoc ; then
164 + einfo "Node.js will be used to convert notebooks to other formats"
165 + einfo "like HTML. Support for that is still experimental. If you"
166 + einfo "encounter any problems, please use app-text/pandoc instead."
167 + fi
168 + fi
169 +}