backports/uvicorn: upgrade to 0.22.0
This commit is contained in:
parent
d57017d3f6
commit
96f7d1a306
1 changed files with 12 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
# Contributor: Michał Polański <michal@polanski.me>
|
||||
# Maintainer: Michał Polański <michal@polanski.me>
|
||||
pkgname=uvicorn
|
||||
pkgver=0.18.3
|
||||
pkgver=0.22.0
|
||||
pkgrel=0
|
||||
pkgdesc="Lightning-fast ASGI server"
|
||||
url="https://www.uvicorn.org/"
|
||||
|
@ -13,31 +13,32 @@ depends="
|
|||
py3-click
|
||||
py3-h11
|
||||
"
|
||||
makedepends="py3-build py3-hatchling py3-installer"
|
||||
makedepends="py3-gpep517 py3-hatchling"
|
||||
checkdepends="
|
||||
py3-a2wsgi
|
||||
py3-dotenv
|
||||
py3-httptools
|
||||
py3-httpx
|
||||
py3-pytest
|
||||
py3-pytest-mock
|
||||
py3-yaml
|
||||
py3-trustme
|
||||
py3-watchgod
|
||||
py3-watchfiles
|
||||
py3-websockets
|
||||
py3-wsproto
|
||||
py3-yaml
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://github.com/encode/uvicorn/archive/$pkgver/uvicorn-$pkgver.tar.gz"
|
||||
|
||||
case "$CARCH" in
|
||||
# test suite blocked by py3-httpx
|
||||
armhf|ppc64le) options="!check" ;;
|
||||
# test suite blocked by py3-watchgod
|
||||
s390x) options="!check" ;;
|
||||
esac
|
||||
|
||||
build() {
|
||||
python3 -m build --no-isolation --wheel
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
|
@ -45,11 +46,10 @@ check() {
|
|||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" dist/uvicorn-$pkgver-py3-none-any.whl
|
||||
|
||||
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/uvicorn-$pkgver-py3-none-any.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a4983e7095f3596ac54557432a074eb8cae4c6dd579fabfe8b6c34606ba8258e6c0684c2e34e8019f2455fbfd1771f8c2c88bf8b01fc505abfae93655f61f032 uvicorn-0.18.3.tar.gz
|
||||
61af2df426a5bc060a32730ddf024ca8dd39ccea6800235bf48d7e0c694b9d363cbedd826f498063c6779061af84b6b56e8ab0a466e74291dbbaf5ae995e5587 uvicorn-0.22.0.tar.gz
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue