[arch-commits] Commit in python-nbval/repos/community-staging-any (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:44:24 UTC 2021


    Date: Friday, December 3, 2021 @ 00:44:24
  Author: felixonmars
Revision: 1064013

archrelease: copy trunk to community-staging-any

Added:
  python-nbval/repos/community-staging-any/0001-Make-tests-pass-with-ipykernel-6.0.0.patch
    (from rev 1064011, python-nbval/trunk/0001-Make-tests-pass-with-ipykernel-6.0.0.patch)
  python-nbval/repos/community-staging-any/PKGBUILD
    (from rev 1064011, python-nbval/trunk/PKGBUILD)
Deleted:
  python-nbval/repos/community-staging-any/0001-Make-tests-pass-with-ipykernel-6.0.0.patch
  python-nbval/repos/community-staging-any/PKGBUILD

-------------------------------------------------+
 0001-Make-tests-pass-with-ipykernel-6.0.0.patch |   68 ++++++-------
 PKGBUILD                                        |  110 +++++++++++-----------
 2 files changed, 89 insertions(+), 89 deletions(-)

Deleted: 0001-Make-tests-pass-with-ipykernel-6.0.0.patch
===================================================================
--- 0001-Make-tests-pass-with-ipykernel-6.0.0.patch	2021-12-03 00:44:22 UTC (rev 1064012)
+++ 0001-Make-tests-pass-with-ipykernel-6.0.0.patch	2021-12-03 00:44:24 UTC (rev 1064013)
@@ -1,34 +0,0 @@
-From 3e1e6c6f31b86f5fb0e79a6901822dbe62af0891 Mon Sep 17 00:00:00 2001
-From: Chih-Hsuan Yen <yan12125 at gmail.com>
-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
-

Copied: python-nbval/repos/community-staging-any/0001-Make-tests-pass-with-ipykernel-6.0.0.patch (from rev 1064011, python-nbval/trunk/0001-Make-tests-pass-with-ipykernel-6.0.0.patch)
===================================================================
--- 0001-Make-tests-pass-with-ipykernel-6.0.0.patch	                        (rev 0)
+++ 0001-Make-tests-pass-with-ipykernel-6.0.0.patch	2021-12-03 00:44:24 UTC (rev 1064013)
@@ -0,0 +1,34 @@
+From 3e1e6c6f31b86f5fb0e79a6901822dbe62af0891 Mon Sep 17 00:00:00 2001
+From: Chih-Hsuan Yen <yan12125 at gmail.com>
+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	2021-12-03 00:44:22 UTC (rev 1064012)
+++ PKGBUILD	2021-12-03 00:44:24 UTC (rev 1064013)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-nbval
-pkgver=0.9.6
-pkgrel=3
-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-staging-any/PKGBUILD (from rev 1064011, python-nbval/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-03 00:44:24 UTC (rev 1064013)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+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/
+}



More information about the arch-commits mailing list