Date: Thursday, May 4, 2023 @ 15:44:55 Author: yan12125 Revision: 1458781
upgpkg: python-nbval 0.10.0-5; build and test with python-nbdime Modified: python-nbval/trunk/PKGBUILD Deleted: python-nbval/trunk/PKGBUILD-enable-nbdime-tests ------------------------------+ PKGBUILD | 19 ++++++------------- PKGBUILD-enable-nbdime-tests | 38 -------------------------------------- 2 files changed, 6 insertions(+), 51 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-05-04 15:36:20 UTC (rev 1458780) +++ PKGBUILD 2023-05-04 15:44:55 UTC (rev 1458781) @@ -3,7 +3,7 @@ pkgname=python-nbval pkgver=0.10.0 -pkgrel=4 +pkgrel=5 pkgdesc="A py.test plugin to validate Jupyter notebooks" url="https://github.com/computationalmodelling/nbval" license=('BSD') @@ -10,21 +10,14 @@ arch=('any') depends=('python-pytest' 'python-jupyter_client' 'jupyter-nbformat' 'python-ipykernel' 'python-coverage') -makedepends=('python-setuptools') -checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov' 'python-sympy') +makedepends=('python-setuptools' 'python-nbdime') +checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov' 'python-pytest-mock' 'python-sympy') +optdepends=( + 'python-nbdime: for --nbdime option' +) source=("https://github.com/computationalmodelling/nbval/archive/$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('65da8cbb2196b0fab591017e3ec83a6ae908db863bf53a989eb48d5037d99587d23abb3729eda38556f3c11c0a769eea60fa77f02c05836178519aac6e923e87') -prepare() { - cd nbval-$pkgver - # Skipping nbdime tests as nbdime is not compatible with jupyter-server 2.x in Arch yet - # https://github.com/jupyter/nbdime/issues/645 - cat > pytest.ini <<EOF -[pytest] -addopts = --ignore tests/test_nbdime_reporter.py -EOF -} - build() { cd nbval-$pkgver python setup.py build Deleted: PKGBUILD-enable-nbdime-tests =================================================================== --- PKGBUILD-enable-nbdime-tests 2023-05-04 15:36:20 UTC (rev 1458780) +++ PKGBUILD-enable-nbdime-tests 2023-05-04 15:44:55 UTC (rev 1458781) @@ -1,38 +0,0 @@ -# Maintainer: Felix Yan <[email protected]> -# Maintainer: Chih-Hsuan Yen <[email protected]> - -pkgname=python-nbval -pkgver=0.10.0 -pkgrel=2 -pkgdesc="A py.test plugin to validate Jupyter notebooks" -url="https://github.com/computationalmodelling/nbval" -license=('BSD') -arch=('any') -depends=('python-pytest' 'python-jupyter_client' 'jupyter-nbformat' 'python-ipykernel' - 'python-coverage') -makedepends=('python-setuptools' 'python-nbdime') -checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov' 'python-pytest-mock' 'python-sympy') -optdepends=( - 'python-nbdime: for --nbdime option' -) -source=("https://github.com/computationalmodelling/nbval/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('65da8cbb2196b0fab591017e3ec83a6ae908db863bf53a989eb48d5037d99587d23abb3729eda38556f3c11c0a769eea60fa77f02c05836178519aac6e923e87') - -build() { - cd nbval-$pkgver - python setup.py build -} - -check() { - cd nbval-$pkgver - python setup.py egg_info - - PYTHONPATH="$PWD" doit test -} - -package() { - cd nbval-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -}
