summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc1
-rw-r--r--meta-python/recipes-devtools/python/python3-a2wsgi/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-a2wsgi_1.10.2.bb33
3 files changed, 37 insertions, 0 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 63457189e2..acfe28039c 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -7,6 +7,7 @@
7# 7#
8# ptests which take less than ~30s each 8# ptests which take less than ~30s each
9PTESTS_FAST_META_PYTHON = "\ 9PTESTS_FAST_META_PYTHON = "\
10 python3-a2wsgi \
10 python3-appdirs \ 11 python3-appdirs \
11 python3-ansicolors \ 12 python3-ansicolors \
12 python3-asgiref \ 13 python3-asgiref \
diff --git a/meta-python/recipes-devtools/python/python3-a2wsgi/run-ptest b/meta-python/recipes-devtools/python/python3-a2wsgi/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-a2wsgi/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-a2wsgi_1.10.2.bb b/meta-python/recipes-devtools/python/python3-a2wsgi_1.10.2.bb
new file mode 100644
index 0000000000..4d24c4517e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-a2wsgi_1.10.2.bb
@@ -0,0 +1,33 @@
1SUMMARY = "Convert WSGI app to ASGI app or ASGI app to WSGI app."
2HOMEPAGE = "https://github.com/abersheeran/a2wsgi"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e10d05d29ec6d8be8bfc503683f1bc9a"
5
6inherit pypi python_setuptools_build_meta ptest
7
8SRC_URI[sha256sum] = "46b2ca427cf9ad538c145e32eb36857e1cbf477b72fe1ed0e3d35e98c06061b9"
9
10DEPENDS += " \
11 python3-pdm-native \
12 python3-pdm-backend-native \
13"
14
15SRC_URI += " \
16 file://run-ptest \
17"
18
19RDEPENDS:${PN}-ptest += " \
20 python3-httpx \
21 python3-pytest \
22 python3-pytest-asyncio \
23 python3-unittest-automake-output \
24"
25
26do_install_ptest() {
27 install -d ${D}${PTEST_PATH}/tests
28 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
29}
30
31RDEPENDS:${PN} += " \
32 python3-asyncio \
33"