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.
This commit is contained in:
Miro Hrončok 2023-08-30 22:23:25 +02:00
parent 3607591aa8
commit 9c358ccecb

View File

@ -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