diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index cdec25f876..be548f62b6 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -115,6 +115,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-unidiff \ python3-uritemplate \ python3-validators \ + python3-waitress \ python3-wrapt \ python3-wsproto \ python3-xlrd \ @@ -144,3 +145,10 @@ PTESTS_SLOW_META_PYTHON = "\ PTESTS_PROBLEMS_META_PYTHON = "\ " + +PTESTS_FAST_META_PYTHON:remove:libc-musl = "\ + python3-waitress \ +" +PTESTS_PROBLEMS_META_PYTHON:append:libc-musl = "\ + python3-waitress \ +" diff --git a/meta-python/recipes-devtools/python/python3-waitress/run-ptest b/meta-python/recipes-devtools/python/python3-waitress/run-ptest new file mode 100644 index 0000000000..2e0e96d0b1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-waitress/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +python3 -mputao.unittest diff --git a/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb b/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb index c495132c59..cc705f4efe 100644 --- a/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb +++ b/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb @@ -12,6 +12,20 @@ RDEPENDS:${PN} += " \ python3-logging \ " +RDEPENDS:${PN}-ptest += "\ + python3-doctest \ + python3-json \ + python3-multiprocessing \ + python3-pytest \ + python3-unittest \ + python3-unittest-automake-output \ +" + +SRC_URI += "file://run-ptest" SRC_URI[sha256sum] = "682aaaf2af0c44ada4abfb70ded36393f0e307f4ab9456a215ce0020baefc31f" -inherit python_setuptools_build_meta pypi +inherit python_setuptools_build_meta pypi ptest + +do_install_ptest(){ + cp -r ${S}/tests ${D}${PTEST_PATH} +}