aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2022-01-10 19:11:17 +0100
committerFrancesco Colista <fcolista@alpinelinux.org>2022-01-10 18:24:42 +0000
commit151c80ef145f7fde084993a13e1a949194b0f962 (patch)
tree69c9b29227e2188639d9dcae1ab4eefcca85a862
parentc1944e200d4aeb4d51fc97b05daffe17cffdc275 (diff)
downloadaports-151c80ef145f7fde084993a13e1a949194b0f962.tar.gz
aports-151c80ef145f7fde084993a13e1a949194b0f962.tar.bz2
aports-151c80ef145f7fde084993a13e1a949194b0f962.tar.xz
main/py3-idna: add tests
-rw-r--r--main/py3-idna/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/py3-idna/APKBUILD b/main/py3-idna/APKBUILD
index 668415c3e13..a96be3c9816 100644
--- a/main/py3-idna/APKBUILD
+++ b/main/py3-idna/APKBUILD
@@ -3,13 +3,14 @@
pkgname=py3-idna
_pkgname=idna
pkgver=3.3
-pkgrel=1
+pkgrel=2
pkgdesc="IDNA 2008 and UTS #46 for Python3"
url="https://github.com/kjd/idna"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
+checkdepends="py3-pytest"
source="idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
@@ -20,6 +21,10 @@ build() {
python3 setup.py build
}
+check() {
+ pytest
+}
+
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}