diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-11-30 09:24:43 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-30 09:25:15 -0800 |
| commit | a555730e42f9c1e3ed2523b57565dbbb833d88af (patch) | |
| tree | 041d1b06249183d284302eeacc43082697651e46 /meta-python | |
| parent | cc274558bdbb709522e880b52f6c94c71cddce01 (diff) | |
| download | meta-openembedded-a555730e42f9c1e3ed2523b57565dbbb833d88af.tar.gz | |
python3-fastapi: Turn swagger-ui dependency into packageconfig
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb | 8 |
1 files changed, 6 insertions, 2 deletions
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" | |||
| 9 | 9 | ||
| 10 | inherit pypi python_pdm ptest-python-pytest | 10 | inherit pypi python_pdm ptest-python-pytest |
| 11 | 11 | ||
| 12 | PACKAGECONFIG ?= "" | ||
| 13 | # swagger-ui is in meta-xfce that meta-python does not depend upon | ||
| 14 | # Users can still enable it in their distros explicitly but its disabled | ||
| 15 | # by default | ||
| 16 | PACKAGECONFIG[swagger-ui] = ",,,swagger-ui" | ||
| 17 | |||
| 12 | RDEPENDS:${PN} += "\ | 18 | RDEPENDS:${PN} += "\ |
| 13 | python3-annotated-doc \ | 19 | python3-annotated-doc \ |
| 14 | python3-fastapi-cli \ | 20 | python3-fastapi-cli \ |
| @@ -18,6 +24,4 @@ RDEPENDS:${PN} += "\ | |||
| 18 | python3-typing-extensions \ | 24 | python3-typing-extensions \ |
| 19 | " | 25 | " |
| 20 | 26 | ||
| 21 | RRECOMMENDS:${PN} += "swagger-ui" | ||
| 22 | |||
| 23 | RDEPENDS:${PN}-ptest += "python3-orjson" | 27 | RDEPENDS:${PN}-ptest += "python3-orjson" |
