diff mbox series

[meta-python,06/10] python3-fastapi: Upgrade 0.141.1 -> 0.162.0

Message ID 20261031035748.2130261-6-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,01/10] python3-pyroute2: Add missing python3-resource runtime dependency | expand

Commit Message

Khem Raj Oct. 31, 2026, 3:57 a.m. UTC
From: Khem Raj <raj.khem@gmail.com>

Release notes: https://github.com/fastapi/fastapi/releases

* opentelemetry-api is now a runtime dependency
* Add opentelemetry-sdk and git to ptest dependencies, used by the new
  telemetry and translation script tests
* Ignore telemetry tests that need logfire, the opentelemetry OTLP
  exporter and the opentelemetry fastapi instrumentation, which are not
  packaged in meta-python
* Fixes the ptest hang in
  test_frontend_dependency_restores_existing_dependency_stacks with
  starlette 1.10, fixed upstream in 0.142.0

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-devtools/python/python3-fastapi/run-ptest  | 10 +++++++++-
 ...3-fastapi_0.141.1.bb => python3-fastapi_0.162.0.bb} |  5 ++++-
 2 files changed, 13 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-fastapi_0.141.1.bb => python3-fastapi_0.162.0.bb} (89%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-fastapi/run-ptest b/meta-python/recipes-devtools/python/python3-fastapi/run-ptest
index b4d99ee36b..4a8a5b7a87 100644
--- a/meta-python/recipes-devtools/python/python3-fastapi/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-fastapi/run-ptest
@@ -2,4 +2,12 @@ 
 
 # ignore the test from the tutorial
 # those depends on python packages that are not part of OE
-pytest --automake --ignore tests/test_tutorial
+# the ignored telemetry tests need logfire, the opentelemetry otlp exporter
+# and the opentelemetry fastapi instrumentation, which are not part of OE
+pytest --automake --ignore tests/test_tutorial \
+       --ignore tests/test_telemetry/test_background.py \
+       --ignore tests/test_telemetry/test_data.py \
+       --ignore tests/test_telemetry/test_environment_integrations.py \
+       --ignore tests/test_telemetry/test_integrations.py \
+       --ignore tests/test_telemetry/test_native_integrations.py \
+       --ignore tests/test_telemetry/test_runtime.py
diff --git a/meta-python/recipes-devtools/python/python3-fastapi_0.141.1.bb b/meta-python/recipes-devtools/python/python3-fastapi_0.162.0.bb
similarity index 89%
rename from meta-python/recipes-devtools/python/python3-fastapi_0.141.1.bb
rename to meta-python/recipes-devtools/python/python3-fastapi_0.162.0.bb
index 38a691953c..4c5a5b5dc8 100644
--- a/meta-python/recipes-devtools/python/python3-fastapi_0.141.1.bb
+++ b/meta-python/recipes-devtools/python/python3-fastapi_0.162.0.bb
@@ -4,7 +4,7 @@  HOMEPAGE = "https://fastapi.tiangolo.com/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=95792ff3fe8e11aa49ceb247e66e4810"
 
-SRC_URI[sha256sum] = "e8822fc40db1e1858054d7a949a888695bc9bdce70139178e33bd2871a453ca1"
+SRC_URI[sha256sum] = "6a22c1e2e6e32e0633ee7e170f00009a29b8228b16feb219ee42f32fd8d88a8f"
 
 SRC_URI += "file://run-ptest"
 
@@ -22,14 +22,17 @@  RDEPENDS:${PN} += "\
     python3-annotated-doc \
     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 \