community/py3-a2wsgi: upgrade to 1.10.7

This commit is contained in:
ptrcnull 2024-07-05 22:12:40 +02:00
parent 426556ef32
commit f5d73ba675

View File

@ -1,14 +1,14 @@
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-a2wsgi
pkgver=1.10.4
pkgrel=1
pkgver=1.10.7
pkgrel=0
pkgdesc="Convert WSGI app to ASGI app or ASGI app to WSGI app"
url="https://github.com/abersheeran/a2wsgi"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-gpep517 py3-pdm-backend py3-wheel"
checkdepends="py3-pytest py3-httpx py3-pytest-asyncio"
checkdepends="py3-pytest py3-httpx py3-pytest-asyncio py3-starlette"
subpackages="$pkgname-pyc"
source="https://github.com/abersheeran/a2wsgi/archive/refs/tags/v$pkgver/a2wsgi-$pkgver.tar.gz"
builddir="$srcdir/a2wsgi-$pkgver"
@ -27,7 +27,9 @@ build() {
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
# test_baize_stream_response: baize not packaged + kinda bad
.testenv/bin/python3 -m pytest \
--deselect tests/test_asgi.py::test_baize_stream_response
}
package() {
@ -36,5 +38,5 @@ package() {
}
sha512sums="
0faa5de76bd3fa9bc24e0a4ef07e67695ad29f22427e5b6cea28f2525eab2a78f556617880d4fd8aa3e9731ed726c6dd17360d0bade9bb591f2f687347d64d70 a2wsgi-1.10.4.tar.gz
64415b88488c1f6652dc33ee2db4432d5827135e93786dc08aa8aff54a407e5a83bf574cba81920093a723e3114d37c770fd127932997240e7c573d1151c2895 a2wsgi-1.10.7.tar.gz
"