From ecdd3778a73eb6c62c5ddd80ebb5cefa39d05003 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:54:37 -0400 Subject: [PATCH] testing/py3-django-channels-redis: move from user --- .../py3-django-channels-redis/APKBUILD | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) rename {user => testing}/py3-django-channels-redis/APKBUILD (62%) diff --git a/user/py3-django-channels-redis/APKBUILD b/testing/py3-django-channels-redis/APKBUILD similarity index 62% rename from user/py3-django-channels-redis/APKBUILD rename to testing/py3-django-channels-redis/APKBUILD index 7c5c714..7f516d7 100644 --- a/user/py3-django-channels-redis/APKBUILD +++ b/testing/py3-django-channels-redis/APKBUILD @@ -9,23 +9,41 @@ arch='noarch' pkgdesc="Redis-backed ASGI channel layer implementation" url="https://pypi.python.org/project/$_pyname" license="BSD-3-Clause" -depends='python3 py3-django-channels py3-asgiref py3-redis py3-msgpack py3-cryptography' -checkdepends='py3-async-timeout py3-pytest py3-pytest-timeout py3-pytest-asyncio' -makedepends='py3-setuptools' +depends=" + py3-django-channels + py3-asgiref + py3-redis + py3-msgpack + py3-cryptography + " +checkdepends=" + py3-async-timeout + py3-pytest + py3-pytest-timeout + py3-pytest-asyncio + " +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " +options="!check" # No testsuite source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver +subpackages="$pkgname-pyc" build() { - python3 setup.py build -} - -check() { - PYTHONPATH="$PWD/src" pytest || true + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" 558ccdb36cad7cb4d97fdc41ed25cfebbc8b381c867ad0b8704dfde8e6d754a4e53a79726260a748b70f906750702c0226774a8574e09bd6933b6ab797ce29df py3-django-channels-redis-4.1.0.tar.gz "