aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-12-28 22:36:59 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-12-28 23:10:46 +0100
commit01d545ab284f43a41de9b8099ef3e950d1b4961e (patch)
tree9825b59b937f4adf418291ed51c3bd7acae61546
parent8b0dd42d0d145759ed1dc997b64449c184521df6 (diff)
downloadaports-01d545ab284f43a41de9b8099ef3e950d1b4961e.tar.bz2
aports-01d545ab284f43a41de9b8099ef3e950d1b4961e.tar.xz
main/py3-imagesize: add checkdepends, run test suite
-rw-r--r--main/py3-imagesize/APKBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/py3-imagesize/APKBUILD b/main/py3-imagesize/APKBUILD
index d96d71aa17..f3e5b0155f 100644
--- a/main/py3-imagesize/APKBUILD
+++ b/main/py3-imagesize/APKBUILD
@@ -9,6 +9,7 @@ arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
+checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz"
builddir="$srcdir/imagesize-$pkgver"
@@ -19,6 +20,10 @@ build() {
python3 setup.py build
}
+check() {
+ py.test-3 test/test_get.py -v
+}
+
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}