Skip to contentSkip to conversation

python3-uvicorn: new recipe (0.38.0) from meta-homeassistant

PATCH New Jan Vermaete 1 participant 1 message Nov 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-uvicorn: new recipe (0.38.0) from meta-homeassistant

Moved the recipe from meta-homeassistant to meta-openembedded.
@see: https://github.com/meta-homeassistant/meta-homeassistant/pull/177#issuecomment-3510619876

- version bump from 0.35.0 to 0.38.0 (current latest release)
- added ptests
- patch to skip 5 tests that did not pass the run
- added tests to PTESTS_SLOW_META_PYTHON

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../0001-ptest-disable-failing-tests.patch    | 69 +++++++++++++++++++
 .../python/python3-uvicorn_0.38.0.bb          | 30 ++++++++
 3 files changed, 100 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn/0001-ptest-disable-failing-tests.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn_0.38.0.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 750051e804..1b7e14b9b6 100644
@@ -127,6 +127,7 @@ PTESTS_SLOW_META_PYTHON = "\
     python3-scrypt \
     python3-traitlets \
     python3-typer \
+    python3-uvicorn \
     python3-yappi \
 "
 
meta-python/recipes-devtools/python/python3-uvicorn/0001-ptest-disable-failing-tests.patch new file +69 -0

69 lines not on this page · raw message

meta-python/recipes-devtools/python/python3-uvicorn_0.38.0.bb new file +30 -0
new file mode 100644
index 0000000000..b0ce49be97
@@ -0,0 +1,30 @@
+SUMMARY = "The lightning-fast ASGI server."
+HOMEPAGE = "https://github.com/encode/uvicorn"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5c778842f66a649636561c423c0eec2e"
+RECIPE_MAINTAINER = "Tom Geelen <[email protected]>"
+
+SRC_URI[sha256sum] = "fd97093bdd120a2609fc0d3afe931d4d4ad688b6e75f0f929fde1bc36fe0e91d"
+
+SRC_URI += "file://0001-ptest-disable-failing-tests.patch"
+
+inherit pypi python_hatchling ptest-python-pytest
+
+PYPI_PACKAGE = "uvicorn"
+
+RDEPENDS:${PN} = "\
+    python3-click \
+    python3-h11 (>=0.8) \
+    python3-httptools \
+    python3-multiprocessing \
+    python3-python-dotenv \
+    python3-websockets \
+    python3-wsproto \
+"
+
+RDEPENDS:${PN}-ptest += "\
+    python3-a2wsgi \
+    python3-httpx \
+    python3-pytest-mock \
+    python3-pyyaml \
+"
Signature · 1 line
2.47.3