aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-distro
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2017-11-28 20:53:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-28 22:15:01 +0000
commit90a94f85fe00d9fa4633bfa4d4f5e85ac91deb88 (patch)
treeca570759ae8558869b56e054df69f21ee63287e1 /testing/py-distro
parent87775ed37366d80e492edff713c4c12de833f631 (diff)
downloadaports-90a94f85fe00d9fa4633bfa4d4f5e85ac91deb88.tar.bz2
aports-90a94f85fe00d9fa4633bfa4d4f5e85ac91deb88.tar.xz
testing/py-distro: include check
Diffstat (limited to 'testing/py-distro')
-rw-r--r--testing/py-distro/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/testing/py-distro/APKBUILD b/testing/py-distro/APKBUILD
index a1844f2ef1..b75a0f3032 100644
--- a/testing/py-distro/APKBUILD
+++ b/testing/py-distro/APKBUILD
@@ -9,14 +9,21 @@ url="https://github.com/nir0s/distro"
arch="noarch"
license="MIT"
makedepends="python2-dev py-setuptools python3-dev"
+options="!check" # tox is not available
+#checkdepends="py3-tox"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ tox
}
package() {