Date: Monday, March 14, 2022 @ 21:54:53 Author: arojas Revision: 1153973
Update to 5.2.0, switch to PEP517, run tests Modified: jupyter-nbformat/trunk/PKGBUILD ----------+ PKGBUILD | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-03-14 21:29:42 UTC (rev 1153972) +++ PKGBUILD 2022-03-14 21:54:53 UTC (rev 1153973) @@ -1,31 +1,30 @@ # Maintainer: Kyle Keen <keen...@gmail.com> pkgname=jupyter-nbformat -pkgver=5.1.3 -pkgrel=3 +pkgver=5.2.0 +pkgrel=1 pkgdesc="The base implementation of the Jupyter Notebook format and Python APIs for working with notebooks" arch=('any') url="https://pypi.python.org/pypi/nbformat" license=('BSD') depends=('python-traitlets' 'python-jupyter_core' 'python-jsonschema') -makedepends=('python-setuptools') -source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/nbformat/archive/$pkgver.tar.gz" - nbformat-install-data.patch::"https://github.com/jupyter/nbformat/commit/657a7ab5.patch") -md5sums=('dd2a7d13ef6c6661bdc5b94db3255d0a' - 'f21e8726512cee276a50b91e3f0f2885') +makedepends=('python-build' 'python-installer' 'python-wheel') +checkdepends=('python-pytest' 'python-testpath' 'python-fastjsonschema') +source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/nbformat/archive/$pkgver.tar.gz") +md5sums=('835f4d20224a3327b570c2c8ba1ad941') -prepare() { +build() { cd nbformat-$pkgver - #patch -p1 -i ../nbformat-install-data.patch # Fix data install + python -m build --wheel --no-isolation } -build() { +check() { cd nbformat-$pkgver - python setup.py build + pytest } package() { - cd "$srcdir/nbformat-$pkgver" - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0 + cd nbformat-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }