2020-08-03 09:32:52 +00:00
|
|
|
Name: python-ipykernel
|
2023-08-30 20:23:25 +00:00
|
|
|
Version: 6.11.0
|
2020-08-03 09:32:52 +00:00
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: IPython Kernel for Jupyter
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/ipython/ipykernel
|
|
|
|
Source0: https://github.com/ipython/ipykernel/archive/v%{version}/ipykernel-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
2023-08-30 20:23:25 +00:00
|
|
|
# some of the nested modules import from this, but upstream does not declare the dependency
|
|
|
|
BuildRequires: python3-ipyparallel
|
|
|
|
|
2020-08-03 09:32:52 +00:00
|
|
|
%description
|
|
|
|
This package contains data files.
|
|
|
|
Building this tests that data files are not listed when +auto is not used
|
|
|
|
with %%pyproject_save_files.
|
2021-10-27 09:28:45 +00:00
|
|
|
Run %%pyproject_check_import on installed package and exclude unwanted modules
|
|
|
|
(if they're not excluded, build fails).
|
|
|
|
- We don't want to pull test dependencies just to check import
|
|
|
|
- The others fail to find `gi` and `matplotlib` which weren't declared
|
|
|
|
in the upstream metadata
|
|
|
|
|
2020-08-03 09:32:52 +00:00
|
|
|
|
|
|
|
%package -n python3-ipykernel
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-ipykernel
|
|
|
|
...
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n ipykernel-%{version}
|
|
|
|
|
2023-08-30 20:23:25 +00:00
|
|
|
# Remove the dependency on debugpy.
|
|
|
|
# See https://github.com/ipython/ipykernel/pull/767
|
|
|
|
sed -i '/"debugpy/d' pyproject.toml setup.py
|
2022-02-22 19:35:52 +00:00
|
|
|
|
2020-08-03 09:32:52 +00:00
|
|
|
%generate_buildrequires
|
2021-10-27 09:28:45 +00:00
|
|
|
%pyproject_buildrequires -r
|
2020-08-03 09:32:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
2023-09-27 12:37:15 +00:00
|
|
|
%pyproject_save_files -l 'ipykernel*' +auto
|
2020-08-03 09:32:52 +00:00
|
|
|
|
2021-10-27 09:28:45 +00:00
|
|
|
%check
|
2023-08-30 20:23:25 +00:00
|
|
|
%pyproject_check_import -e '*.test*' -e 'ipykernel.gui*' -e 'ipykernel.pylab.*' -e 'ipykernel.trio*'
|
2021-10-27 09:28:45 +00:00
|
|
|
|
2020-08-03 09:32:52 +00:00
|
|
|
%files -n python3-ipykernel -f %{pyproject_files}
|
|
|
|
%doc README.md
|
|
|
|
|