- Update to 5.1.1 * 5.1.1 fixes a bug that caused cells to get stuck in a busy state. OBS-URL: https://build.opensuse.org/request/show/703528 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=4
141 lines
4.6 KiB
RPMSpec
141 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package python-ipykernel
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-ipykernel
|
|
Version: 5.1.1
|
|
Release: 0
|
|
Summary: IPython Kernel for Jupyter
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/ipython/ipykernel
|
|
Source0: https://files.pythonhosted.org/packages/py3/i/ipykernel/ipykernel-%{version}-py3-none-any.whl
|
|
# Please make sure you update the documentation files at every release
|
|
Source1: https://media.readthedocs.org/pdf/ipykernel/stable/ipykernel.pdf
|
|
Source2: https://media.readthedocs.org/htmlzip/ipykernel/stable/ipykernel.zip
|
|
BuildRequires: %{python_module ipython >= 4.0.0}
|
|
BuildRequires: %{python_module jupyter_client}
|
|
BuildRequires: %{python_module jupyter_core}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module tornado >= 4.0}
|
|
BuildRequires: %{python_module traitlets >= 4.1.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: unzip
|
|
Requires: jupyter-ipykernel = %{version}
|
|
Requires: python-ipython >= 4.0.0
|
|
Requires: python-jupyter_client
|
|
Requires: python-jupyter_core
|
|
Requires: python-tornado >= 4.0
|
|
Requires: python-traitlets >= 4.1.0
|
|
# typing is only built-in for later versions of python
|
|
Provides: python-jupyter_ipykernel = %{version}
|
|
Obsoletes: python-jupyter_ipykernel < %{version}
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module nose_warnings_filters}
|
|
BuildRequires: %{python_module nose}
|
|
BuildRequires: %{python_module tornado >= 4.0}
|
|
%if 0%{?suse_version} <= 1320
|
|
BuildRequires: %{python_module typing}
|
|
Requires: python-typing
|
|
%endif
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
This package provides the IPython kernel for Jupyter.
|
|
|
|
This package provides the python interface.
|
|
|
|
%package -n jupyter-ipykernel
|
|
Summary: IPython Kernel for Jupyter
|
|
Requires: hicolor-icon-theme
|
|
Requires: jupyter-jupyter_client
|
|
Requires: python3-ipykernel = %{version}
|
|
Conflicts: python3-jupyter_ipykernel < 5.1.1
|
|
|
|
%description -n jupyter-ipykernel
|
|
This package provides the IPython kernel for Jupyter.
|
|
|
|
This package provides the jupyter components.
|
|
|
|
%package -n jupyter-ipykernel-doc
|
|
Summary: Documentation for the IPython kernel for Jupyter
|
|
Group: Documentation/Other
|
|
Provides: %{python_module ipykernel-doc = %{version}}
|
|
Provides: %{python_module jupyter_ipykernel-doc = %{version}}
|
|
Obsoletes: %{python_module jupyter_ipykernel-doc < %{version}}
|
|
|
|
%description -n jupyter-ipykernel-doc
|
|
Documentation and help files for the IPython kernel for Jupyter.
|
|
|
|
%prep
|
|
%setup -q -T -c
|
|
cp %{SOURCE1} .
|
|
unzip %{SOURCE2} -d docs
|
|
mv docs/ipykernel-* docs/html
|
|
rm docs/html/.buildinfo
|
|
|
|
%build
|
|
# Not needed
|
|
|
|
%install
|
|
%python_expand pip%{$python_bin_suffix} install \
|
|
--root %{buildroot} \
|
|
--prefix %{_prefix} \
|
|
--compile \
|
|
%{SOURCE0}
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/jupyter-ipykernel
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-ipykernel/
|
|
cp -r docs/html %{buildroot}%{_docdir}/jupyter-ipykernel/
|
|
|
|
%fdupes %{buildroot}%{_docdir}/jupyter-ipykernel/
|
|
|
|
|
|
cp %{buildroot}%{python_sitelib}/ipykernel-%{version}.dist-info/COPYING.md .
|
|
|
|
%check
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
nosetests-%{$python_bin_suffix}
|
|
}
|
|
|
|
%files %{python_files}
|
|
%{python_sitelib}/ipykernel-%{version}.dist-info/
|
|
%license %{python_sitelib}/ipykernel-%{version}.dist-info/COPYING.md
|
|
%{python_sitelib}/ipykernel/
|
|
%{python_sitelib}/ipykernel_launcher.py*
|
|
%pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.py*
|
|
|
|
%files -n jupyter-ipykernel
|
|
%license COPYING.md
|
|
%{_jupyter_kernel_dir}/python3/
|
|
|
|
%files -n jupyter-ipykernel-doc
|
|
%license COPYING.md
|
|
%dir %{_docdir}/jupyter-ipykernel/
|
|
%{_docdir}/jupyter-ipykernel/ipykernel.pdf
|
|
%{_docdir}/jupyter-ipykernel/html
|
|
|
|
%changelog
|