ilot/py3-django-tenant-schemas: new aport #30

Merged
ayakael merged 2 commits from py3-tenant-schemas/initial into v3.20 2024-09-30 13:18:57 +00:00
2 changed files with 50 additions and 2 deletions

View file

@ -0,0 +1,48 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-tenant-schemas
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=django-tenant-schemas
pkgver=1.12.0
pkgrel=0
pkgdesc="Tenant support for Django using PostgreSQL schemas."
url="https://pypi.python.org/project/django-tenant-schemas"
arch="noarch"
license="MIT"
depends="
py3-django
py3-ordered-set
py3-six
py3-psycopg2
"
checkdepends="py3-pytest"
makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-wheel"
source="
$pkgname-$pkgver.tar.gz::https://github.com/bernardopires/django-tenant-schemas/archive/refs/tags/v$pkgver.tar.gz
"
options="!check" # requires pg
builddir="$srcdir/$_pkgreal-$pkgver"
subpackages="$pkgname-pyc"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
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
cd tenant_schemas
DJANGO_SETTINGS_MODULE=tests.settings ../.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
758f68dc834d4c0074097b166d742a7d63c86b6426ad67d3ce2f56983d417666bf05ae9c46b3ee89a04dee2d888892463651355d26eda7c265ebee8971992319 py3-django-tenant-schemas-1.12.0.tar.gz
"

View file

@ -4,12 +4,12 @@ pkgname=py3-django-tenants
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=django-tenants
pkgver=3.6.1
pkgrel=3
pkgrel=4
pkgdesc="Tenant support for Django using PostgreSQL schemas."
url="https://pypi.python.org/project/django-tenants"
arch="noarch"
license="MIT"
depends="py3-django py3-psycopg py3-gunicorn py3-coverage"
depends="py3-django py3-psycopg py3-gunicorn py3-coverage py3-django-tenant-schemas"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="