Skip to content
Snippets Groups Projects
Commit 639689ca authored by David Runge's avatar David Runge :chipmunk:
Browse files

Upgrade to 3.1.1.

Install wheel to test location in check() to run tests.
Add additional optdepends.
parent f86d77da
No related branches found
Tags 7.0.0-4
No related merge requests found
......@@ -2,7 +2,7 @@
_name=falcon
pkgname=python-falcon
pkgver=3.1.0
pkgver=3.1.1
pkgrel=1
pkgdesc="Web API framework for fast and reliable microservices, proxies, and app backends"
arch=(x86_64)
......@@ -17,18 +17,20 @@ 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-bottle: for falcon-bench'
'python-django: for falcon-bench'
'python-flask: for falcon-bench'
'python-jsonschema: for JSON schema validation'
'python-msgpack: for MessagePackHandler'
'python-pecan: for falcon-bench'
'python-bottle: for falcon-bench'
'python-pprofile: for falcon-bench'
'python-vmprof: for falcon-bench'
)
# not all required files for tests contained in pypi sdist tarball: https://github.com/falconry/falcon/issues/2051
# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
source=($_name-$pkgver.tar.gz::https://github.com/falconry/$_name/archive/refs/tags/$pkgver.tar.gz)
sha512sums=('9da76dd92dfce1611ef681588d8e0e2fc7e906b5c0bc4b60a4620e2e9907564783763b7776c9cc2ccb296116c985e527b2f429520a1c601567cf4eb15e98f8cc')
b2sums=('183623c8d7e8b86ed9915cbf3757fd526f7f3a8a97ae5fdf86294bcc65052c5c827d4a920d93e9fa0198a8d255c7b56ecff465a36d9b0ea31581abd87d55ccd0')
sha512sums=('d6d0ff20a64400a28e45bf30de38c1d989f78f0aef97467a1e464aa3bffca8027728948fae604f2fecd00cc79488301b2d842c0c1436ee15f50c666e03ff9ecd')
b2sums=('7c9d1bab73df864632f6d649a4a9894b35837bcca91eb05ce67447b4139274cd326e31f88ed3a0015a3dd82509b5d8d7ab1f439d0fdd190957e06b49f51daa9b')
build() {
cd $_name-$pkgver
......@@ -36,11 +38,12 @@ build() {
}
check() {
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd $_name-$pkgver
export PYTHONPATH="build/lib.linux-$CARCH-$python_version:$PWD:$PYTHONPATH"
pytest -v --ignore "tests/asgi/test_cythonized_asgi.py" tests
python -m installer --destdir=test_dir dist/*.whl
export PYTHONPATH="$PWD/test_dir/$_site_packages:$PYTHONPATH"
pytest -vv tests/
}
package() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment