mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 18:04:54 +02:00
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-annoying
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=django-annoying
|
|
pkgver=0.10.8
|
|
# did not tag release
|
|
_gittag=d9c116f12403594df8f42fdc9c36f5a2f6a591d3
|
|
pkgrel=0
|
|
pkgdesc="This is a django application that tries to eliminate annoying things in the Django framework."
|
|
url="https://pypi.python.org/project/django-annoying"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-django py3-six py3-flake8 py3-isort"
|
|
checkdepends="python3-dev py3-pytest py3-pytest-django"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
source="
|
|
$pkgname-$_gittag.tar.gz::https://github.com/skorokithakis/django-annoying/archive/$_gittag.tar.gz
|
|
"
|
|
builddir="$srcdir/$_pkgreal-$_gittag"
|
|
subpackages="$pkgname-pyc"
|
|
|
|
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 .testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
5fca8c241d99379e390cbef1b7d0917146383459059cfd4590792f74934dca2c86904262a91373251c5d2fd5aa62fa35edd5bf14ac4e22248d865b88bb122a5d py3-django-annoying-d9c116f12403594df8f42fdc9c36f5a2f6a591d3.tar.gz
|
|
"
|