summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorJan Vermaete <jan.vermaete@gmail.com>2025-11-29 19:27:09 +0100
committerKhem Raj <raj.khem@gmail.com>2025-11-29 21:19:36 -0800
commitcc274558bdbb709522e880b52f6c94c71cddce01 (patch)
treed56299f5480d0c03869190349336797f44ba87c8 /meta-python/recipes-devtools/python
parent5007fe03dd7be7356544a49c395b4bfa203954ee (diff)
downloadmeta-openembedded-cc274558bdbb709522e880b52f6c94c71cddce01.tar.gz
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 Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.16.bb20
-rw-r--r--meta-python/recipes-devtools/python/python3-fastapi/run-ptest5
-rw-r--r--meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb23
3 files changed, 48 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.16.bb b/meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.16.bb
new file mode 100644
index 0000000000..a8f585b607
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.16.bb
@@ -0,0 +1,20 @@
1DESCRIPTION = "Run and manage FastAPI apps from the command line with FastAPI CLI"
2HOMEPAGE = "https://fastapi.tiangolo.com/"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e0cf8d811ea2046529403707b266fb5a"
5
6SRC_URI[sha256sum] = "e8a2a1ecf7a4e062e3b2eec63ae34387d1e142d4849181d936b23c4bdfe29073"
7
8inherit pypi python_pdm
9
10PYPI_PACKAGE = "fastapi_cli"
11
12UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
13
14RDEPENDS:${PN} += "\
15 python3-difflib \
16 python3-pydantic \
17 python3-rich-toolkit \
18 python3-typer \
19 python3-uvicorn \
20"
diff --git a/meta-python/recipes-devtools/python/python3-fastapi/run-ptest b/meta-python/recipes-devtools/python/python3-fastapi/run-ptest
new file mode 100644
index 0000000000..b4d99ee36b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-fastapi/run-ptest
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3# ignore the test from the tutorial
4# those depends on python packages that are not part of OE
5pytest --automake --ignore tests/test_tutorial
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
new file mode 100644
index 0000000000..37a475ef8f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-fastapi_0.122.0.bb
@@ -0,0 +1,23 @@
1DESCRIPTION = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
2HOMEPAGE = "https://fastapi.tiangolo.com/"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=95792ff3fe8e11aa49ceb247e66e4810"
5
6SRC_URI[sha256sum] = "cd9b5352031f93773228af8b4c443eedc2ac2aa74b27780387b853c3726fb94b"
7
8SRC_URI += "file://run-ptest"
9
10inherit pypi python_pdm ptest-python-pytest
11
12RDEPENDS:${PN} += "\
13 python3-annotated-doc \
14 python3-fastapi-cli \
15 python3-json \
16 python3-pydantic \
17 python3-starlette \
18 python3-typing-extensions \
19"
20
21RRECOMMENDS:${PN} += "swagger-ui"
22
23RDEPENDS:${PN}-ptest += "python3-orjson"