Skip to contentSkip to conversation

python3-annotated-doc: new recipe version 0.0.4

PATCH New Jan Vermaete 1 participant 2 messages Nov 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-annotated-doc: new recipe version 0.0.4

no tests are part of the pypi package

---
 .../python/python3-annotated-doc_0.0.4.bb          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-annotated-doc_0.0.4.bb
meta-python/recipes-devtools/python/python3-annotated-doc_0.0.4.bb new file +14 -0
new file mode 100644
index 0000000000..10d567d46c
@@ -0,0 +1,14 @@
+SUMMARY = "Document parameters, class attributes, return types, and variables inline, with Annotated."
+HOMEPAGE = "https://github.com/fastapi/annotated-doc"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e36e91f278975b8bb76a769f32582892"
+
+SRC_URI[sha256sum] = "fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4"
+
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
+
+inherit pypi python_pdm
+
+PYPI_PACKAGE = "annotated_doc"
+
+RDEPENDS:${PN} += "python3-compression"
Signature · 1 line
2.47.3
#1 lore raw

PATCH 2/2 python3-fastapi[-cli]: new recipe 0.122.0

python3-fastapi at version 0.122.0
python3-fastapi-cli at version 0.0.16

Moved and modified from meta-ros (Thanks Rob Woolley)

- added ptest for fastapi (long run)
- python3-fastapi-cli does have tests,
but also a circular dependency on python-fastapi. So no ptests for python3-fastapi

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-fastapi-cli_0.0.16.bb      | 20 ++++++++++++++++
 .../python/python3-fastapi/run-ptest          |  5 ++++
 .../python/python3-fastapi_0.122.0.bb         | 23 +++++++++++++++++++
 4 files changed, 49 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.16.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-fastapi/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index b0130387bb..c72b4cb5d0 100644
@@ -121,6 +121,7 @@ PTESTS_FAST_META_PYTHON = "\
 PTESTS_SLOW_META_PYTHON = "\
     python3-arrow \
     python3-ecdsa \
+    python3-fastapi \
     python3-google-auth \
     python3-lz4 \
     python3-marshmallow \
meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.16.bb new file +20 -0
new file mode 100644
index 0000000000..a8f585b607
@@ -0,0 +1,20 @@
+DESCRIPTION = "Run and manage FastAPI apps from the command line with FastAPI CLI"
+HOMEPAGE = "https://fastapi.tiangolo.com/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e0cf8d811ea2046529403707b266fb5a"
+
+SRC_URI[sha256sum] = "e8a2a1ecf7a4e062e3b2eec63ae34387d1e142d4849181d936b23c4bdfe29073"
+
+inherit pypi python_pdm
+
+PYPI_PACKAGE = "fastapi_cli"
+
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
+
+RDEPENDS:${PN} += "\
+    python3-difflib \
+    python3-pydantic \
+    python3-rich-toolkit \
+    python3-typer \
+    python3-uvicorn \
+"
meta-python/recipes-devtools/python/python3-fastapi/run-ptest new file +5 -0
new file mode 100644
index 0000000000..b4d99ee36b
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# ignore the test from the tutorial
+# those depends on python packages that are not part of OE
+pytest --automake --ignore tests/test_tutorial
meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb new file +23 -0
new file mode 100644
index 0000000000..37a475ef8f
@@ -0,0 +1,23 @@
+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] = "cd9b5352031f93773228af8b4c443eedc2ac2aa74b27780387b853c3726fb94b"
+
+SRC_URI += "file://run-ptest"
+
+inherit pypi python_pdm ptest-python-pytest
+
+RDEPENDS:${PN} += "\
+    python3-annotated-doc \
+    python3-fastapi-cli \
+    python3-json \
+    python3-pydantic \
+    python3-starlette \
+    python3-typing-extensions \
+"
+
+RRECOMMENDS:${PN} += "swagger-ui"
+
+RDEPENDS:${PN}-ptest += "python3-orjson"
Signature · 1 line
2.47.3