Date: Saturday, January 14, 2023 @ 17:32:17
Author: yan12125
Revision: 1383471
archrelease: copy trunk to community-any
Added:
python-nbval/repos/community-any/PKGBUILD
(from rev 1383470, python-nbval/trunk/PKGBUILD)
Deleted:
python-nbval/repos/community-any/0001-Make-tests-pass-with-ipykernel-6.0.0.patch
python-nbval/repos/community-any/PKGBUILD
-------------------------------------------------+
0001-Make-tests-pass-with-ipykernel-6.0.0.patch | 34 -------
PKGBUILD | 100 +++++++++-------------
2 files changed, 45 insertions(+), 89 deletions(-)
Deleted: 0001-Make-tests-pass-with-ipykernel-6.0.0.patch
===================================================================
--- 0001-Make-tests-pass-with-ipykernel-6.0.0.patch 2023-01-14 17:32:02 UTC
(rev 1383470)
+++ 0001-Make-tests-pass-with-ipykernel-6.0.0.patch 2023-01-14 17:32:17 UTC
(rev 1383471)
@@ -1,34 +0,0 @@
-From 3e1e6c6f31b86f5fb0e79a6901822dbe62af0891 Mon Sep 17 00:00:00 2001
-From: Chih-Hsuan Yen <[email protected]>
-Date: Sat, 21 Aug 2021 11:41:01 +0800
-Subject: [PATCH] Make tests pass with ipykernel >= 6.0.0
-
-Ref: https://github.com/ipython/ipykernel/pull/685
----
- tests/test_ignore.py | 9 ++++++---
- 1 file changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/tests/test_ignore.py b/tests/test_ignore.py
-index 738c6d2..8e28f95 100644
---- a/tests/test_ignore.py
-+++ b/tests/test_ignore.py
-@@ -22,10 +22,13 @@ def test_conf_ignore_stderr(testdir):
-
- # Setup notebook with stream outputs
- nb = build_nb([
-+ # Since ipykernel 6.0.0, sys.stdout.write and sys.stderr.write
functions
-+ # return the number of written bytes. Capture returned values to
avoid extra
-+ # text/plain fields.
- "import sys",
-- "sys.stdout.write('test\\n')",
-- "sys.stderr.write('error output\\n')",
-- "sys.stdout.write('test\\n')\nsys.stderr.write('error output\\n')",
-+ "ret = sys.stdout.write('test\\n')",
-+ "ret = sys.stderr.write('error output\\n')",
-+ "ret = sys.stdout.write('test\\n')\nret = sys.stderr.write('error
output\\n')",
- ], mark_run=True)
- nb.cells[1].outputs.append(nbformat.v4.new_output(
- 'stream',
---
-2.33.0
-
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-14 17:32:02 UTC (rev 1383470)
+++ PKGBUILD 2023-01-14 17:32:17 UTC (rev 1383471)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-
-pkgname=python-nbval
-pkgver=0.9.6
-pkgrel=4
-pkgdesc="A py.test plugin to validate Jupyter notebooks"
-url="https://github.com/computationalmodelling/nbval"
-license=('BSD')
-arch=('any')
-# python-six can be removed from dependencies in the next version
-# https://github.com/computationalmodelling/nbval/pull/162
-depends=('python-pytest' 'python-six' 'python-jupyter_client'
'jupyter-nbformat' 'python-ipykernel'
- 'python-coverage')
-makedepends=('python-setuptools')
-checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov'
'python-sympy')
-source=("https://github.com/computationalmodelling/nbval/archive/$pkgver/$pkgname-$pkgver.tar.gz"
- "0001-Make-tests-pass-with-ipykernel-6.0.0.patch")
-sha512sums=('ce2122ab490b52537696b2a8e97fd3b604c547af93fccf7d83d82b9180d8bb50b57d002f4e16eb605acabab5b31e961fea97bf2d46bf45b9cd1f8b7fca028df2'
-
'04299db828848a1babc6edbcd553300c8c543eccb35ff78eb24352d0c92ef802f6e245832d0412239d1adcab334957a55cab6f87477a8e832669b9f61655d1f7')
-
-prepare() {
- cd nbval-$pkgver
- patch -Np1 -i ../0001-Make-tests-pass-with-ipykernel-6.0.0.patch
-}
-
-build() {
- cd nbval-$pkgver
- python setup.py build
-}
-
-check() {
- cd nbval-$pkgver
- python setup.py egg_info
-
- # XXX: workarounds for issues in dependencies...
- # 1. ipython uses a function deprecated in matplotlib 3.4 [1]
- # This will be unneeded once the next version of IPython is out [2].
- # Note that matplotlib.MatplotlibDeprecationWarning is inherited from
UserWarning
- # instead of DeprecationWarning [3] until its upcoming version [4].
- export PYTHONWARNINGS="ignore::UserWarning"
- # [1] https://github.com/computationalmodelling/nbval/issues/167
- # [2] https://github.com/ipython/ipython/pull/12889
- # [3]
https://github.com/matplotlib/matplotlib/blob/v3.4.2/lib/matplotlib/_api/deprecation.py#L19
- # [4] https://github.com/matplotlib/matplotlib/pull/20046
-
- 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/
-}
Copied: python-nbval/repos/community-any/PKGBUILD (from rev 1383470,
python-nbval/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-14 17:32:17 UTC (rev 1383471)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-nbval
+pkgver=0.10.0
+pkgrel=1
+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')
+checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov'
'python-sympy')
+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
+}
+
+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/
+}