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/ipykernel/
Date: Tue, 07 Jun 2022 06:55:05
Message-Id: 1654584842.356caa587cb0a47ed37c04f43874bcf55e55e5cb.mgorny@gentoo
1 commit: 356caa587cb0a47ed37c04f43874bcf55e55e5cb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 7 05:28:01 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 7 06:54:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=356caa58
7
8 dev-python/ipykernel: Bump to 6.13.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ipykernel/Manifest | 1 +
13 dev-python/ipykernel/ipykernel-6.13.1.ebuild | 65 ++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest
17 index f3bbb00d6b69..041922566777 100644
18 --- a/dev-python/ipykernel/Manifest
19 +++ b/dev-python/ipykernel/Manifest
20 @@ -1 +1,2 @@
21 DIST ipykernel-6.13.0.tar.gz 131331 BLAKE2B 95a662b5ff6062fd8f6712a214b2bdcb227064acec145ebbb2ff7dfc0647ee9c486bbb560502e8ab6c5f74bb44c7715a1ee16f4b8cd2661b7a6e77206be7ab67 SHA512 6025a540d7ae08f637d2cc9a022805df54c11844c93d989be73a3a800fb0985ec56f2ce5d8ee940a5ce51d41b4d1f632131b25c1f5847cb51623c285c4944f39
22 +DIST ipykernel-6.13.1.tar.gz 134356 BLAKE2B 212449f5e49f05052e36b60abc94ccfd81dcf6c13948d2ba32373ffab59f009ac28c251f6b9a9f5412b3d9a0f1347a2352f2e61b831d5efd8d45663ca43b4fdf SHA512 be0f5cf4eab8cf38f20a96e6e59971988bfc03105525694787d4dbbd092e22efb5b955ef622e0c8bc87fb43f29b0f4dc8affa89b81cd2eb7b4d9c93f7b9c68e5
23
24 diff --git a/dev-python/ipykernel/ipykernel-6.13.1.ebuild b/dev-python/ipykernel/ipykernel-6.13.1.ebuild
25 new file mode 100644
26 index 000000000000..06e969aa4a9d
27 --- /dev/null
28 +++ b/dev-python/ipykernel/ipykernel-6.13.1.ebuild
29 @@ -0,0 +1,65 @@
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/traitlets-5.1.0[${PYTHON_USEDEP}]
53 + >=dev-python/jupyter_client-6.1.12[${PYTHON_USEDEP}]
54 + >=www-servers/tornado-6.1[${PYTHON_USEDEP}]
55 + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}]
56 + dev-python/psutil[${PYTHON_USEDEP}]
57 + dev-python/nest_asyncio[${PYTHON_USEDEP}]
58 + dev-python/packaging[${PYTHON_USEDEP}]
59 +"
60 +# RDEPEND seems specifically needed in BDEPEND, at least jupyter
61 +# bug #816486
62 +BDEPEND="
63 + ${RDEPEND}
64 + test? (
65 + dev-python/flaky[${PYTHON_USEDEP}]
66 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
67 + dev-python/ipyparallel[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +distutils_enable_tests pytest
72 +
73 +EPYTEST_DESELECT=(
74 + # TODO
75 + ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_pylab
76 + ipykernel/tests/test_debugger.py::test_attach_debug
77 + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines
78 + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint
79 + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint
80 + ipykernel/tests/test_debugger.py::test_set_breakpoints
81 + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint
82 +)
83 +
84 +src_prepare() {
85 + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
86 + distutils-r1_src_prepare
87 +}
88 +
89 +python_compile() {
90 + distutils-r1_python_compile
91 + # Use python3 in kernel.json configuration, bug #784764
92 + sed -i -e '/python3.[0-9]\+/s//python3/' \
93 + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die
94 +}