diff --git a/nbclient-0.5.8.tar.gz b/nbclient-0.5.8.tar.gz deleted file mode 100644 index 33278be..0000000 --- a/nbclient-0.5.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34f52cc9cb831a5d8ccd7031537e354c75dc61a24487f998712d1289de320a25 -size 74168 diff --git a/nbclient-0.5.9.tar.gz b/nbclient-0.5.9.tar.gz new file mode 100644 index 0000000..34e65a7 --- /dev/null +++ b/nbclient-0.5.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99e46ddafacd0b861293bf246fed8540a184adfa3aa7d641f89031ec070701e0 +size 74175 diff --git a/python-nbclient.changes b/python-nbclient.changes index a75c45a..6915a0c 100644 --- a/python-nbclient.changes +++ b/python-nbclient.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 19 09:52:05 UTC 2021 - Ben Greiner + +- 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 diff --git a/python-nbclient.spec b/python-nbclient.spec index 29804dd..13b886b 100644 --- a/python-nbclient.spec +++ b/python-nbclient.spec @@ -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="" %endif %if ! %{with test} +%pre +%python_libalternatives_reset_alternative jupyter-execute + %post %python_install_alternative jupyter-execute