Skip to content
Snippets Groups Projects
Verified Commit 2a5b4e24 authored by David Runge's avatar David Runge :chipmunk:
Browse files

upgpkg: 0.108.0-1

Deselect only those tests that are failing.
parent d3340068
No related branches found
No related tags found
No related merge requests found
pkgbase = python-fastapi
pkgdesc = FastAPI framework, high performance, easy to learn, fast to code, ready for production
pkgver = 0.104.1
pkgver = 0.108.0
pkgrel = 1
url = https://github.com/tiangolo/fastapi
arch = any
......@@ -49,8 +49,8 @@ pkgbase = python-fastapi
optdepends = python-httpx: for TestClient support
optdepends = python-ujson: for faster JSON parsing and UJSONResponse
optdepends = uvicorn: for Uvicorn as ASGI server
source = fastapi-0.104.1.tar.gz::https://github.com/tiangolo/fastapi/archive/0.104.1.tar.gz
sha512sums = bed93b84709c64e4f6d170faeade91643a9186962ff5d34bb659fb303ea439c4f52f5e9f1e15f4ca0dd56a5e753ccdaa9bf5372deeb7dbd26ae84f59c393e58a
b2sums = c335fbeba34de125d00abec68490f23eefca3b6d313c4a116f887cd66bcebeadf1f8cf78277a42aa81417c4edfb22dad1caf63a9634c20f94c72fddafd00f60b
source = fastapi-0.108.0.tar.gz::https://github.com/tiangolo/fastapi/archive/0.108.0.tar.gz
sha512sums = c7f1b265c680e75e2654623e14c94d06fa880e219346d577c70bb070dbf15f424ebd4fa4450ce0e364dc4d794ba496dee8e24f20ff292ef6ee7f0eed2aee05a4
b2sums = 1e597258cd99afce2766d89d06b184623ee260e78d829c639d676540ece2855870be4939082be57a7ef9802413b1e4128ce6abbfdc301bdd404b2013237d1c11
pkgname = python-fastapi
......@@ -3,7 +3,7 @@
_name=fastapi
pkgname=python-$_name
pkgver=0.104.1
pkgver=0.108.0
pkgrel=1
pkgdesc='FastAPI framework, high performance, easy to learn, fast to code, ready for production'
arch=(any)
......@@ -67,8 +67,8 @@ optdepends=(
'uvicorn: for Uvicorn as ASGI server'
)
source=($_name-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha512sums=('bed93b84709c64e4f6d170faeade91643a9186962ff5d34bb659fb303ea439c4f52f5e9f1e15f4ca0dd56a5e753ccdaa9bf5372deeb7dbd26ae84f59c393e58a')
b2sums=('c335fbeba34de125d00abec68490f23eefca3b6d313c4a116f887cd66bcebeadf1f8cf78277a42aa81417c4edfb22dad1caf63a9634c20f94c72fddafd00f60b')
sha512sums=('c7f1b265c680e75e2654623e14c94d06fa880e219346d577c70bb070dbf15f424ebd4fa4450ce0e364dc4d794ba496dee8e24f20ff292ef6ee7f0eed2aee05a4')
b2sums=('1e597258cd99afce2766d89d06b184623ee260e78d829c639d676540ece2855870be4939082be57a7ef9802413b1e4128ce6abbfdc301bdd404b2013237d1c11')
prepare() {
cd $_name-$pkgver
......@@ -85,20 +85,9 @@ check() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
local pytest_options=(
-vv
--deselect tests/test_dependency_normal_exceptions.py::test_dependency_gets_exception
--deselect tests/test_tutorial/test_body_updates/test_tutorial001.py::test_openapi_schema
--deselect tests/test_tutorial/test_body_updates/test_tutorial001_py310.py::test_openapi_schema
--deselect tests/test_tutorial/test_body_updates/test_tutorial001_py39.py::test_openapi_schema
--deselect tests/test_tutorial/test_dataclasses/test_tutorial003.py::test_openapi_schema
--deselect tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py::test_openapi_schema
--deselect tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py::test_openapi_schema
--deselect tests/test_tutorial/test_path_operation_configurations/test_tutorial005_py310.py::test_openapi_schema
--deselect tests/test_tutorial/test_path_operation_configurations/test_tutorial005_py39.py::test_openapi_schema
--deselect tests/test_tutorial/test_path_params/test_tutorial005.py::test_get_enums_invalid
--deselect tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py::test_openapi_schema
--deselect tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001_py310.py::test_openapi_schema
--deselect tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001_py39.py::test_openapi_schema
--deselect tests/test_tutorial/test_sub_applications/test_tutorial001.py::test_openapi_schema_sub
--deselect tests/test_tutorial/test_templates/test_tutorial001.py::test_main
--deselect tests/test_tutorial/test_wsgi/test_tutorial001.py::test_flask
)
cd $_name-$pkgver
......
  • Chih-Hsuan Yen @yan12125

    mentioned in commit python-anyio@abc55dca

    ·

    mentioned in commit python-anyio@abc55dca

    Toggle commit list
  • Developer

    FWIW, some tests fail as python-starlette is too new. All tests pass if I build this package with https://archive.archlinux.org/packages/p/python-starlette/python-starlette-0.31.1-1-any.pkg.tar.zst

  • Author Developer

    Yes, I'm aware, but upstream keeps locking to usually quite old versions of starlette (which is why we remove the version limitation). It's extremely tedious to wait for upstream compatibility and checking it manually, which is why I'd rather disable some tutorial tests than using the exact same version upstream expects.

  • Developer

    It's extremely tedious to wait for upstream compatibility and checking it manually

    I see. I had a similar issue, so I created a script https://gitlab.com/yan12125/aur/-/blob/ca0d8c54a085f9ecb788d1d9a9bd6e6328e3e5db/scripts/check-packages.py#L126, which might ve useful for you. Basically it runs pip to find out package versions that satisfy upstream version constraints.

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