diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 12:14:12 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 12:26:42 -0300 |
commit | ab0999d01793e786f752a1207bae895cc73e54e0 (patch) | |
tree | 559a66ea6fdad891770602eddcedee13f11827e7 /testing/py3-parameterized | |
parent | dd7faeee0c6471dcb69856f2998dbd5900954cfe (diff) | |
download | aports-ab0999d01793e786f752a1207bae895cc73e54e0.tar.bz2 aports-ab0999d01793e786f752a1207bae895cc73e54e0.tar.xz |
testing/py3-paramaterized: rename from py-parameterized
Diffstat (limited to 'testing/py3-parameterized')
-rw-r--r-- | testing/py3-parameterized/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/py3-parameterized/APKBUILD b/testing/py3-parameterized/APKBUILD new file mode 100644 index 0000000000..ddbb10781a --- /dev/null +++ b/testing/py3-parameterized/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=py-parameterized +_pkgname=parameterized +pkgver=0.7.0 +pkgrel=1 +pkgdesc="Parameterized testing with any Python test framework" +url="https://pypi.python.org/pypi/parameterized" +arch="noarch" +license="BSD" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +checkdepends="py-nose py2-nose py-mock py2-mock" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/parameterized/parameterized-$pkgver.tar.gz" +builddir="$srcdir/"$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + nosetests + nosetests-2.7 +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="b76e18a7eee62fcab4385fd5d053253c096d4c3fc3a6300e8539afc4d8decc995e533085297c52f8a26411d2591a326033a740cc30a250d510aa1c11ee904246 py-parameterized-0.7.0.tar.gz" |