[arch-commits] Commit in python-sphinx-testing/repos/community-any (3 files)

Baptiste Jonglez zorun at archlinux.org
Mon Dec 3 10:12:00 UTC 2018


    Date: Monday, December 3, 2018 @ 10:12:00
  Author: zorun
Revision: 410897

archrelease: copy trunk to community-any

Added:
  python-sphinx-testing/repos/community-any/PKGBUILD
    (from rev 410896, python-sphinx-testing/trunk/PKGBUILD)
Deleted:
  python-sphinx-testing/repos/community-any/0001-Skip-checking-cleanup-is-called.patch
  python-sphinx-testing/repos/community-any/PKGBUILD

--------------------------------------------+
 0001-Skip-checking-cleanup-is-called.patch |   60 --------------
 PKGBUILD                                   |  112 ++++++++++++---------------
 2 files changed, 53 insertions(+), 119 deletions(-)

Deleted: 0001-Skip-checking-cleanup-is-called.patch
===================================================================
--- 0001-Skip-checking-cleanup-is-called.patch	2018-12-03 10:11:49 UTC (rev 410896)
+++ 0001-Skip-checking-cleanup-is-called.patch	2018-12-03 10:12:00 UTC (rev 410897)
@@ -1,60 +0,0 @@
-From 136add59744446a13a276f50cb0285e116d19fa8 Mon Sep 17 00:00:00 2001
-From: Takeshi KOMIYA <i.tkomiya at gmail.com>
-Date: Tue, 6 Mar 2018 22:10:14 +0900
-Subject: [PATCH] Skip checking cleanup() is called
-
----
- tests/test_util.py | 32 +++++++++++++-------------------
- 1 file changed, 13 insertions(+), 19 deletions(-)
-
-diff --git a/tests/test_util.py b/tests/test_util.py
-index f432325..1a5ce86 100644
---- a/tests/test_util.py
-+++ b/tests/test_util.py
-@@ -96,30 +96,24 @@ class TestSphinxTesting(unittest.TestCase):
-         app = TestApp(create_new_srcdir=True)
-         self.assertTrue(app.builddir.exists())
- 
--        with patch("sphinx.theming.Theme") as Theme:
--            with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective:
--                app.cleanup()
--                self.assertEqual(1, Theme.themes.clear.call_count)
--                self.assertEqual(1, AutoDirective._registry.clear.call_count)
--                self.assertFalse(app.builddir.exists())
-+        with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective:
-+            app.cleanup()
-+            self.assertEqual(1, AutoDirective._registry.clear.call_count)
-+            self.assertFalse(app.builddir.exists())
- 
-     def test_TestApp_cleanup_when_cleanup_on_errors(self):
-         app = TestApp(create_new_srcdir=True, cleanup_on_errors=False)
-         self.assertTrue(app.builddir.exists())
- 
--        with patch("sphinx.theming.Theme") as Theme:
--            with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective:
--                app.cleanup(error=True)
--                self.assertEqual(0, Theme.themes.clear.call_count)
--                self.assertEqual(0, AutoDirective._registry.clear.call_count)
--                self.assertTrue(app.builddir.exists())
--
--        with patch("sphinx.theming.Theme") as Theme:
--            with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective:
--                app.cleanup(error=None)
--                self.assertEqual(1, Theme.themes.clear.call_count)
--                self.assertEqual(1, AutoDirective._registry.clear.call_count)
--                self.assertFalse(app.builddir.exists())
-+        with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective:
-+            app.cleanup(error=True)
-+            self.assertEqual(0, AutoDirective._registry.clear.call_count)
-+            self.assertTrue(app.builddir.exists())
-+
-+        with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective:
-+            app.cleanup(error=None)
-+            self.assertEqual(1, AutoDirective._registry.clear.call_count)
-+            self.assertFalse(app.builddir.exists())
- 
-     def test_with_app(self):
-         srcdir = path(__file__).dirname() / 'examples'
--- 
-2.17.0
-

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-03 10:11:49 UTC (rev 410896)
+++ PKGBUILD	2018-12-03 10:12:00 UTC (rev 410897)
@@ -1,59 +0,0 @@
-# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
-
-pkgbase=python-sphinx-testing
-pkgname=(python-sphinx-testing python2-sphinx-testing)
-pkgver=0.7.2
-pkgrel=2
-pkgdesc="Testing utility classes and functions for Sphinx extensions"
-arch=('any')
-url="https://github.com/sphinx-doc/sphinx-testing"
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-mock' 'python-sphinx' 'python2-mock' 'python2-sphinx')
-source=("https://pypi.io/packages/source/s/sphinx-testing/sphinx-testing-$pkgver.tar.gz"
-        "0001-Skip-checking-cleanup-is-called.patch")
-sha256sums=('9d30f93007620e137b33edf19f52a7225eab853546b7e588ef09d1342e821e94'
-            '21f729deaa27b8476858f0bfa123d83fcc0583fa9fe2b3e22131fc3882f26821')
-
-prepare() {
-  cd "$srcdir/sphinx-testing-$pkgver"
-  # Fix test failure
-  patch -p1 < "$srcdir/0001-Skip-checking-cleanup-is-called.patch"
-  cp -a "$srcdir"/sphinx-testing-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir/sphinx-testing-$pkgver"
-  python setup.py build
-
-  cd "$srcdir/sphinx-testing-$pkgver-py2"
-  python2 setup.py build
-}
-
-check() {
-  export PYTHONPATH="$srcdir/sphinx-testing-$pkgver/src"
-  cd "$srcdir/sphinx-testing-$pkgver/tests"
-  #python setup.py test
-  python -m unittest discover
-
-  export PYTHONPATH="$srcdir/sphinx-testing-$pkgver-py2/src"
-  cd "$srcdir/sphinx-testing-$pkgver-py2/tests"
-  #python2 setup.py test
-  python2 -m unittest discover
-}
-
-package_python-sphinx-testing() {
-  depends=('python-six' 'python-sphinx')
-
-  cd "$srcdir/sphinx-testing-$pkgver"
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-sphinx-testing() {
-  depends=('python2-six' 'python2-sphinx')
-
-  cd "$srcdir/sphinx-testing-$pkgver-py2"
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-sphinx-testing/repos/community-any/PKGBUILD (from rev 410896, python-sphinx-testing/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-03 10:12:00 UTC (rev 410897)
@@ -0,0 +1,53 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+
+pkgbase=python-sphinx-testing
+pkgname=(python-sphinx-testing python2-sphinx-testing)
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="Testing utility classes and functions for Sphinx extensions"
+arch=('any')
+url="https://github.com/sphinx-doc/sphinx-testing"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-mock' 'python-sphinx' 'python2-mock' 'python2-sphinx')
+source=("https://pypi.io/packages/source/s/sphinx-testing/sphinx-testing-$pkgver.tar.gz")
+sha256sums=('2e0b0f03dbc71a044ef862e9c371655cf6042607e54f5c6d41f33470ce9d6fb1')
+
+prepare() {
+  cd "$srcdir/sphinx-testing-$pkgver"
+  cp -a "$srcdir"/sphinx-testing-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/sphinx-testing-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/sphinx-testing-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  export PYTHONPATH="$srcdir/sphinx-testing-$pkgver/src"
+  cd "$srcdir/sphinx-testing-$pkgver/tests"
+  python -m unittest discover
+
+  export PYTHONPATH="$srcdir/sphinx-testing-$pkgver-py2/src"
+  cd "$srcdir/sphinx-testing-$pkgver-py2/tests"
+  python2 -m unittest discover
+}
+
+package_python-sphinx-testing() {
+  depends=('python-six' 'python-sphinx')
+
+  cd "$srcdir/sphinx-testing-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-sphinx-testing() {
+  depends=('python2-six' 'python2-sphinx')
+
+  cd "$srcdir/sphinx-testing-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list