Skip to content
Snippets Groups Projects
Commit a66fbd13 authored by Thermi's avatar Thermi Committed by Natanael Copa
Browse files

testing/py3-fastapi: upgrade to 0.111.0

parent a4cd5d70
No related branches found
No related tags found
No related merge requests found
# Contributor: Steven Guikal <void@fluix.one>
# Maintainer: Steven Guikal <void@fluix.one>
pkgname=py3-fastapi
pkgver=0.108.0
pkgver=0.111.0
pkgrel=0
pkgdesc="Modern, high-performance, web framework for building APIs based on standard Python type hints"
url="https://github.com/tiangolo/fastapi"
......@@ -13,19 +13,21 @@ depends="
"
makedepends="
py3-gpep517
py3-hatchling
py3-installer
py3-pdm-backend
"
checkdepends="
py3-aiosqlite
py3-anyio
py3-databases
py3-dirty-equals
py3-email-validator
py3-flask
py3-httpx
py3-orjson
py3-passlib
py3-peewee
py3-pytest
py3-pytest-xdist
py3-pydantic-settings
py3-python-jose
py3-python-multipart
py3-sqlalchemy
......@@ -34,9 +36,7 @@ checkdepends="
py3-yaml
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tiangolo/fastapi/archive/refs/tags/$pkgver.tar.gz
pytest-markers.patch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/tiangolo/fastapi/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/fastapi-$pkgver"
build() {
......@@ -46,13 +46,15 @@ build() {
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# Depends on older SQLAlchemy and slated for removal:
# https://github.com/tiangolo/fastapi/blob/dd4e78ca7b09abdf0d4646fe4697316c021a8b2e/requirements-tests.txt#L9
.testenv/bin/python3 -m pytest -p no:warnings \
--ignore-glob "tests/test_tutorial/*sql_databases" \
--ignore tests/test_dependency_normal_exceptions.py
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer .dist/*.whl
# The deselected tests are failing with "DeprecationWarning: The 'app' shortcut is now deprecated..."
# This has to be addressed upstream
testenv/bin/python3 -m pytest \
--deselect tests/test_tutorial/test_async_tests/test_main.py::test_root[asyncio] \
--deselect tests/test_tutorial/test_async_tests/test_main.py::test_async_testing[asyncio] \
--deselect tests/test_tutorial/test_async_tests/test_main.py::test_root[trio] \
--deselect tests/test_tutorial/test_async_tests/test_main.py::test_async_testing[trio]
}
package() {
......@@ -61,6 +63,5 @@ package() {
}
sha512sums="
c7f1b265c680e75e2654623e14c94d06fa880e219346d577c70bb070dbf15f424ebd4fa4450ce0e364dc4d794ba496dee8e24f20ff292ef6ee7f0eed2aee05a4 py3-fastapi-0.108.0.tar.gz
854946e3e52460edfd84cd44e254659354171e88245f4134c7f943a07bf3b08455ad81c54f4c58c50f639aa7288e25d81711f3d7867bbe2d6c83844e2fdd9921 pytest-markers.patch
3b613e4b2e7253fa08c09f961e69d384d2f44d07dc7f045b669c3e78f21a161715f3e9a0cb813a1c6e793f4a322160ec3eeb4eef90ba59db64bde9baaa539c13 py3-fastapi-0.111.0.tar.gz
"
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