aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Fontaine <antoine.fontaine@epfl.ch>2020-05-31 00:10:38 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-06-26 17:25:46 +0000
commit84a08e3f21f733c389b1e2bf53349e0822f84c4c (patch)
tree96a50c433e4008185b99f2879e90f0d67d35a2e1
parentac4ba47aa907cdc274b72dac1f954afa1e6a5b8b (diff)
downloadaports-84a08e3f21f733c389b1e2bf53349e0822f84c4c.tar.gz
aports-84a08e3f21f733c389b1e2bf53349e0822f84c4c.tar.bz2
aports-84a08e3f21f733c389b1e2bf53349e0822f84c4c.tar.xz
community/py3-async-timeout: enable tests
-rw-r--r--community/py3-async-timeout/APKBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/community/py3-async-timeout/APKBUILD b/community/py3-async-timeout/APKBUILD
index 3876c2fa8a..8526515bc8 100644
--- a/community/py3-async-timeout/APKBUILD
+++ b/community/py3-async-timeout/APKBUILD
@@ -1,30 +1,29 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-async-timeout
_pkgname=async-timeout
pkgver=3.0.1
-pkgrel=2
+pkgrel=3
pkgdesc="Timeout context manager for asyncio programs"
url="https://pypi.python.org/pypi/async_timeout"
arch="noarch"
license="Apache-2.0"
depends="python3"
+checkdepends="py3-pytest py3-pytest-cov py3-pytest-asyncio"
makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
- cd "$builddir"
python3 setup.py build
}
check() {
- cd "$builddir"
- python3 setup.py check
+ python3 -m pytest
}
package() {
- cd "$builddir"
python3 setup.py install --root="$pkgdir"
}