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, 05 Apr 2022 07:53:09
Message-Id: 1649145179.5d04cbfec308298fcb530a293e3cc32576482481.mgorny@gentoo
1 commit: 5d04cbfec308298fcb530a293e3cc32576482481
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 5 07:08:57 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 5 07:52:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d04cbfe
7
8 dev-python/ipykernel: Bump to 6.12.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.12.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 370b744cc95d..3401fe495722 100644
18 --- a/dev-python/ipykernel/Manifest
19 +++ b/dev-python/ipykernel/Manifest
20 @@ -1,3 +1,4 @@
21 DIST ipykernel-6.10.0.tar.gz 129057 BLAKE2B e50fd0b5d041236002d29360eb670e5bcf97ad6e0eff091e62a4189567d14832b6fa95915bbd29818b897430fa3f37b930c54155a407cc46d7a9607aa19caf2b SHA512 9f2c9e24244e5c3aafbfd2da6a131cbf19abfeb8164e6a64c69aa4b65dad92101137482c71f53eb5d8395944d6714938a73556e5dbfc8a6c92303c716d6244b5
22 DIST ipykernel-6.11.0.tar.gz 129429 BLAKE2B 746cff0b32a1282f8abe02bd339d35061ceb04d3f4d7fc325bc97b744185958ed91beaff83c19d269e0d8ec7b35c5c88412c135c1aa2dcbf770846986eddc82f SHA512 69b88e3c8b552f5277f392a004a33a5c64c2edc93aeea0d2c2d03b0d8ee649f41fc1378068c1dd8322807cce188f5579c0d92730760baeca8170a98f585f500b
23 +DIST ipykernel-6.12.1.tar.gz 129979 BLAKE2B 96ee301974c9353374b6869003995238068f4abcdaa0cf4c2b6294c1ef8c4e6358e93a41feaa49fcba587fb94ca719f3180eac2b47fbbf6c54fa9fb315d784ad SHA512 309701a287e8b87d0f8b07eac402e2fc163515f471f3b5b3187bc210c47714d4cfb496f40e34ebad47be5e7eca8157ef0eea7da141fb16a6fd943f4a2095f360
24 DIST ipykernel-6.9.2.tar.gz 128759 BLAKE2B 74740bdbe420d14cbb75e5a1dee9bfb0894c3e10ebf029bd7ceb29eb5112489ef83bc9a2075f6dd1cf16745f893d3782ee22144edfec66d650246eaa0d97215c SHA512 a452d7a44c4e33cb2d79262916045fe3044803f20db7d525bca3277dd49e9d216d07a832312b29a5a61293ecf7863641a45e0f188136059799287c5983beb0d4
25
26 diff --git a/dev-python/ipykernel/ipykernel-6.12.1.ebuild b/dev-python/ipykernel/ipykernel-6.12.1.ebuild
27 new file mode 100644
28 index 000000000000..f3c45991a014
29 --- /dev/null
30 +++ b/dev-python/ipykernel/ipykernel-6.12.1.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +PYTHON_REQ_USE="threads(+)"
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="IPython Kernel for Jupyter"
44 +HOMEPAGE="https://github.com/ipython/ipykernel"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
50 +
51 +RDEPEND="
52 + >=dev-python/debugpy-1.0[${PYTHON_USEDEP}]
53 + >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}]
54 + >=dev-python/traitlets-5.1.0[${PYTHON_USEDEP}]
55 + >=dev-python/jupyter_client-6.1.12[${PYTHON_USEDEP}]
56 + >=www-servers/tornado-6.1[${PYTHON_USEDEP}]
57 + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}]
58 + dev-python/nest_asyncio[${PYTHON_USEDEP}]
59 + dev-python/psutil[${PYTHON_USEDEP}]
60 + dev-python/packaging[${PYTHON_USEDEP}]
61 +"
62 +# RDEPEND seems specifically needed in BDEPEND, at least jupyter
63 +# bug #816486
64 +BDEPEND="
65 + ${RDEPEND}
66 + test? (
67 + dev-python/flaky[${PYTHON_USEDEP}]
68 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
69 + dev-python/ipyparallel[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +distutils_enable_tests pytest
74 +
75 +EPYTEST_DESELECT=(
76 + # TODO
77 + ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_pylab
78 + ipykernel/tests/test_debugger.py::test_attach_debug
79 + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines
80 + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint
81 + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint
82 + ipykernel/tests/test_debugger.py::test_set_breakpoints
83 + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint
84 +)
85 +
86 +src_prepare() {
87 + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
88 + distutils-r1_src_prepare
89 +}
90 +
91 +python_compile() {
92 + distutils-r1_python_compile
93 + # Use python3 in kernel.json configuration, bug #784764
94 + sed -i -e '/python3.[0-9]\+/s//python3/' \
95 + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die
96 +}