From fe644d112613832366f142c63bcdce7dbff45706 Mon Sep 17 00:00:00 2001 From: dkwo Date: Fri, 14 May 2021 17:45:11 +0200 Subject: [PATCH] python3-jupyter_nbconvert: update to 6.0.7 --- .../patches/test-timeout.patch | 16 ----------- srcpkgs/python3-jupyter_nbconvert/template | 28 ++++++------------- 2 files changed, 9 insertions(+), 35 deletions(-) delete mode 100644 srcpkgs/python3-jupyter_nbconvert/patches/test-timeout.patch diff --git a/srcpkgs/python3-jupyter_nbconvert/patches/test-timeout.patch b/srcpkgs/python3-jupyter_nbconvert/patches/test-timeout.patch deleted file mode 100644 index 172692d3438..00000000000 --- a/srcpkgs/python3-jupyter_nbconvert/patches/test-timeout.patch +++ /dev/null @@ -1,16 +0,0 @@ -This test is used to test other errors instead of TimeoutError, -according to the attached comment, increase timeout should be fine. -I run into the timeout 1 out of 10 run. -diff --git nbconvert/preprocessors/tests/test_execute.py nbconvert/preprocessors/tests/test_execute.py -index 243a725..a55116e 100644 ---- nbconvert/preprocessors/tests/test_execute.py -+++ nbconvert/preprocessors/tests/test_execute.py -@@ -317,7 +317,7 @@ def test_many_parallel_notebooks(capfd): - with ProcessPool(max_workers=4) as pool: - futures = [ - # Travis needs a lot more time even though 10s is enough on most dev machines -- pool.schedule(run_notebook, args=(input_file, opts, res), timeout=30) -+ pool.schedule(run_notebook, args=(input_file, opts, res), timeout=60) - for i in range(0, 8) - ] - for index, future in enumerate(futures): diff --git a/srcpkgs/python3-jupyter_nbconvert/template b/srcpkgs/python3-jupyter_nbconvert/template index fd3a2757635..59d7d2c5014 100644 --- a/srcpkgs/python3-jupyter_nbconvert/template +++ b/srcpkgs/python3-jupyter_nbconvert/template @@ -1,36 +1,26 @@ # Template file for 'python3-jupyter_nbconvert' pkgname=python3-jupyter_nbconvert -version=5.6.1 -revision=2 +version=6.0.7 +revision=1 wrksrc="nbconvert-${version}" build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-mistune python3-Jinja2>=2.4 python3-Pygments - python3-traitlets>=4.2 python3-jupyter_core python3-jupyter_nbformat>=4.4 - python3-entrypoints>=0.2.2 python3-testpath python3-bleach - python3-pandocfilters>=1.4.1 python3-defusedxml" +depends="python3-mistune python3-Jinja2 python3-jupyterlab_pygments + python3-nbclient python3-jupyter_core python3-entrypoints python3-testpath + python3-bleach python3-pandocfilters python3-defusedxml" checkdepends="python3-pytest python3-ipython_ipykernel - python3-mistune python3-Jinja2 python3-Pygments - python3-traitlets python3-jupyter_core python3-jupyter_nbformat - python3-entrypoints python3-testpath python3-bleach - python3-pandocfilters python3-defusedxml - python3-jupyter_ipywidgets python3-Pebble pandoc inkscape" + python3-jupyter_ipywidgets python3-Pebble pandoc inkscape $depends" short_desc="Converting Jupyter notebooks" maintainer="Alessio Sergi " license="BSD-3-Clause" homepage="https://github.com/jupyter/nbconvert" distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz" -checksum=21fb48e700b43e82ba0e3142421a659d7739b65568cc832a13976a77be16b523 +checksum=cbbc13a86dfbd4d1b5dee106539de0795b4db156c894c2c5dc382062bbc29002 conflicts="python-jupyter_nbconvert<=5.4.1_2" -post_patch() { - # only 1 test cases in test_nbconvertapp is failing, - # but disable it will make everything run into trouble - rm -f nbconvert/tests/test_nbconvertapp.py -} - do_check() { - pytest -k 'not test_run_all_notebooks[SVG.ipynb-opts9]' + # WebPDF export depends on unpackaged pyppeteer + python3 -m pytest -k 'not TestWebPDFExporter and not test_webpdf_with_chromium' } post_install() {