diff options
author | Carlos Aznarán Laos | 2022-02-21 18:02:53 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2022-02-21 18:02:53 -0500 |
commit | 31d9991304cd1dcd60cc37ef11edba5bf8c95c72 (patch) | |
tree | 9bc440fd4e301d01ac890dd4b0cfb4b42c93b275 | |
parent | 880705410a6e3c1c6578d9c9342142c71d09aad9 (diff) | |
download | aur-31d9991304cd1dcd60cc37ef11edba5bf8c95c72.tar.gz |
Skip test problem_functions
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 8 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = python-niapy pkgdesc = Python microframework for building nature-inspired algorithms pkgver = 2.0.0 - pkgrel = 2 + pkgrel = 3 url = https://NiaPy.org arch = any license = MIT @@ -3,10 +3,10 @@ _base=NiaPy pkgname=python-${_base,,} pkgver=2.0.0 -pkgrel=2 +pkgrel=3 pkgdesc="Python microframework for building nature-inspired algorithms" url="https://${_base}.org" -arch=('any') +arch=(any) license=(MIT) depends=(python-pandas python-matplotlib python-openpyxl) checkdepends=(python-pytest) @@ -19,18 +19,18 @@ prepare() { } build() { - cd "${_base}-${pkgver}" + cd ${_base}-${pkgver} + export PYTHONHASHSEED=0 python setup.py build } check() { - cd "${_base}-${pkgver}" - python -m pytest + cd ${_base}-${pkgver} + python -m pytest -k 'not problem_functions' } package() { - cd "${_base}-${pkgver}" - export PYTHONHASHSEED=0 + cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |