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 Name: python-ipykernel
Version: 5.2.1 Version: 6.11.0
Release: 0%{?dist} Release: 0%{?dist}
Summary: IPython Kernel for Jupyter Summary: IPython Kernel for Jupyter
License: BSD License: BSD
@ -11,6 +11,9 @@ BuildArch: noarch
BuildRequires: pyproject-rpm-macros BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel BuildRequires: python3-devel
# some of the nested modules import from this, but upstream does not declare the dependency
BuildRequires: python3-ipyparallel
%description %description
This package contains data files. This package contains data files.
Building this tests that data files are not listed when +auto is not used Building this tests that data files are not listed when +auto is not used
@ -31,11 +34,9 @@ Summary: %{summary}
%prep %prep
%autosetup -p1 -n ipykernel-%{version} %autosetup -p1 -n ipykernel-%{version}
# Add dependency on IPython genutils # Remove the dependency on debugpy.
# https://github.com/ipython/ipykernel/pull/756 # See https://github.com/ipython/ipykernel/pull/767
# Patch does not apply, so we dirty-sed it in sed -i '/"debugpy/d' pyproject.toml setup.py
sed -i 's/install_requires=\[/install_requires=["ipython_genutils",/' setup.py
%generate_buildrequires %generate_buildrequires
%pyproject_buildrequires -r %pyproject_buildrequires -r
@ -48,7 +49,7 @@ sed -i 's/install_requires=\[/install_requires=["ipython_genutils",/' setup.py
%pyproject_save_files 'ipykernel*' +auto %pyproject_save_files 'ipykernel*' +auto
%check %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} %files -n python3-ipykernel -f %{pyproject_files}
%license COPYING.md %license COPYING.md