diff --git a/python-nbconvert.changes b/python-nbconvert.changes index d4b3127..ee9cad7 100644 --- a/python-nbconvert.changes +++ b/python-nbconvert.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Feb 28 22:22:52 UTC 2021 - Ben Greiner + +- 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 diff --git a/python-nbconvert.spec b/python-nbconvert.spec index 91b8ab8..6f2a8ef 100644 --- a/python-nbconvert.spec +++ b/python-nbconvert.spec @@ -44,6 +44,7 @@ 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 @@ -68,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} @@ -137,8 +138,8 @@ rm docs/html/.buildinfo sed -i -e '/^#!\//, 1d' nbconvert/nbconvertapp.py sed -i -e '/^#!\//, 1d' nbconvert/filters/filter_links.py -# Ignore stupd version requirements -sed -i -e "/nbclient/s/>.*'/'/" setup.py +# Ignore stupid maxversion requirements +sed -i -e "/nbclient/ s/,<.*'/'/" setup.py %build %python_build @@ -164,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