Accepting request 875837 from home:bnavigator:branches:devel:languages:python:jupyter
- 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. OBS-URL: https://build.opensuse.org/request/show/875837 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbconvert?expand=0&rev=22
This commit is contained in:
parent
1a45fb63f4
commit
2a8810e026
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user