[arch-commits] Commit in python-sphinx-testing/repos/community-any (PKGBUILD PKGBUILD)
Baptiste Jonglez
zorun at archlinux.org
Sun Apr 14 10:35:54 UTC 2019
Date: Sunday, April 14, 2019 @ 10:35:53
Author: zorun
Revision: 451570
archrelease: copy trunk to community-any
Added:
python-sphinx-testing/repos/community-any/PKGBUILD
(from rev 451569, python-sphinx-testing/trunk/PKGBUILD)
Deleted:
python-sphinx-testing/repos/community-any/PKGBUILD
----------+
PKGBUILD | 86 +++++++++++++++++++++++--------------------------------------
1 file changed, 33 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-14 10:35:37 UTC (rev 451569)
+++ PKGBUILD 2019-04-14 10:35:53 UTC (rev 451570)
@@ -1,53 +0,0 @@
-# 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"
-}
Copied: python-sphinx-testing/repos/community-any/PKGBUILD (from rev 451569, python-sphinx-testing/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-04-14 10:35:53 UTC (rev 451570)
@@ -0,0 +1,33 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+
+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')
+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=('2a421b42b2dae8ecad2b4c9d3953f9970e5a9c07bb2c66626338157435e5708c')
+
+build() {
+ cd "$srcdir/sphinx-testing-$pkgver"
+ python 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
+}
+
+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"
+}
More information about the arch-commits
mailing list