Date: Saturday, August 27, 2022 @ 09:22:36 Author: arojas Revision: 1284596
upgpkg: jupyter-nbconvert 7.0.0-1: Update to 7.0.0, bootstrap build without tests to avoid mistune upgrade issues Modified: jupyter-nbconvert/trunk/PKGBUILD ----------+ PKGBUILD | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-08-27 09:13:04 UTC (rev 1284595) +++ PKGBUILD 2022-08-27 09:22:36 UTC (rev 1284596) @@ -2,8 +2,8 @@ pkgname=jupyter-nbconvert _name=nbconvert -pkgver=6.5.0 -pkgrel=3 +pkgver=7.0.0 +pkgrel=1 pkgdesc="Jupyter Notebook Conversion" arch=('any') url="https://pypi.python.org/pypi/nbconvert" @@ -11,7 +11,7 @@ depends=( 'jupyter-nbformat' 'jupyter-nbclient' - 'jupyterlab_pygments' +# 'jupyterlab_pygments' 'python-beautifulsoup4' 'python-bleach' 'python-defusedxml' @@ -18,26 +18,22 @@ 'python-entrypoints' 'python-jinja' 'python-pandocfilters' - 'python-mistune1' + 'python-mistune>=2' 'python-pygments' 'python-traitlets' 'python-tinycss2' + 'python-lxml' ) -makedepends=('python-pyppeteer') +makedepends=('python-build' 'python-installer' 'python-hatchling') checkdepends=('python-pytest' 'python-ipywidgets') optdepends=('pandoc: non-html conversion output' 'python-pyppeteer: for webPDF conversion support') source=("https://github.com/jupyter/nbconvert/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha256sums=('548bfb47a15ab12b7c68e6be7c702db791effa8d524707152249a562a019b8f5') +sha256sums=('c5b94e2858ada941006c0018817bac4abb47415ca491dec3e20ebd2735fa17d3') -prepare() { - cd nbconvert-$pkgver - sed -e 's|setuptools>=60.0|setuptools|' -i pyproject.toml -} - build() { cd nbconvert-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -44,15 +40,15 @@ cd nbconvert-$pkgver export PYTHONPATH="$PWD" # Make sure system nbconvert is not used # disable tests that download chromium and (probably) require a graphical session - pytest -v -k 'TestWebPDFExporter and not (test_export or test_webpdf_without_pyppeteer)' -W ignore::DeprecationWarning - pytest -v -k 'TestNbConvertApp and not test_webpdf_with_chromium' -W ignore::DeprecationWarning +# pytest -v -k 'TestWebPDFExporter and not (test_export or test_webpdf_without_pyppeteer)' -W ignore::DeprecationWarning +# pytest -v -k 'TestNbConvertApp and not test_webpdf_with_chromium' -W ignore::DeprecationWarning # run all remaining tests - pytest -v -k 'not TestWebPDFExporter and not TestNbConvertApp' -W ignore::DeprecationWarning +# pytest -v -k 'not TestWebPDFExporter and not TestNbConvertApp' -W ignore::DeprecationWarning } package() { cd nbconvert-$pkgver - python setup.py install --skip-build --optimize=1 --root="$pkgdir" + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }