[arch-commits] Commit in pyalpm/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Wed Jan 16 18:41:12 UTC 2019


    Date: Wednesday, January 16, 2019 @ 18:41:12
  Author: jelle
Revision: 344304

Run tests

Modified:
  pyalpm/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-16 16:48:23 UTC (rev 344303)
+++ PKGBUILD	2019-01-16 18:41:12 UTC (rev 344304)
@@ -7,7 +7,7 @@
 arch=('x86_64')
 url="https://git.archlinux.org/pyalpm.git/"
 license=('GPL')
-makedepends=('git')
+makedepends=('git' 'python-pytest')
 depends=('python>=3.6' 'pacman>=5.0')
 source=("git+https://git.archlinux.org/pyalpm.git#commit=ec89afb96636a3449006323030dd1768c143c5f5")
 validpgpkeys=('E499C79F53C96A54E572FEE1C06086337C50773E')
@@ -18,6 +18,11 @@
   python setup.py build
 }
 
+check() {
+  cd ${srcdir}/${pkgname}
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.7" pytest
+}
+
 package() {
   cd ${srcdir}/${pkgname}
   python setup.py install --root=${pkgdir}



More information about the arch-commits mailing list