[arch-commits] Commit in jupyter-nbconvert/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Sat Apr 9 08:10:25 UTC 2022
Date: Saturday, April 9, 2022 @ 08:10:25
Author: arojas
Revision: 1183104
PEP517
Modified:
jupyter-nbconvert/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-09 07:59:02 UTC (rev 1183103)
+++ PKGBUILD 2022-04-09 08:10:25 UTC (rev 1183104)
@@ -3,7 +3,7 @@
pkgname=jupyter-nbconvert
_name=nbconvert
pkgver=6.4.5
-pkgrel=4
+pkgrel=5
pkgdesc="Jupyter Notebook Conversion"
arch=('any')
url="https://pypi.python.org/pypi/nbconvert"
@@ -23,21 +23,20 @@
'python-testpath'
'python-traitlets'
)
-makedepends=('python-pyppeteer' 'python-setuptools')
+makedepends=('python-pyppeteer' 'python-build' 'python-installer' 'python-wheel')
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")
-sha512sums=('58a2f5e9c61dca0e2b8a8338a68e8bd7384a4eb9c300a0df45cfe941b3f19c6a64573ac02415318caa65feb74cda375d52d89a009f185eb45c531eb38c5b6865')
-b2sums=('68ac22804b163fa3f36a9f81a24b39c84a60650a2c18175f7741a7299f84f627130732bd9d68e70cf252070ab662f21d57e9b7760b185ed164954baab87fee2c')
+sha256sums=('7e61f0fe3b7c84acc403dd8e81cb300abb274f8026c3437842bc813621602599')
build() {
cd nbconvert-$pkgver
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
- cd "${_name}-${pkgver}"
+ 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 -vv -k 'TestWebPDFExporter and not (test_export or test_webpdf_without_pyppeteer)'
@@ -47,8 +46,8 @@
}
package() {
- cd "nbconvert-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=0
+ cd nbconvert-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
- install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
More information about the arch-commits
mailing list