aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-markupsafe
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-10-23 17:36:01 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-23 15:00:28 +0000
commit38631c582795887b6305924143b52e930ba0fd58 (patch)
treeee1cc07ae6b7ece39959a36596118c33daed5a3e /main/py-markupsafe
parent5aa3c8914a17b18d081bec2e4d2dedb3bbea2c32 (diff)
downloadaports-38631c582795887b6305924143b52e930ba0fd58.tar.bz2
aports-38631c582795887b6305924143b52e930ba0fd58.tar.xz
main/py-markupsafe: add check() and modernize
Diffstat (limited to 'main/py-markupsafe')
-rw-r--r--main/py-markupsafe/APKBUILD14
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
}