Accepting request 875931 from devel:languages:python:jupyter

OBS-URL: https://build.opensuse.org/request/show/875931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbconvert?expand=0&rev=6
This commit is contained in:
Richard Brown 2021-03-02 11:34:45 +00:00 committed by Git OBS Bridge
commit 48a28926e0
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Feb 28 22:22:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Add missing runtime requirement of nbclient. Keep the minversion
- Remove empty html templates dir after test runs. This directory
installed with mode 700 caused other package test suites to fail.
-------------------------------------------------------------------
Thu Feb 25 21:11:07 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -42,7 +42,9 @@ Requires: python-defusedxml
Requires: python-entrypoints >= 0.2.2
Requires: python-jupyter-client >= 5.3.1
Requires: python-jupyter-core
Requires: python-jupyterlab-pygments
Requires: python-mistune >= 0.7.4
Requires: python-nbclient >= 0.5
Requires: python-nbformat >= 4.4
Requires: python-pandocfilters >= 1.4.1
Requires: python-testpath
@ -67,7 +69,7 @@ BuildRequires: %{python_module jupyter-core}
BuildRequires: %{python_module jupyterlab-pygments}
BuildRequires: %{python_module mistune >= 0.7.4}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nbclient}
BuildRequires: %{python_module nbclient >= 0.5}
BuildRequires: %{python_module nbformat >= 4.4}
BuildRequires: %{python_module pandocfilters >= 1.4.1}
BuildRequires: %{python_module pyppeteer}
@ -136,6 +138,9 @@ rm docs/html/.buildinfo
sed -i -e '/^#!\//, 1d' nbconvert/nbconvertapp.py
sed -i -e '/^#!\//, 1d' nbconvert/filters/filter_links.py
# Ignore stupid maxversion requirements
sed -i -e "/nbclient/ s/,<.*'/'/" setup.py
%build
%python_build
@ -160,6 +165,9 @@ $python -B -m ipykernel.kernelspec --user
pytest-%{$python_bin_suffix} -v -k 'not network' --pyargs nbconvert
}
popd
# naughty test suite: this empty directory in the now deprecated template folder
# is created with mode 700 during the tests and causes other packages to fail
rmdir %{buildroot}%{_datadir}/jupyter/nbconvert/templates/html
%files %{python_files}
%license LICENSE