diff options
-rw-r--r-- | main/py-markupsafe/APKBUILD | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/main/py-markupsafe/APKBUILD b/main/py-markupsafe/APKBUILD index 7f2acb375c..5cac28b205 100644 --- a/main/py-markupsafe/APKBUILD +++ b/main/py-markupsafe/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-markupsafe _pkgname=MarkupSafe pkgver=1.0 -pkgrel=0 +pkgrel=1 pkgdesc="Implements a XML/HTML/XHTML Markup safe string" url="https://github.com/mitsuhiko/markupsafe" arch="all" @@ -16,8 +16,14 @@ 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() { @@ -30,7 +36,7 @@ _py() { install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" find "$subpkgdir" -name "*.c" -delete } |