diff options
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() { |