From a871e8a8919a14d96d0c4f918d8404beded18843 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Sun, 20 Aug 2023 16:33:19 +0800 Subject: dev-python/ipykernel: drop debugpy dependency on macOS. Reference: https://github.com/ipython/ipykernel/issues/712 Reference: https://github.com/ipython/ipykernel/issues/1136 dev-python/ipykernel: keyword 6.25.1-r1 for ~arm64-macos, ~x64-macos dev-python/comm: keyword 0.1.4 for ~arm64-macos, ~x64-macos dev-python/ipython: keyword 8.14.0 for ~arm64-macos, ~x64-macos dev-python/jupyter-client: keyword 8.3.0 for ~arm64-macos, ~x64-macos dev-python/jupyter-core: keyword 5.3.1 for ~arm64-macos, ~x64-macos dev-python/matplotlib-inline: keyword 0.1.6 for ~arm64-macos, ~x64-macos dev-python/nest-asyncio: keyword 1.5.7 for ~arm64-macos, ~x64-macos dev-python/pyzmq: keyword 25.1.1 for ~arm64-macos, ~x64-macos dev-python/traitlets: keyword 5.9.0 for ~arm64-macos, ~x64-macos dev-python/twisted: keyword 22.10.0-r3 for ~arm64-macos, ~x64-macos dev-libs/libsodium: keyword 1.0.18_p20220618 dev-python/backcall: keyword 0.2.0-r1 for ~arm64-macos, ~x64-macos dev-python/jedi: keyword 0.19.0 for ~arm64-macos, ~x64-macos dev-python/pickleshare: keyword 0.7.5 for ~arm64-macos, ~x64-macos dev-python/prompt-toolkit: keyword 3.0.39 for ~arm64-macos, ~x64-macos dev-python/stack_data: keyword 0.6.2 for ~arm64-macos, ~x64-macos dev-python/asttokens: keyword 2.2.1 for ~arm64-macos, ~x64-macos dev-python/executing: keyword 1.2.0 for ~arm64-macos, ~x64-macos dev-python/pure_eval: keyword 0.2.2 for ~arm64-macos, ~x64-macos dev-python/wcwidth: keyword 0.2.6 for ~arm64-macos, ~x64-macos dev-python/parso: keyword 0.8.3-r1 for ~arm64-macos, ~x64-macos Signed-off-by: Benda Xu --- dev-python/ipykernel/ipykernel-6.25.1-r1.ebuild | 79 +++++++++++++++++++++++++ dev-python/ipykernel/ipykernel-6.25.1.ebuild | 79 ------------------------- 2 files changed, 79 insertions(+), 79 deletions(-) create mode 100644 dev-python/ipykernel/ipykernel-6.25.1-r1.ebuild delete mode 100644 dev-python/ipykernel/ipykernel-6.25.1.ebuild (limited to 'dev-python/ipykernel') diff --git a/dev-python/ipykernel/ipykernel-6.25.1-r1.ebuild b/dev-python/ipykernel/ipykernel-6.25.1-r1.ebuild new file mode 100644 index 000000000000..bac003cd898d --- /dev/null +++ b/dev-python/ipykernel/ipykernel-6.25.1-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="IPython Kernel for Jupyter" +HOMEPAGE=" + https://github.com/ipython/ipykernel/ + https://pypi.org/project/ipykernel/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] + !elibc_Darwin? ( >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] ) + >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] + >=dev-python/jupyter-client-8[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-4.12[${PYTHON_USEDEP}] + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}] + dev-python/nest-asyncio[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pyzmq-20[${PYTHON_USEDEP}] + >=dev-python/tornado-6.1[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.4.0[${PYTHON_USEDEP}] +" +# RDEPEND seems specifically needed in BDEPEND, at least jupyter +# bug #816486 +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/ipyparallel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + # Use python3 in kernel.json configuration, bug #784764 + sed -i -e '/python3.[0-9]\+/s//python3/' \ + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die +} + +src_test() { + local EPYTEST_DESELECT=( + # TODO + ipykernel/tests/test_debugger.py::test_attach_debug + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint + ipykernel/tests/test_debugger.py::test_set_breakpoints + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint + ipykernel/tests/test_debugger.py::test_copy_to_globals + # hangs? + ipykernel/tests/test_eventloop.py::test_tk_loop + # doesn't like pyside2? + ipykernel/tests/test_eventloop.py::test_qt_enable_gui + ) + + virtx distutils-r1_src_test +} diff --git a/dev-python/ipykernel/ipykernel-6.25.1.ebuild b/dev-python/ipykernel/ipykernel-6.25.1.ebuild deleted file mode 100644 index 37ffb104142b..000000000000 --- a/dev-python/ipykernel/ipykernel-6.25.1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{10..11} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 pypi virtualx - -DESCRIPTION="IPython Kernel for Jupyter" -HOMEPAGE=" - https://github.com/ipython/ipykernel/ - https://pypi.org/project/ipykernel/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -RDEPEND=" - >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] - >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] - >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] - >=dev-python/jupyter-client-8[${PYTHON_USEDEP}] - >=dev-python/jupyter-core-4.12[${PYTHON_USEDEP}] - >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}] - dev-python/nest-asyncio[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - >=dev-python/pyzmq-20[${PYTHON_USEDEP}] - >=dev-python/tornado-6.1[${PYTHON_USEDEP}] - >=dev-python/traitlets-5.4.0[${PYTHON_USEDEP}] -" -# RDEPEND seems specifically needed in BDEPEND, at least jupyter -# bug #816486 -BDEPEND=" - ${RDEPEND} - test? ( - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/ipyparallel[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die - distutils-r1_src_prepare -} - -python_compile() { - distutils-r1_python_compile - # Use python3 in kernel.json configuration, bug #784764 - sed -i -e '/python3.[0-9]\+/s//python3/' \ - "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die -} - -src_test() { - local EPYTEST_DESELECT=( - # TODO - ipykernel/tests/test_debugger.py::test_attach_debug - ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines - ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint - ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint - ipykernel/tests/test_debugger.py::test_set_breakpoints - ipykernel/tests/test_debugger.py::test_stop_on_breakpoint - ipykernel/tests/test_debugger.py::test_copy_to_globals - # hangs? - ipykernel/tests/test_eventloop.py::test_tk_loop - # doesn't like pyside2? - ipykernel/tests/test_eventloop.py::test_qt_enable_gui - ) - - virtx distutils-r1_src_test -} -- cgit v1.2.3-65-gdbad