All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hugo" <fleuryhugo7@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-python][PATCH] python3-fastapi: add FastAPI (0.115.2)
Date: Fri, 25 Apr 2025 08:13:51 -0700	[thread overview]
Message-ID: <6525.1745594031172178467@lists.openembedded.org> (raw)
In-Reply-To: <87f53b1d-2646-4bf9-87db-34a4d0bc275a@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]

Added tests and fixed the issue related to ${PYTHON_PN}.

Signed-off-by: Hugo FLEURY <fleuryhugo7@gmail.com>
---
.../python/python3-uvicorn/run-ptest          |  6 +++
.../python/python3-uvicorn_0.34.2.bb          | 37 +++++++++++++++++++
2 files changed, 43 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb
diff --git a/meta-python/recipes-devtools/python/python3-uvicorn/run-ptest b/meta-python/recipes-devtools/python/python3-uvicorn/run-ptest
new file mode 100644
index 0000000000..d75b4cd4c9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uvicorn/run-ptest
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# based on the gunicorn ptest
+echo "nameserver 8.8.8.8" >> /etc/resolv.conf
+
+pytest
diff --git a/meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb b/meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb
new file mode 100644
index 0000000000..cd2691a5ee
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb
@@ -0,0 +1,37 @@
+SUMMARY = "Lightning-fast ASGI server implementation."
+HOMEPAGE = "https://www.uvicorn.org/"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5c778842f66a649636561c423c0eec2e"
+
+SRC_URI[sha256sum] = "0e929828f6186353a80b58ea719861d2629d766293b6d19baf086ba31d4f3328"
+
+inherit pypi python_hatchling python_setuptools_build_meta ptest
+
+SRC_URI += "file://run-ptest"
+
+RDEPENDS:${PN}-ptest += " \
+    python3-pytest \
+    python3-httptools \
+    python3-dotenv \
+    python3-httpx \
+    python3-pyyaml \
+    python3-websockets \
+    python3-a2wsgi \
+    python3-pytest-mock \
+"
+
+do_install_ptest() {
+        install -d ${D}${PTEST_PATH}/tests
+        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+PYPI_PACKAGE = "uvicorn"
+
+RDEPENDS:${PN} += " \
+    python3-typing-extensions \
+    python3-click \
+    python3-h11 \
+    python3-anyio \
+"
+
+S = "${WORKDIR}/uvicorn-${PV}"
--
2.43.0

[-- Attachment #2: Type: text/html, Size: 2677 bytes --]

  reply	other threads:[~2025-04-25 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-23 14:36 [meta-python][PATCH] python3-fastapi: add FastAPI (0.115.2) Hugo FLEURY
2025-04-23 15:55 ` [oe] " Khem Raj
2025-04-25 15:13   ` Hugo [this message]
2025-04-25 21:46     ` Khem Raj
2025-04-26 11:12       ` Yann CARDAILLAC Pro
2025-04-25 15:17 ` Hugo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6525.1745594031172178467@lists.openembedded.org \
    --to=fleuryhugo7@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.