[arch-commits] Commit in python-texttable/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu May 18 03:33:42 UTC 2017
Date: Thursday, May 18, 2017 @ 03:33:41
Author: felixonmars
Revision: 228400
upgpkg: python-texttable 0.9.0-1
Modified:
python-texttable/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-17 23:59:51 UTC (rev 228399)
+++ PKGBUILD 2017-05-18 03:33:41 UTC (rev 228400)
@@ -6,7 +6,7 @@
# Contributor: Daniel YC Lin <dlin.tw at gmail>
pkgname=(python-texttable python2-texttable)
-pkgver=0.8.8
+pkgver=0.9.0
pkgrel=1
pkgdesc="Generate a formatted text table using ASCII characters"
arch=('any')
@@ -13,8 +13,9 @@
url="https://pypi.python.org/pypi/texttable/"
license=('LGPL')
makedepends=('python' 'python2')
+checkdepends=('python-pytest' 'python2-pytest')
source=("https://pypi.io/packages/source/t/texttable/texttable-$pkgver.tar.gz")
-sha512sums=('4db089bee787103c00a54dfffcad15a8c299abeb48623c3b179f2a872bcae159a4e7068b2e4ca0efec95e6782b806a5898ad6e57f4290be697d0c8b913446b32')
+sha512sums=('cdbaa6f54f1b70be48f1ee685ed43ffc7e6388a50c06ba544748d6d5ecbf3dbbf92803850fa9ec3d8f5675020ebd3cc8ca0b2e4dc72078cbdcddad4a07cd7ef0')
prepare() {
cp -a texttable-$pkgver{,-py2}
@@ -28,6 +29,14 @@
python2 setup.py build
}
+check() {
+ cd "$srcdir"/texttable-$pkgver
+ py.test tests.py
+
+ cd "$srcdir"/texttable-$pkgver-py2
+ py.test2 tests.py
+}
+
package_python-texttable() {
depends=('python')
More information about the arch-commits
mailing list