From a594a93c9b56cd20a5d8bace40b82ffa046f8e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 30 Aug 2023 22:23:25 +0200 Subject: [PATCH] CI: Update ipykernel to a version that no longer uses the imp module This still works on Fedora 37 and 38. The c9s package skips this test. --- tests/python-ipykernel.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/python-ipykernel.spec b/tests/python-ipykernel.spec index cba582e..abeceac 100644 --- a/tests/python-ipykernel.spec +++ b/tests/python-ipykernel.spec @@ -1,5 +1,5 @@ Name: python-ipykernel -Version: 5.2.1 +Version: 6.11.0 Release: 0%{?dist} Summary: IPython Kernel for Jupyter License: BSD @@ -11,6 +11,9 @@ BuildArch: noarch BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel +# some of the nested modules import from this, but upstream does not declare the dependency +BuildRequires: python3-ipyparallel + %description This package contains data files. Building this tests that data files are not listed when +auto is not used @@ -31,11 +34,9 @@ Summary: %{summary} %prep %autosetup -p1 -n ipykernel-%{version} -# Add dependency on IPython genutils -# https://github.com/ipython/ipykernel/pull/756 -# Patch does not apply, so we dirty-sed it in -sed -i 's/install_requires=\[/install_requires=["ipython_genutils",/' setup.py - +# Remove the dependency on debugpy. +# See https://github.com/ipython/ipykernel/pull/767 +sed -i '/"debugpy/d' pyproject.toml setup.py %generate_buildrequires %pyproject_buildrequires -r @@ -48,7 +49,7 @@ sed -i 's/install_requires=\[/install_requires=["ipython_genutils",/' setup.py %pyproject_save_files 'ipykernel*' +auto %check -%pyproject_check_import -e '*.test*' -e 'ipykernel.gui*' -e 'ipykernel.pylab.backend_inline' +%pyproject_check_import -e '*.test*' -e 'ipykernel.gui*' -e 'ipykernel.pylab.*' -e 'ipykernel.trio*' %files -n python3-ipykernel -f %{pyproject_files} %license COPYING.md