diff options
Diffstat (limited to 'community/py3-asgiref/APKBUILD')
-rw-r--r-- | community/py3-asgiref/APKBUILD | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/community/py3-asgiref/APKBUILD b/community/py3-asgiref/APKBUILD index fcfbd298ed2..0a27cddcf86 100644 --- a/community/py3-asgiref/APKBUILD +++ b/community/py3-asgiref/APKBUILD @@ -1,27 +1,35 @@ -# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> -# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org> +# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org> pkgname=py3-asgiref -pkgver=3.3.0 +pkgver=3.8.1 pkgrel=0 pkgdesc="ASGI specs, helper code, and adapters" url="https://github.com/django/asgiref/" arch="noarch" license="BSD-3-Clause" -makedepends="py3-setuptools" +makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-asyncio" +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/a/asgiref/asgiref-$pkgver.tar.gz" builddir="$srcdir/asgiref-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH="$PWD/build/lib" py.test-3 + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --root "$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="fbb66af8f0e2bbeed31ae6ac358f045c0eef6cdeec6edbaf358f7551ff24e69233cfbc898b60ac9d16d747a9fb7e10a8b203065602140c025b2ae7d4d7229def asgiref-3.3.0.tar.gz" +sha512sums=" +3ef9ac2fcdce069cde96467abaa4a820c4eac19d40ce72e1afd0ca08279c00053a7e107966d766651def33a72a19c11559849b1032e89d62f544156590ef801d asgiref-3.8.1.tar.gz +" |