testing/py3-django-guardian: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:54:51 -04:00
parent d31e1cec52
commit 56d3b5f467

View file

@ -4,35 +4,45 @@
_pyname=django-guardian _pyname=django-guardian
pkgname="py3-$_pyname" pkgname="py3-$_pyname"
pkgver=2.4.0 pkgver=2.4.0
pkgrel=1 pkgrel=0
arch="noarch" arch="noarch"
pkgdesc="Implementation of per object permissions on top of Djangos authorization backend" pkgdesc="Implementation of per object permissions on top of Djangos authorization backend"
url="https://pypi.python.org/project/$_pyname" url="https://pypi.python.org/project/$_pyname"
license="MIT" license="MIT"
depends="py3-django py3-django-environ" depends="
makedepends="py3-setuptools" py3-django
checkdepends="py3-pytest py3-pytest-django" py3-django-environ
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
py3-installer
"
checkdepends="
py3-pytest
py3-pytest-django
"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
} }
check() { check() {
PYTHONPATH="$PWD/src" pytest || true pytest -v
} }
package() { package() {
python3 setup.py install --skip-build \ python3 -m installer -d "$pkgdir" \
--optimize=1 \ dist/*.whl
--root="$pkgdir"
install -vDm 644 AUTHORS -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 CHANGES -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
} }
sha512sums=" sha512sums="
7e65a27fbb485a047dd02466b7e36daceb4a27b5ff30ec035fa37b7d300e78e43de213606e54d0b1be2e64ae8835a55cef98788ae45ec2446e502fdd312d8ed6 py3-django-guardian-2.4.0.tar.gz 7e65a27fbb485a047dd02466b7e36daceb4a27b5ff30ec035fa37b7d300e78e43de213606e54d0b1be2e64ae8835a55cef98788ae45ec2446e502fdd312d8ed6 py3-django-guardian-2.4.0.tar.gz
" "