1
0

Accepting request 932511 from home:bnavigator:branches:devel:languages:python:jupyter

- Update to version 0.5.9
  * Remove jupyter-run, keep jupyter-execute #180 (@davidbrochart)
- Switch to libalternatives

OBS-URL: https://build.opensuse.org/request/show/932511
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=25
This commit is contained in:
Benjamin Greiner 2021-11-19 11:51:34 +00:00 committed by Git OBS Bridge
parent 032aa09039
commit 03d583c9f9
4 changed files with 27 additions and 7 deletions

View File

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

3
nbclient-0.5.9.tar.gz Normal file
View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Nov 19 09:52:05 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to version 0.5.9
* Remove jupyter-run, keep jupyter-execute #180 (@davidbrochart)
- Switch to libalternatives
-------------------------------------------------------------------
Sun Nov 14 13:28:35 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -24,10 +24,17 @@
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-nbclient%{psuffix}
Version: 0.5.8
Version: 0.5.9
Release: 0
Summary: A client library for executing notebooks
License: BSD-3-Clause
@ -43,8 +50,13 @@ Requires: python-jupyter-client >= 6.1.5
Requires: python-nbformat >= 5.0
Requires: python-nest-asyncio
Requires: python-traitlets >= 4.2
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
%endif
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module async_generator if %python-base < 3.7}
@ -69,8 +81,6 @@ NBClient is a tool for parameterizing andexecuting Jupyter Notebooks.
%prep
%setup -q -n nbclient-%{version}
# conflict with jupyter_client -- https://github.com/jupyter/nbclient/pull/173#issuecomment-968292909
sed -i '/jupyter-run =/ d' setup.py
%build
%python_build
@ -90,6 +100,9 @@ export IPYKERNEL_CELL_NAME="<IPY-INPUT>"
%endif
%if ! %{with test}
%pre
%python_libalternatives_reset_alternative jupyter-execute
%post
%python_install_alternative jupyter-execute