1
0

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

- Add IPYKERNEL_CELL_NAME env var for test sanitization
- Only require async_generator for Python < 3.7

OBS-URL: https://build.opensuse.org/request/show/920353
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=21
This commit is contained in:
Benjamin Greiner 2021-09-22 14:57:58 +00:00 committed by Git OBS Bridge
parent 4211f7b190
commit c8a79a7e52
4 changed files with 27 additions and 10 deletions

View File

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

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

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

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sun Sep 19 11:10:00 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Add IPYKERNEL_CELL_NAME env var for test sanitization
- Only require async_generator for Python < 3.7
-------------------------------------------------------------------
Wed Sep 15 05:46:38 UTC 2021 - Arun Persaud <arun@gmx.de>
- update to version 0.5.4:
* Replace km.cleanup with km.cleanup_resources #152 (@davidbrochart)
* Use async generator backport only on old python #154 (@mkoeppe)
* Support parsing of IPython dev version #150 (@cphyc)
* Set IPYKERNEL_CELL_NAME = <IPY-INPUT> #147 (@davidbrochart)
* Print useful error message on exception #142 (@certik)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 8 22:30:04 UTC 2021 - Ben Greiner <code@bnavigator.de> Thu Apr 8 22:30:04 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,5 +1,5 @@
# #
# spec file for package python-nbclient # spec file
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
@ -24,11 +24,10 @@
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
%endif %endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-nbclient%{psuffix} Name: python-nbclient%{psuffix}
Version: 0.5.3 Version: 0.5.4
Release: 0 Release: 0
Summary: A client library for executing notebooks Summary: A client library for executing notebooks
License: BSD-3-Clause License: BSD-3-Clause
@ -37,14 +36,16 @@ Source: https://files.pythonhosted.org/packages/source/n/nbclient/nbclie
BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: %{python_module setuptools >= 38.6.0}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 37
Requires: python-async_generator Requires: python-async_generator
%endif
Requires: python-jupyter-client >= 6.1.5 Requires: python-jupyter-client >= 6.1.5
Requires: python-nbformat >= 5.0 Requires: python-nbformat >= 5.0
Requires: python-nest-asyncio Requires: python-nest-asyncio
Requires: python-traitlets >= 4.2 Requires: python-traitlets >= 4.2
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module async_generator} BuildRequires: %{python_module async_generator if %python-base < 3.7}
BuildRequires: %{python_module ipython} BuildRequires: %{python_module ipython}
BuildRequires: %{python_module ipywidgets} BuildRequires: %{python_module ipywidgets}
BuildRequires: %{python_module jupyter-client >= 6.1.5} BuildRequires: %{python_module jupyter-client >= 6.1.5}
@ -66,7 +67,6 @@ NBClient is a tool for parameterizing andexecuting Jupyter Notebooks.
%prep %prep
%setup -q -n nbclient-%{version} %setup -q -n nbclient-%{version}
rm -r nbclient/tests/files/.ipynb_checkpoints
%build %build
%python_build %python_build
@ -79,8 +79,9 @@ rm -r nbclient/tests/files/.ipynb_checkpoints
%if %{with test} %if %{with test}
%check %check
# test_many_parallel_notebooks randomly fails - https://github.com/jupyter/nbclient/pull/74#issuecomment-635929953 export IPYKERNEL_CELL_NAME="<IPY-INPUT>"
%pytest -k 'not test_many_parallel_notebooks' # tests on parallel notebooks randomly fail - https://github.com/jupyter/nbclient/pull/74#issuecomment-635929953
%pytest -k 'not test_many_parallel_notebooks or test_async_parallel_notebooks'
%endif %endif
%if ! %{with test} %if ! %{with test}