[arch-commits] Commit in python-ijson/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Jun 30 14:40:33 UTC 2021
Date: Wednesday, June 30, 2021 @ 14:40:32
Author: jelle
Revision: 967987
Add tests
Modified:
python-ijson/trunk/PKGBUILD
----------+
PKGBUILD | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-30 14:28:17 UTC (rev 967986)
+++ PKGBUILD 2021-06-30 14:40:32 UTC (rev 967987)
@@ -9,7 +9,7 @@
url="https://github.com/ICRAR/ijson"
license=('BSD')
depends=('python' 'yajl')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools' 'python-pytest')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ICRAR/ijson/archive/v${pkgver}.tar.gz")
sha256sums=('fd12968282cb60579d7ac61ba2bee4c4771101a56e75890284aa277a7ec67018')
@@ -18,6 +18,12 @@
python setup.py build
}
+check() {
+ cd ijson-$pkgver
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest
+}
+
package(){
cd ijson-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
More information about the arch-commits
mailing list