[arch-commits] Commit in python-sphinx-testing/trunk (PKGBUILD)

Baptiste Jonglez zorun at archlinux.org
Sun Apr 14 10:35:38 UTC 2019


    Date: Sunday, April 14, 2019 @ 10:35:37
  Author: zorun
Revision: 451569

upgpkg: python-sphinx-testing 1.0.0-1

Modified:
  python-sphinx-testing/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++-----------------------------
 1 file changed, 9 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-14 07:19:24 UTC (rev 451568)
+++ PKGBUILD	2019-04-14 10:35:37 UTC (rev 451569)
@@ -1,53 +1,33 @@
 # Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
 
-pkgbase=python-sphinx-testing
-pkgname=(python-sphinx-testing python2-sphinx-testing)
-pkgver=0.8.1
+pkgname=python-sphinx-testing
+pkgver=1.0.0
 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')
+makedepends=('python-setuptools')
+depends=('python-six' 'python-sphinx')
+checkdepends=('python-mock' 'python-sphinx')
 source=("https://pypi.io/packages/source/s/sphinx-testing/sphinx-testing-$pkgver.tar.gz")
-sha256sums=('2e0b0f03dbc71a044ef862e9c371655cf6042607e54f5c6d41f33470ce9d6fb1')
+sha256sums=('2a421b42b2dae8ecad2b4c9d3953f9970e5a9c07bb2c66626338157435e5708c')
 
-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"
+  # Tests fail with sphinx 2.0, see https://github.com/sphinx-doc/sphinx-testing/issues/8
+  # It does not look like a major issue though.
   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')
-
+package() {
   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