diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-05-30 13:27:44 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-05-30 13:27:44 +0000 |
commit | a6e03f4abbc28fb6e08e402d554bef477e3e17e9 (patch) | |
tree | c565ed915d3d38108ccb051a8d34fa4efc942663 /testing | |
parent | bd307058bf361c8068c3d106740098afd13083a0 (diff) | |
download | aports-a6e03f4abbc28fb6e08e402d554bef477e3e17e9.tar.bz2 aports-a6e03f4abbc28fb6e08e402d554bef477e3e17e9.tar.xz |
testing/py-cycler: modernize APKBUILD, add check()
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-cycler/APKBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/testing/py-cycler/APKBUILD b/testing/py-cycler/APKBUILD index 6c3d90eee5..0c421fac91 100644 --- a/testing/py-cycler/APKBUILD +++ b/testing/py-cycler/APKBUILD @@ -3,23 +3,27 @@ pkgname=py-cycler _pkgname=cycler pkgver=0.10.0 -pkgrel=1 +pkgrel=2 pkgdesc="Composable style cycles in Python" url="http://matplotlib.org/cycler/" arch="noarch" license="BSD" -depends="" -depends_dev="" makedepends="python2-dev python3-dev py-setuptools" -install="" +checkdepends="py-nose" subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" source="https://files.pythonhosted.org/packages/source/C/Cycler/$_pkgname-$pkgver.tar.gz" - builddir="${srcdir}/${_pkgname}-$pkgver" + build() { - cd "$builddir" || return 1 - python2 setup.py build || return 1 - python3 setup.py build || return 1 + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 run_tests.py + python3 run_tests.py } package() { |