spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=2
This commit is contained in:
parent
3feef65e69
commit
9644f82ce3
@ -25,13 +25,13 @@ Summary: IPython Kernel for Jupyter
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/ipython/ipykernel
|
URL: https://github.com/ipython/ipykernel
|
||||||
Source0: https://files.pythonhosted.org/packages/py3/i/ipykernel/ipykernel-%{version}-py3-none-any.whl
|
Source0: https://files.pythonhosted.org/packages/source/i/ipykernel-%{version}-py3-none/ipykernel-%{version}-py3-none-any.whl
|
||||||
# Please make sure you update the documentation files at every release
|
# Please make sure you update the documentation files at every release
|
||||||
Source1: https://media.readthedocs.org/pdf/ipykernel/stable/ipykernel.pdf
|
Source1: https://media.readthedocs.org/pdf/ipykernel/stable/ipykernel.pdf
|
||||||
Source2: https://media.readthedocs.org/htmlzip/ipykernel/stable/ipykernel.zip
|
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_client}
|
||||||
BuildRequires: %{python_module jupyter_core}
|
BuildRequires: %{python_module jupyter_core}
|
||||||
BuildRequires: %{python_module ipython >= 4.0.0}
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module tornado >= 4.0}
|
BuildRequires: %{python_module tornado >= 4.0}
|
||||||
BuildRequires: %{python_module traitlets >= 4.1.0}
|
BuildRequires: %{python_module traitlets >= 4.1.0}
|
||||||
@ -39,11 +39,15 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
|
Requires: jupyter-ipykernel = %{version}
|
||||||
|
Requires: python-ipython >= 4.0.0
|
||||||
Requires: python-jupyter_client
|
Requires: python-jupyter_client
|
||||||
Requires: python-jupyter_core
|
Requires: python-jupyter_core
|
||||||
Requires: python-ipython >= 4.0.0
|
|
||||||
Requires: python-tornado >= 4.0
|
Requires: python-tornado >= 4.0
|
||||||
Requires: python-traitlets >= 4.1.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
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module nose_warnings_filters}
|
BuildRequires: %{python_module nose_warnings_filters}
|
||||||
@ -54,10 +58,6 @@ BuildRequires: %{python_module typing}
|
|||||||
Requires: python-typing
|
Requires: python-typing
|
||||||
%endif
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
# typing is only built-in for later versions of python
|
|
||||||
Provides: python-jupyter_ipykernel = %{version}
|
|
||||||
Obsoletes: python-jupyter_ipykernel <= %{version}
|
|
||||||
Requires: jupyter-ipykernel = %{version}
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -67,9 +67,9 @@ This package provides the python interface.
|
|||||||
|
|
||||||
%package -n jupyter-ipykernel
|
%package -n jupyter-ipykernel
|
||||||
Summary: IPython Kernel for Jupyter
|
Summary: IPython Kernel for Jupyter
|
||||||
Requires: python3-ipykernel = %{version}
|
|
||||||
Requires: jupyter-jupyter_client
|
|
||||||
Requires: hicolor-icon-theme
|
Requires: hicolor-icon-theme
|
||||||
|
Requires: jupyter-jupyter_client
|
||||||
|
Requires: python3-ipykernel = %{version}
|
||||||
|
|
||||||
%description -n jupyter-ipykernel
|
%description -n jupyter-ipykernel
|
||||||
This package provides the IPython kernel for Jupyter.
|
This package provides the IPython kernel for Jupyter.
|
||||||
@ -110,12 +110,12 @@ cp -r docs/html %{buildroot}%{_docdir}/jupyter-ipykernel/
|
|||||||
|
|
||||||
%fdupes %{buildroot}%{_docdir}/jupyter-ipykernel/
|
%fdupes %{buildroot}%{_docdir}/jupyter-ipykernel/
|
||||||
|
|
||||||
|
|
||||||
cp %{buildroot}%{python_sitelib}/ipykernel-%{version}.dist-info/LICENSE.txt .
|
cp %{buildroot}%{python_sitelib}/ipykernel-%{version}.dist-info/LICENSE.txt .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
%{python_expand export PYTHONPATH=%{buildroot}%{python_sitelib}
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||||
nosetests-%{$python_bin_suffix}
|
nosetests-%{$python_bin_suffix}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user