[arch-commits] Commit in python-prometheus_client/trunk (PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Fri Jun 8 17:35:22 UTC 2018
Date: Friday, June 8, 2018 @ 17:35:21
Author: demize
Revision: 326489
python-prometheus_client: run test suite
Modified:
python-prometheus_client/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++++++
1 file changed, 9 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-08 17:33:01 UTC (rev 326488)
+++ PKGBUILD 2018-06-08 17:35:21 UTC (rev 326489)
@@ -11,6 +11,7 @@
makedepends=('python' 'python-setuptools'
'python2' 'python2-setuptools')
+checkdepends=('python-twisted' 'python2-twisted')
source=(client_python-$pkgver.tar.gz::https://github.com/prometheus/client_python/archive/v${pkgver}.tar.gz)
sha512sums=('7336d8294ef91dfebe91f325a882105cdaf947de212bff651d1c3ebfc139d9045b7f637ea44b18e921a9f2ad9af554aee28587e57b1202b5a30c49b1a765ba4c')
@@ -27,6 +28,14 @@
python2 setup.py build
}
+check() {
+ cd client_python-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/client_python-$pkgver-py2
+ python2 setup.py test
+}
+
package_python-prometheus_client() {
depends=('python')
More information about the arch-commits
mailing list