diff --git a/testing/py3-django-js-reverse/APKBUILD b/testing/py3-django-js-reverse/APKBUILD new file mode 100644 index 00000000000..84bdbf3518f --- /dev/null +++ b/testing/py3-django-js-reverse/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-django-js-reverse +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=django-js-reverse +pkgver=0.10.2 +pkgrel=0 +pkgdesc="Javascript url handling for Django that doesn't hurt." +url="https://pypi.python.org/project/django-js-reverse" +arch="noarch" +license="MIT" +depends="py3-django" +checkdepends="py3-coverage" +makedepends="py3-setuptools py3-gpep517 py3-wheel" +source="$pkgname-$pkgver.tar.gz::https://github.com/vintasoftware/django-js-reverse/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" +subpackages="$pkgname-pyc" +options="!check" # Requires py3-js2py + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + DJANGO_SETTINGS_MODULE=tests.settings "$builddir"/.testenv/bin/python3 -m coverage run -p django_js_reverse/tests/unit_tests.py +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +2f9d41894250138ee6b8a1faae78090f4c4953ea3dd2887fb373e3b1ea74d52c15f060da9771f026fa11089d4814638dae38877715acc592083eacd8454d9760 py3-django-js-reverse-0.10.2.tar.gz +"