From a555730e42f9c1e3ed2523b57565dbbb833d88af Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 30 Nov 2025 09:24:43 -0800 Subject: python3-fastapi: Turn swagger-ui dependency into packageconfig Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb b/meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb index 37a475ef8f..a5c9d257b0 100644 --- a/meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb +++ b/meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb @@ -9,6 +9,12 @@ SRC_URI += "file://run-ptest" inherit pypi python_pdm ptest-python-pytest +PACKAGECONFIG ?= "" +# swagger-ui is in meta-xfce 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-fastapi-cli \ @@ -18,6 +24,4 @@ RDEPENDS:${PN} += "\ python3-typing-extensions \ " -RRECOMMENDS:${PN} += "swagger-ui" - RDEPENDS:${PN}-ptest += "python3-orjson" -- cgit v1.2.3-54-g00ecf