Files
meta-openembedded/meta-python/recipes-devtools/python/python3-fastapi_0.163.1.bb
T
Khem Raj 54d3948df8 python3-fastapi: upgrade 0.162.0 -> 0.163.1
FastAPI now depends on anyio directly. The settings examples were
renamed upstream; drop all docs_src/settings/app02* examples, they need
pydantic-settings which isn't packaged.

Changes:
- 0.163.0: add dependency concurrency limits with
  Depends(max_concurrency=...).
- 0.162.6: breaking, drops support for Python 3.10.
- 0.162.4: require AnyIO 4.1.0 or newer at runtime.
- Fixes: async and sync yield-dependency cleanup on cancellation
  (0.162.5/0.162.7), OpenAPI for response models with nested computed
  fields (0.163.1).

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-11-17 12:58:54 -08:00

55 lines
1.8 KiB
BlitzBasic

SUMMARY = "FastAPI framework"
DESCRIPTION = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
HOMEPAGE = "https://fastapi.tiangolo.com/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=95792ff3fe8e11aa49ceb247e66e4810"
SRC_URI[sha256sum] = "3d364b02a68b67292e833ff2dfed3b8dc3aeadf73e271c15316c6c166668792f"
SRC_URI += "file://run-ptest"
CVE_PRODUCT = "tiangolo:fastapi"
inherit pypi python_pdm ptest-python-pytest
PACKAGECONFIG ?= ""
# swagger-ui is in meta-webserver that meta-python does not depend upon
# Users can still enable it in their distros explicitly but its disabled
# by default
PACKAGECONFIG[swagger-ui] = ",,,swagger-ui"
RDEPENDS:${PN} += "\
python3-annotated-doc \
python3-anyio \
python3-fastapi-cli \
python3-json \
python3-opentelemetry-api \
python3-pydantic \
python3-starlette \
python3-typing-extensions \
"
RDEPENDS:${PN}-ptest += "\
git \
python3-coverage \
python3-httpx \
python3-opentelemetry-sdk \
python3-orjson \
python3-dirty-equals \
python3-pytest-httpx \
python3-python-multipart \
python3-sqlalchemy \
python3-trio \
"
do_install_ptest:append() {
install -d ${D}${PTEST_PATH}/scripts
cp -rf ${S}/scripts/* ${D}${PTEST_PATH}/scripts/
rm -rf ${D}${PTEST_PATH}/scripts/tests
cp -rf ${S}/docs_src ${D}${PTEST_PATH}/
echo "import sys; from pathlib import Path; sys.path.insert(0, str(Path(__file__).parent))" > ${D}${PTEST_PATH}/conftest.py
# these docs examples need python3-pydantic-settings, which meta-python
# doesn't package
rm -rf ${D}${PTEST_PATH}/docs_src/settings/app02*
}