- Update requirements and test suite setup - specfile: * update requirements * switch to pyproject.toml build - update to version 6.15.0: * Bugs fixed + Fix compatibility with tornado 6.2 beta #956 (@minrk) * Maintenance and upkeep improvements + Back to top-level tornado IOLoop #958 (@minrk) + Explicitly require pyzmq >= 17 #957 (@minrk) + [pre-commit.ci] pre-commit autoupdate #954 (@pre-commit-ci) - changes from version 6.14.0: * Enhancements made + Add cpu_count to the usage_reply #952 (@echarles) * Bugs fixed + use pss memory info type if available for the resource usage reply #948 (@echarles) + Ensure psutil for the process is accurate #937 (@echarles) * Maintenance and upkeep improvements + Fix sphinx 5.0 support #951 (@blink1073) + [pre-commit.ci] pre-commit autoupdate #950 (@pre-commit-ci) - changes from version 6.13.1: * Bugs fixed + Fix richInspectVariables #943 (@davidbrochart) + Force debugger metadata in built wheel #941 (@blink1073) * Maintenance and upkeep improvements + [pre-commit.ci] pre-commit autoupdate #945 (@pre-commit-ci) + Clean up typings #939 (@blink1073) + [pre-commit.ci] pre-commit autoupdate #938 (@pre-commit-ci) OBS-URL: https://build.opensuse.org/request/show/984608 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=48
134 lines
4.9 KiB
RPMSpec
134 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package python-ipykernel
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-ipykernel
|
|
Version: 6.15.0
|
|
Release: 0
|
|
Summary: IPython Kernel for Jupyter
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/ipython/ipykernel
|
|
Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz
|
|
# SECTION build-system
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: fdupes
|
|
BuildRequires: jupyter-jupyter_core-filesystem
|
|
BuildRequires: python-rpm-macros
|
|
# /SECTION
|
|
# SECTION dependencies
|
|
Requires: python-debugpy >= 1.0
|
|
Requires: python-ipython >= 7.23.1
|
|
Requires: python-jupyter-client >= 6.1.12
|
|
Requires: python-matplotlib-inline >= 0.1
|
|
Requires: python-nest-asyncio
|
|
Requires: python-packaging
|
|
Requires: python-psutil
|
|
Requires: python-pyzmq >= 17
|
|
Requires: python-tornado >= 6.1
|
|
Requires: python-traitlets >= 5.1.0
|
|
BuildRequires: %{python_module debugpy >= 1.0}
|
|
BuildRequires: %{python_module ipython >= 7.23.1}
|
|
BuildRequires: %{python_module jupyter-client >= 6.1.12}
|
|
BuildRequires: %{python_module matplotlib-inline >= 0.1}
|
|
BuildRequires: %{python_module nest-asyncio}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pyzmq >= 17}
|
|
BuildRequires: %{python_module tornado >= 6.1}
|
|
BuildRequires: %{python_module traitlets >= 5.1.0}
|
|
# /SECTION
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest >= 6.0}
|
|
BuildRequires: %{python_module curio}
|
|
BuildRequires: %{python_module flaky}
|
|
BuildRequires: %{python_module pytest-timeout}
|
|
BuildRequires: %{python_module trio}
|
|
# we don't want ipyparallel and its dependencies in Ring1, see below
|
|
#BuildRequires: #{python_module ipyparallel}
|
|
# /SECTION
|
|
Requires: jupyter-jupyter-client >= 6.1.12
|
|
Provides: python-jupyter_ipykernel = %{version}
|
|
Obsoletes: python-jupyter_ipykernel < %{version}
|
|
Provides: %{python_module ipykernel-doc = %{version}}
|
|
Obsoletes: %{python_module ipykernel-doc < %{version}}
|
|
Provides: %{python_module jupyter_ipykernel-doc = %{version}}
|
|
Obsoletes: %{python_module jupyter_ipykernel-doc < %{version}}
|
|
Provides: %{python_module jupyter-ipykernel-doc = %{version}}
|
|
Obsoletes: %{python_module jupyter-ipykernel-doc < %{version}}
|
|
BuildArch: noarch
|
|
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
|
Provides: jupyter-ipykernel = %{version}-%{release}
|
|
Obsoletes: jupyter-ipykernel < %{version}-%{release}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
This package provides the IPython kernel for Jupyter.
|
|
|
|
%prep
|
|
%autosetup -p1 -n ipykernel-%{version}
|
|
# 5 tests out of 116, we don't want ipyparallel and its dependencies in Ring1
|
|
rm ipykernel/tests/test_pickleutil.py
|
|
sed -i -e 's/--color=yes//' pyproject.toml
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
# use the symlink for the default python3 flavor, which was installed during the install but used python3.X name
|
|
# from the primary flavor.
|
|
sed -i "s|$(readlink -f python3)|python3|" %{buildroot}%{_jupyter_kernel_dir}/python3/kernel.json
|
|
%{python_expand # install kernelspecs for each flavor
|
|
PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
$python -m ipykernel install \
|
|
--prefix=%{buildroot}%{_prefix} \
|
|
--name python%{$python_bin_suffix} \
|
|
--display-name 'Python %{$python_bin_suffix} (ipykernel)'
|
|
}
|
|
%endif
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%fdupes %{buildroot}%{_jupyter_kernel_dir}
|
|
|
|
%check
|
|
# flaky: bad timings in obs often cause this to fail
|
|
donttest="test_shutdown_subprocesses"
|
|
%pytest -k "not ($donttest)"
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license COPYING.md
|
|
%{python_sitelib}/ipykernel
|
|
%{python_sitelib}/ipykernel_launcher.py
|
|
%{python_sitelib}/ipykernel-%{version}*-info
|
|
%pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.pyc
|
|
%if 0%{?suse_version} >= 1550
|
|
%{_jupyter_kernel_dir}/python%{python_bin_suffix}
|
|
%endif
|
|
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
|
%{_jupyter_kernel_dir}/python3
|
|
%endif
|
|
|
|
%changelog
|