1
0

Accepting request 722081 from devel:languages:python:jupyter

OBS-URL: https://build.opensuse.org/request/show/722081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipykernel?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-08-16 13:26:59 +00:00 committed by Git OBS Bridge
commit e1b8516d37
6 changed files with 44 additions and 72 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:346189536b88859937b5f4848a6fd85d1ad0729f01724a411de5cae9b618819c
size 114024

3
ipykernel-5.1.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b503913e0b4cce7ed2de965457dfb2edd633e8234161a60e23f2fe2161345d12
size 103286

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e207ec2473affd6ce3af1d0ba8f440162165b46b1c1c463c90bffcd6c40e5f3
size 95312

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:528aa98b6b5e4e3a97627ff1dec10ec7d13d77c31bed97d15a3bcc80018bedeb
size 9887009

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Aug 9 05:20:15 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Replace HTML and PDF version of changelog with the single
changelog.rst they contained, obsoleting jupyter-ipykernel-doc
- Activated test suite
- Update to 5.1.2
* Fix socket-binding race conditions
* Add a no-op flush method to DummySocket and comply with stream API
* Update kernel version to indicate kernel v5.3 support
* Add testing for upcoming Python 3.8 and PEP 570 positional parameters
-------------------------------------------------------------------
Thu May 16 19:12:11 UTC 2019 - Todd R <toddrme2178@gmail.com>

View File

@ -19,45 +19,49 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-ipykernel
Version: 5.1.1
Version: 5.1.2
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}
Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: jupyter-ipykernel = %{version}
Requires: python-ipython >= 4.0.0
Requires: python-ipython >= 5.0.0
Requires: python-jupyter_client
Requires: python-jupyter_core
Requires: python-tornado >= 4.0
Requires: python-tornado >= 4.2
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 ipython >= 5.0.0}
BuildRequires: %{python_module jupyter_client}
BuildRequires: %{python_module jupyter_core}
BuildRequires: %{python_module nose_warnings_filters}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module tornado >= 4.0}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tornado >= 4.2}
BuildRequires: %{python_module traitlets >= 4.1.0}
# /SECTION
# typing is only built-in for later versions of python
%if 0%{?suse_version} <= 1320
BuildRequires: %{python_module typing}
Requires: python-typing
%endif
# /SECTION
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}}
%python_subpackages
%description
@ -77,64 +81,26 @@ 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
%setup -q -n ipykernel-%{version}
%build
# Not needed
%python_build
%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 .
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
nosetests-%{$python_bin_suffix}
}
%pytest
%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*
%doc README.md docs/changelog.rst
%license COPYING.md
%{python_sitelib}/*
%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