mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/py3-django-js-reverse: new aport
This commit is contained in:
parent
b86916b551
commit
b80f8dfa4e
39
testing/py3-django-js-reverse/APKBUILD
Normal file
39
testing/py3-django-js-reverse/APKBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
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
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user