From a678800cd8934d42f836b8d8602a837f5e8e9469a726fcb00ce17a3894094380 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 9 Aug 2019 19:53:11 +0000 Subject: [PATCH] Accepting request 721906 from home:jayvdb:jupyter Update, add testing and remove unnecessary separate docs package which only contained the changelog OBS-URL: https://build.opensuse.org/request/show/721906 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=8 --- ipykernel-5.1.1-py3-none-any.whl | 3 -- ipykernel-5.1.2.tar.gz | 3 ++ ipykernel.pdf | 3 -- ipykernel.zip | 3 -- python-ipykernel.changes | 12 +++++ python-ipykernel.spec | 92 ++++++++++---------------------- 6 files changed, 44 insertions(+), 72 deletions(-) delete mode 100644 ipykernel-5.1.1-py3-none-any.whl create mode 100644 ipykernel-5.1.2.tar.gz delete mode 100644 ipykernel.pdf delete mode 100644 ipykernel.zip diff --git a/ipykernel-5.1.1-py3-none-any.whl b/ipykernel-5.1.1-py3-none-any.whl deleted file mode 100644 index 0a2bd0e..0000000 --- a/ipykernel-5.1.1-py3-none-any.whl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:346189536b88859937b5f4848a6fd85d1ad0729f01724a411de5cae9b618819c -size 114024 diff --git a/ipykernel-5.1.2.tar.gz b/ipykernel-5.1.2.tar.gz new file mode 100644 index 0000000..95605f7 --- /dev/null +++ b/ipykernel-5.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b503913e0b4cce7ed2de965457dfb2edd633e8234161a60e23f2fe2161345d12 +size 103286 diff --git a/ipykernel.pdf b/ipykernel.pdf deleted file mode 100644 index 90cc9fa..0000000 --- a/ipykernel.pdf +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e207ec2473affd6ce3af1d0ba8f440162165b46b1c1c463c90bffcd6c40e5f3 -size 95312 diff --git a/ipykernel.zip b/ipykernel.zip deleted file mode 100644 index b784228..0000000 --- a/ipykernel.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:528aa98b6b5e4e3a97627ff1dec10ec7d13d77c31bed97d15a3bcc80018bedeb -size 9887009 diff --git a/python-ipykernel.changes b/python-ipykernel.changes index e0c4b7b..b215ddc 100644 --- a/python-ipykernel.changes +++ b/python-ipykernel.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Fri Aug 9 05:20:15 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-ipykernel.spec b/python-ipykernel.spec index cdad30a..2cf130d 100644 --- a/python-ipykernel.spec +++ b/python-ipykernel.spec @@ -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