[arch-commits] Commit in uvicorn/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Fri Aug 26 15:59:39 UTC 2022
Date: Friday, August 26, 2022 @ 15:59:39
Author: alucryd
Revision: 1282989
upgpkg: uvicorn 0.18.3-1
Modified:
uvicorn/trunk/PKGBUILD
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++--------------------
1 file changed, 27 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-26 15:59:33 UTC (rev 1282988)
+++ PKGBUILD 2022-08-26 15:59:39 UTC (rev 1282989)
@@ -2,37 +2,44 @@
# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
pkgname=uvicorn
-pkgver=0.18.2
+pkgver=0.18.3
pkgrel=1
pkgdesc='The lightning-fast ASGI server'
-arch=('any')
-url='https://github.com/encode/uvicorn'
-license=('BSD')
-depends=('python' 'python-asgiref' 'python-click' 'python-h11' 'python-websockets' 'python-httptools' 'python-uvloop')
-optdepends=('python-watchgod: watchgod reload')
-makedepends=('git' 'python-setuptools')
-_tag=e674b96c4f9e20c2f6501b0c9e292d386931f9d0
-source=("git+$url#tag=${_tag}")
-sha512sums=('SKIP')
+arch=(any)
+url=https://github.com/encode/uvicorn
+license=(BSD)
+depends=(
+ python
+ python-asgiref
+ python-click
+ python-h11
+ python-httptools
+ python-uvloop
+ python-websockets
+)
+makedepends=(
+ git
+ python-build
+ python-hatchling
+ python-installer
+)
+_tag=ccd1aae48e49dd8c9365600fd79e886efe88be1d
+source=(git+https://github.com/encode/uvicorn#tag=${_tag})
+b2sums=(SKIP)
pkgver() {
- cd $pkgname
-
+ cd uvicorn
git describe --tags
}
build() {
- cd $pkgname
-
- python setup.py build
+ cd uvicorn
+ python -m build --wheel --no-isolation
}
package() {
- cd $pkgname
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
- install -Dm 644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ python -m installer --destdir="${pkgdir}" uvicorn/dist/*.whl
+ install -Dm 644 uvicorn/LICENSE.md -t "${pkgdir}"/usr/share/licenses/uvicorn/
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list