[arch-commits] Commit in python-falcon/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Sep 13 21:26:48 UTC 2021


    Date: Monday, September 13, 2021 @ 21:26:46
  Author: dvzrv
Revision: 1014735

upgpkg: python-falcon 3.0.1-1: Upgrade to 3.0.1.

Add gunicorn, hypercorn and uvicorn to checkdepends so they may be tested against.
Fix check() to work with the new test setup and ignore broken test.
Simplify installation in package() to adhere to python package guidelines.

Modified:
  python-falcon/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-13 21:25:27 UTC (rev 1014734)
+++ PKGBUILD	2021-09-13 21:26:46 UTC (rev 1014735)
@@ -2,8 +2,8 @@
 
 _name=falcon
 pkgname=python-falcon
-pkgver=2.0.0
-pkgrel=6
+pkgver=3.0.1
+pkgrel=1
 pkgdesc="Web API framework for building fast and reliable microservices, proxies, and app backends in Python"
 arch=('x86_64')
 url="https://falconframework.org/"
@@ -10,9 +10,13 @@
 license=('Apache')
 depends=('python')
 makedepends=('cython' 'python-setuptools')
-checkdepends=('python-msgpack' 'python-mujson' 'python-rapidjson'
-'python-requests' 'python-pytest' 'python-pytest-runner' 'python-testtools'
-'python-ujson' 'python-yaml')
+# TODO: add python-daphne
+checkdepends=('gunicorn' 'hypercorn' 'python-aiofiles' 'python-cbor2'
+'python-httpx' 'python-jsonschema' 'python-mimeparse' 'python-msgpack'
+'python-mujson' 'python-orjson' 'python-pecan' 'python-pytest'
+'python-pytest-asyncio' 'python-pytest-runner' 'python-rapidjson'
+'python-requests' 'python-testtools' 'python-ujson' 'python-websockets'
+'python-yaml' 'uvicorn')
 optdepends=('python-django: for falcon-bench'
             'python-flask: for falcon-bench'
             'python-pecan: for falcon-bench'
@@ -20,11 +24,11 @@
             'python-pprofile: for falcon-bench'
             'python-vmprof: for falcon-bench')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('1b821d96452208dcfbaa978ecc9340b0b531878aeb362a5b27668fea5f354315275afc7c2ba3012b2cf86c8e32b52d10c932bcf2cc91789a1b4f5a458da5078b')
+sha512sums=('c59c9868aad1536a6872790ca658b47546f64db02a3c5bcacce55d6091f2f29707bf052940b8dee530ddd19a99c286d6c18f31517a9c83417a550deab082026f')
+b2sums=('34325b756695eaa05eb05940c256cd663c652779e6c1070187b0638dc9572db19b6f29519366b40f96b4c03c6160407c926453c9f0ff3c9f5f47e0355c3c3ddd')
 
 prepare() {
   mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
 }
 
 build() {
@@ -33,17 +37,15 @@
 }
 
 check() {
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
   cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -k 'not test_traverse_with_verbose and not test_imported_from_c_modules' \
-         --ignore 'tests/test_media_handlers.py'
+  export PYTHONPATH="build/lib.linux-$CARCH-${python_version}:$PWD:${PYTHONPATH}"
+  pytest -v --ignore "tests/asgi/test_cythonized_asgi.py" tests
 }
 
 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list