Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipykernel/
Date: Mon, 29 Aug 2022 18:04:53
Message-Id: 1661795788.5939653beff99e7d7a9fc04492eac01b930b10e1.arthurzam@gentoo
1 commit: 5939653beff99e7d7a9fc04492eac01b930b10e1
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 17:56:28 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 17:56:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5939653b
7
8 dev-python/ipykernel: add 6.15.2
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/ipykernel/Manifest | 1 +
13 dev-python/ipykernel/ipykernel-6.15.2.ebuild | 66 ++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest
17 index 95dc098ddd8e..aa487bec888b 100644
18 --- a/dev-python/ipykernel/Manifest
19 +++ b/dev-python/ipykernel/Manifest
20 @@ -1 +1,2 @@
21 DIST ipykernel-6.15.1.tar.gz 133140 BLAKE2B 7d63b55f2b8d883234258106b8239cf77031336ce6e7e38234490a031fc4a56861788210fdb2acd0f895e4df43257b0339ef1592e12d33b441e4ba9061acbd08 SHA512 10f2390a4edafea89fcc049d5e07ef542418a3a7b076efec1f02bc0a787e01280624cc543bb60604478cae63b58a86d031b549a6f872c7a8530043d670dbdc0e
22 +DIST ipykernel-6.15.2.tar.gz 133297 BLAKE2B 05b92074dba2324a2bbbe58fb459f455e47236fcbed711b63c3bfd83978b1e80a7fe079c08fbfb031d9f182d2b24a265705f6540b6c87ee933b641beaee53f9d SHA512 14f1f819d67f16e9c5ea5705ce9c1827bd1ae44f742ca809c4402ef64b229e902f9a724c0609cbf225da595f4ed48cd14348f3c887d70bc18c4b017ec01de720
23
24 diff --git a/dev-python/ipykernel/ipykernel-6.15.2.ebuild b/dev-python/ipykernel/ipykernel-6.15.2.ebuild
25 new file mode 100644
26 index 000000000000..5526cde6276c
27 --- /dev/null
28 +++ b/dev-python/ipykernel/ipykernel-6.15.2.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=hatchling
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +PYTHON_REQ_USE="threads(+)"
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="IPython Kernel for Jupyter"
42 +HOMEPAGE="https://github.com/ipython/ipykernel"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
48 +
49 +RDEPEND="
50 + >=dev-python/debugpy-1.0[${PYTHON_USEDEP}]
51 + >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}]
52 + >=dev-python/jupyter_client-6.1.12[${PYTHON_USEDEP}]
53 + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}]
54 + dev-python/nest_asyncio[${PYTHON_USEDEP}]
55 + dev-python/packaging[${PYTHON_USEDEP}]
56 + dev-python/psutil[${PYTHON_USEDEP}]
57 + >=dev-python/pyzmq-17[${PYTHON_USEDEP}]
58 + >=dev-python/traitlets-5.1.0[${PYTHON_USEDEP}]
59 + >=www-servers/tornado-6.1[${PYTHON_USEDEP}]
60 +"
61 +# RDEPEND seems specifically needed in BDEPEND, at least jupyter
62 +# bug #816486
63 +BDEPEND="
64 + ${RDEPEND}
65 + test? (
66 + dev-python/flaky[${PYTHON_USEDEP}]
67 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
68 + dev-python/ipyparallel[${PYTHON_USEDEP}]
69 + )
70 +"
71 +
72 +distutils_enable_tests pytest
73 +
74 +EPYTEST_DESELECT=(
75 + # TODO
76 + ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_pylab
77 + ipykernel/tests/test_debugger.py::test_attach_debug
78 + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines
79 + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint
80 + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint
81 + ipykernel/tests/test_debugger.py::test_set_breakpoints
82 + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint
83 +)
84 +
85 +src_prepare() {
86 + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
87 + distutils-r1_src_prepare
88 +}
89 +
90 +python_compile() {
91 + distutils-r1_python_compile
92 + # Use python3 in kernel.json configuration, bug #784764
93 + sed -i -e '/python3.[0-9]\+/s//python3/' \
94 + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die
95 +}