mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 08:44:32 +02:00
52 lines
1.5 KiB
Text
52 lines
1.5 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-autocomplete-light
|
|
pkgver=3.12.1
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=django-autocomplete-light
|
|
pkgdesc="Fresh autocompletes for Django"
|
|
url="https://pypi.python.org/project/django-autocomplete-light"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-six
|
|
py3-django-querysetsequence
|
|
py3-django-taggit
|
|
py3-django-extensions
|
|
py3-django-nested-admin
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-flake8
|
|
py3-pep8-naming
|
|
py3-mccabe
|
|
py3-pytest-django
|
|
"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/yourlabs/django-autocomplete-light/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
options="!check" # depends on py3-selenium, repackaged chrome
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/test_project
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
|
|
DJANGO_SETTINGS_MODULE=settings.base .testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7a84c57523a7a49df62bf62f1ab5cb5156bbeb8eb348066b043d71e350c2cbba3572e696ec8b58fed8eb7e765df2d85f18f102ce796c1ffc384f0caa8708e005 py3-django-autocomplete-light-3.12.1.tar.gz
|
|
"
|