All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-uvicorn: add Uvicorn (0.34.2)
@ 2025-04-23 14:35 Hugo FLEURY
  2025-04-23 15:54 ` [oe] " Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Hugo FLEURY @ 2025-04-23 14:35 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Tim Orling, Derek Straka, Hugo FLEURY

This patch introduces version 0.34.2 of Uvicorn to the OpenEmbedded build system.

The addition includes the necessary recipe to build Uvicorn from PyPI.

Signed-off-by: Hugo FLEURY <fleuryhugo7@gmail.com>
---
 .../python/python3-uvicorn_0.34.2.bb          | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb

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..2b3c362463
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb
@@ -0,0 +1,19 @@
+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
+
+PYPI_PACKAGE = "uvicorn"
+
+RDEPENDS:${PN} += " \
+    ${PYTHON_PN}-typing-extensions \
+    ${PYTHON_PN}-click \
+    ${PYTHON_PN}-h11 \
+    ${PYTHON_PN}-anyio \
+"
+
+S = "${WORKDIR}/uvicorn-${PV}"
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-uvicorn: add Uvicorn (0.34.2)
  2025-04-23 14:35 [meta-python][PATCH] python3-uvicorn: add Uvicorn (0.34.2) Hugo FLEURY
@ 2025-04-23 15:54 ` Khem Raj
  2025-04-25 15:18   ` Hugo
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2025-04-23 15:54 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 2016 bytes --]

On 4/23/25 7:35 AM, Hugo via lists.openembedded.org wrote:
> This patch introduces version 0.34.2 of Uvicorn to the OpenEmbedded build system.
> 
> The addition includes the necessary recipe to build Uvicorn from PyPI.
> 
> Signed-off-by: Hugo FLEURY <fleuryhugo7@gmail.com>
> ---
>   .../python/python3-uvicorn_0.34.2.bb          | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)
>   create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb
> 
> 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..2b3c362463
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-uvicorn_0.34.2.bb
> @@ -0,0 +1,19 @@
> +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
> +
> +PYPI_PACKAGE = "uvicorn"
> +
> +RDEPENDS:${PN} += " \
> +    ${PYTHON_PN}-typing-extensions \
> +    ${PYTHON_PN}-click \
> +    ${PYTHON_PN}-h11 \
> +    ${PYTHON_PN}-anyio \
> +"

PYTHON_PN is deprecated these days, just use python3- here
secondly, does it have tests ?  if so I would prefer to have them 
enabled via ptest

> +
> +S = "${WORKDIR}/uvicorn-${PV}"
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#117079): https://lists.openembedded.org/g/openembedded-devel/message/117079
> Mute This Topic: https://lists.openembedded.org/mt/112415213/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2613 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-python][PATCH] python3-uvicorn: add Uvicorn (0.34.2)
  2025-04-23 15:54 ` [oe] " Khem Raj
@ 2025-04-25 15:18   ` Hugo
  0 siblings, 0 replies; 3+ messages in thread
From: Hugo @ 2025-04-25 15:18 UTC (permalink / raw)
  To: openembedded-devel

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

Added required tests, and fixed the issue related to ${PYTHON_PN} for Uvicorn.

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: 2699 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-25 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 14:35 [meta-python][PATCH] python3-uvicorn: add Uvicorn (0.34.2) Hugo FLEURY
2025-04-23 15:54 ` [oe] " Khem Raj
2025-04-25 15:18   ` Hugo

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.