diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-10-23 18:39:29 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-26 12:36:13 +0000 |
commit | 112e29fcf5c4f19dedc49b0ee54fd317451d4355 (patch) | |
tree | c03c981ea1eace2a05084194d7c99c9df2e95d7c /main/py-jinja2 | |
parent | a012a5196b451e971f365f95367fab37128719e2 (diff) | |
download | aports-112e29fcf5c4f19dedc49b0ee54fd317451d4355.tar.bz2 aports-112e29fcf5c4f19dedc49b0ee54fd317451d4355.tar.xz |
main/py-jinja2: add check(), fix dependency and modernize
Diffstat (limited to 'main/py-jinja2')
-rw-r--r-- | main/py-jinja2/APKBUILD | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/main/py-jinja2/APKBUILD b/main/py-jinja2/APKBUILD index 0e39c5dfd6..e8c6995a42 100644 --- a/main/py-jinja2/APKBUILD +++ b/main/py-jinja2/APKBUILD @@ -3,14 +3,14 @@ pkgname=py-jinja2 _pkgname=Jinja2 pkgver=2.10 -pkgrel=1 +pkgrel=2 pkgdesc="A small but fast and easy to use stand-alone python template engine" url="http://jinja.pocoo.org/" arch="noarch" license="BSD" -_py2_depends="py2-markupsafe" -_py3_depends="py3-markupsafe" -makedepends="python2-dev python3-dev py-setuptools $_py2_depends $_py3_depends" +depends="py-markupsafe" +checkdepends="pytest" +makedepends="python2-dev python3-dev py-setuptools" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-doc $pkgname-vim" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" @@ -22,18 +22,24 @@ build() { python3 setup.py build } +check() { + cd "$builddir" + python2 -m pytest . + python3 -m pytest . +} + package() { mkdir -p "$pkgdir" } _py2() { - depends="$_py2_depends" + depends="${depends//py-/py2-}" replaces="$pkgname" _py python2 } _py3() { - depends="$_py3_depends" + depends="${depends//py-/py3-}" _py python3 } |