python3-waitress: add ptest support
PATCH 1/1 python3-waitress: add ptest support
It takes <10s to execute.
Some (54) tests are not compatible with musl[1] - due to this the tests are on the problem-list.
Sample output snippet:
root@qemux86-64:~# ptest-runner START: ptest-runner 2026-01-07T09:57 BEGIN: /usr/lib/python3-waitress/ptest PASS: tests.test_adjustments.TestAdjustments.test_bad_port PASS: tests.test_adjustments.TestAdjustments.test_badvar PASS: tests.test_adjustments.TestAdjustments.test_default_listen [...many lines...] PASS: tests.test_wasyncore.Test_readwrite.test_socketerror_in_disconnected PASS: tests.test_wasyncore.Test_readwrite.test_socketerror_not_in_disconnected PASS: tests.test_wasyncore.Test_write.test_gardenpath PASS: tests.test_wasyncore.Test_write.test_non_reraised PASS: tests.test_wasyncore.Test_write.test_reraised
============================================================================
Testsuite summary
\# TOTAL: 783
\# PASS: 775
\# SKIP: 8
\# XFAIL: 0
\# FAIL: 0
\# XPASS: 0
\# ERROR: 0
DURATION: 7
END: /usr/lib/python3-waitress/ptest
2026-01-07T09:57
STOP: ptest-runner
TOTAL: 1 FAIL: 0
Signed-off-by Gyorgy Sarvari <[email protected]>
--- .../include/ptest-packagelists-meta-python.inc | 8 ++++++++ .../python/python3-waitress/run-ptest | 3 +++ .../python/python3-waitress_3.0.2.bb | 16 +++++++++++++++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-waitress/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +8 -0
@@ -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 \ +"
meta-python/recipes-devtools/python/python3-waitress/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +python3 -mputao.unittest
meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb +15 -1
@@ -10,6 +10,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} +}