43 lines
1.5 KiB
Text
43 lines
1.5 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-tenants
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=django-tenants
|
|
pkgver=3.6.1
|
|
pkgrel=0
|
|
pkgdesc="Tenant support for Django using PostgreSQL schemas."
|
|
url="https://pypi.python.org/project/django-tenants"
|
|
arch="noarch"
|
|
license="KIT"
|
|
depends="py3-django py3-psycopg py3-gunicorn py3-coverage"
|
|
checkdepends="python3-dev py3-pytest"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://codeload.github.com/django-tenants/django-tenants/tar.gz/refs/tags/v$pkgver
|
|
997_update-from-pgclone-schema.patch
|
|
"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
options="!check" # Requires setting up test database
|
|
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="
|
|
b18afce81ccc89e49fcc4ebe85d90be602415ca898c1660a4e71e2bef6a3ed2e8c724e94b61d8c6f48f3fb19eb2a87d6a6f5bbf449b3e2f661f87e4b5638eafb py3-django-tenants-3.6.1.tar.gz
|
|
f2424bb188db2e3c7d13c15e5bdf0959c6f794e68dbc677c8b876d4faa321f78aded5565539f1bfd97583c6df0fcc19ec05abe203b08407e4446dd7194756825 997_update-from-pgclone-schema.patch
|
|
"
|