Date: Friday, September 28, 2018 @ 20:52:04 Author: jelle Revision: 387544
Add tests Modified: python-infinity/trunk/PKGBUILD ----------+ PKGBUILD | 8 ++++++++ 1 file changed, 8 insertions(+) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-09-28 20:44:19 UTC (rev 387543) +++ PKGBUILD 2018-09-28 20:52:04 UTC (rev 387544) @@ -1,3 +1,4 @@ +# Maintainer: Jelle van der Waa <[email protected]> # Contributor: Husam Bilal <husam212 AT gmail DOT com> _name=infinity @@ -7,6 +8,7 @@ pkgdesc='All-in-one infinity value for Python. Can be compared to any object.' url='https://github.com/kvesteri/infinity' depends=('python') +checkdepends=('python-pytest') makedepends=('python-setuptools') license=('BSD') arch=('any') @@ -18,7 +20,13 @@ python setup.py build } +check() { + cd "${srcdir}/${_name}-${pkgver}" + py.test . +} + package() { cd "${srcdir}/${_name}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
