| Message ID | 20251130183450.101776-1-raj.khem@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-python] python3-fastapi: Turn swagger-ui dependency into packageconfig | expand |
meta-xfce -> meta-webserver On Sun, Nov 30, 2025 at 7:34 PM Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > --- > .../recipes-devtools/python/python3-fastapi_0.122.0.bb | 8 ++++++-- > 1 file 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" > > 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" > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#122170): https://lists.openembedded.org/g/openembedded-devel/message/122170 > Mute This Topic: https://lists.openembedded.org/mt/116542571/2167232 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [jan.vermaete@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Sun, Nov 30, 2025 at 10:36 AM jan vermaete <jan.vermaete@gmail.com> wrote: > meta-xfce -> meta-webserver > ah good call. I will queue for a follow up. > > On Sun, Nov 30, 2025 at 7:34 PM Khem Raj via lists.openembedded.org > <raj.khem=gmail.com@lists.openembedded.org> wrote: > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > --- > > .../recipes-devtools/python/python3-fastapi_0.122.0.bb | 8 ++++++-- > > 1 file 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" > > > > 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" > > > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > View/Reply Online (#122170): > https://lists.openembedded.org/g/openembedded-devel/message/122170 > > Mute This Topic: https://lists.openembedded.org/mt/116542571/2167232 > > Group Owner: openembedded-devel+owner@lists.openembedded.org > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > jan.vermaete@gmail.com] > > -=-=-=-=-=-=-=-=-=-=-=- > > > > > -- > Jan Vermaete > “Success is a self-correcting phenomenom.” -- Gary Hamel >
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"
Signed-off-by: Khem Raj <raj.khem@gmail.com> --- .../recipes-devtools/python/python3-fastapi_0.122.0.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)