aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2017-11-25 11:29:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-28 17:11:19 +0000
commit87d39936ce8c1ef61c31aafce2d844ea1753c8e4 (patch)
tree1188bf1764bc2fe0460a86ed45825a803695dfbc
parentca1590d25f4aa1c9e2dd9aa7c5c1c8c7000c13a9 (diff)
downloadaports-87d39936ce8c1ef61c31aafce2d844ea1753c8e4.tar.gz
aports-87d39936ce8c1ef61c31aafce2d844ea1753c8e4.tar.bz2
aports-87d39936ce8c1ef61c31aafce2d844ea1753c8e4.tar.xz
main/py-asn1-modules: enable tests
-rw-r--r--main/py-asn1-modules/APKBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/py-asn1-modules/APKBUILD b/main/py-asn1-modules/APKBUILD
index 6c8d64425f..d85ccd7ec9 100644
--- a/main/py-asn1-modules/APKBUILD
+++ b/main/py-asn1-modules/APKBUILD
@@ -1,4 +1,4 @@
-# Maintainer:
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-asn1-modules
_pkgname=pyasn1-modules
pkgver=0.2.1
@@ -8,11 +8,9 @@ url="https://pypi.python.org/pypi/pyasn1-modules"
arch="noarch"
license="BSD"
depends=""
-makedepends="python2-dev python3-dev"
-install=""
+makedepends="python2-dev python3-dev py-asn1"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
builddir="$srcdir"/$_pkgname-$pkgver
build() {
@@ -21,6 +19,12 @@ build() {
python3 setup.py build
}
+check() {
+ cd "$builddir"
+ python2 setup.py test
+ python3 setup.py test
+}
+
package() {
mkdir -p "$pkgdir"
}