diff options
author | andalenavals | 2019-01-12 19:04:12 -0200 |
---|---|---|
committer | andalenavals | 2019-01-12 19:04:12 -0200 |
commit | ae7d5da1db0f32d563bcf075e4e1401d7774623d (patch) | |
tree | ba97be99e4880164ca410229f99b52721786c205 /PKGBUILD | |
parent | e40ed0a175292f44b1f2ea87ef71cc6a120983c9 (diff) | |
download | aur-ae7d5da1db0f32d563bcf075e4e1401d7774623d.tar.gz |
Version 1.2 includes nosetests
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 25 |
1 files changed, 11 insertions, 14 deletions
@@ -3,14 +3,13 @@ _pkgname=python-ngmix pkgbase=python-ngmix-git pkgname=("python-ngmix-git" "python2-ngmix-git") -pkgver=v0.9.4.r1.3a0e7ce +pkgver=v1.2.r1.402f4f8 pkgrel=1 pkgdesc=" Gaussian mixture models and other code for working with for 2d images, implemented in python " arch=('x86_64') url="https://github.com/esheldon/ngmix" license=('GPL') -checkdepends=('make') -makedepends=('git' 'python' 'python-numpy' 'python2' 'python2-numpy' ) +makedepends=('git' 'python' 'python-numpy' 'python2' 'python2-numpy' 'python-numba' 'python2-numba' ) source=("${_pkgname}::git+${url}") md5sums=('SKIP') @@ -32,27 +31,25 @@ build() { } check() { - cd "$srcdir"/$_pkgname/test - make test/test-gmix test/test-gmix-model test/test-fastexp test/test-fastexp-speed test/test-image test/test-shape - ./test/test-gmix - ./test/test-gmix-model - ./test/test-fastexp - ./test/test-fastexp-speed - ./test/test-image - ./test/test-shape + cd "$srcdir"/$_pkgname + nosetests -v + + cd "$srcdir"/$_pkgname-py2 + nosetests2 -v || warning 'Tests failed' + } package_python-ngmix-git() { - depends=('python') cd "${_pkgname}" python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } -package_python2-ngmix-git() { - depends=('python2') +package_python2-ngmix-git() { cd "${_pkgname}" python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } |