From d6e8e9b1dd25727664a0b73481dc6daccba80463 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Feb 2018 10:10:31 +0000 Subject: testing/py-zeroconf: prefare for check() --- testing/py-zeroconf/APKBUILD | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/testing/py-zeroconf/APKBUILD b/testing/py-zeroconf/APKBUILD index 994a2c181d..4e9d7f95f9 100644 --- a/testing/py-zeroconf/APKBUILD +++ b/testing/py-zeroconf/APKBUILD @@ -3,21 +3,29 @@ pkgname=py-zeroconf _pkgname=zeroconf pkgver=0.19.1 -pkgrel=0 +pkgrel=1 pkgdesc="A Python implementation of multicast DNS service discovery" url="https://github.com/jstasiak/python-zeroconf" arch="noarch" license="LGPL-2.0-or-later" +# Tests require netlink support which is no present in AL +options="!check" depends="py-six py-netifaces" -makedepends="python2-dev py-setuptools python3-dev" +makedepends="python2-dev py-setuptools python3-dev py-netifaces py3-netifaces" 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" + python2 setup.py test + python3 setup.py test } package() { -- cgit v1.2.3