From 36950d204838128a03e783f5311cf86e7747d5ce Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:02 -0400 Subject: [PATCH] testing/py3-django-rest-framework-guardian: move from user --- .../APKBUILD | 44 +++++++++++++++++++ .../APKBUILD | 32 -------------- 2 files changed, 44 insertions(+), 32 deletions(-) create mode 100644 testing/py3-django-rest-framework-guardian/APKBUILD delete mode 100644 user/py3-django-rest-framework-guardian/APKBUILD diff --git a/testing/py3-django-rest-framework-guardian/APKBUILD b/testing/py3-django-rest-framework-guardian/APKBUILD new file mode 100644 index 0000000..3508875 --- /dev/null +++ b/testing/py3-django-rest-framework-guardian/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=djangorestframework-guardian +pkgname=py3-django-rest-framework-guardian +pkgver=0.3.0 +pkgrel=0 +arch="noarch" +pkgdesc="django-guardian support for Django REST Framework" +url="https://pypi.python.org/project/$_pyname" +license="MIT" +depends=" + py3-django-rest-framework + py3-django-guardian + " +makedepends=" + py3-setuptools + py3-gpep517 + py3-wheel + py3-installer + " +options="!check" # Broken testsuite +source="$pkgname-$pkgver.tar.gz::https://github.com/rpkilby/django-rest-framework-guardian/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir"/django-rest-framework-guardian-$pkgver +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 ./manage.py --no-input -v 2 +} + +package() { + python3 -m installer -d "$pkgdir" \ + dist/*.whl +} + +sha512sums=" +ce196162f42671e6eeb56b17dd432380ff99626dd541b8d2e7e80e4ec7bfc5c884fd3c37652632363173368f9eb1ae0aa82dc25cb1c46ba927f2170d1abbce94 py3-django-rest-framework-guardian-0.3.0.tar.gz +" diff --git a/user/py3-django-rest-framework-guardian/APKBUILD b/user/py3-django-rest-framework-guardian/APKBUILD deleted file mode 100644 index d344118..0000000 --- a/user/py3-django-rest-framework-guardian/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=djangorestframework-guardian -pkgname=py3-django-rest-framework-guardian -pkgver=0.3.0 -pkgrel=2 -arch="noarch" -pkgdesc="django-guardian support for Django REST Framework" -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="py3-django-rest-framework" -makedepends="py3-setuptools" -checkdepends="py3-pytest" -source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" -builddir="$srcdir"/$_pyname-$pkgver - -build() { - python3 setup.py build -} - -check() { - PYTHONPATH="$PWD/src" pytest || true -} - -package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} -sha512sums=" -a6fb1993f558a5267af5b303e08632a6128fa68057d6df62c111a7a10ad1817942a1bcb9d61abf34f7580c79c93970894f81d6e8ab94158635da298e036471cc py3-django-rest-framework-guardian-0.3.0.tar.gz -"