python3-wsproto: added recipe which is also include ptest
PATCH 1/1 python3-wsproto: added recipe which is also include ptest
This package is a pure-Python implementation of a WebSocket protocol stack. It’s written from the ground up to be embeddable in whatever program you choose to use, ensuring that you can communicate via WebSockets, as defined in RFC6455, regardless of your programming paradigm.
* Ptest and library example tested on qemux86-64 and qemuarm64
* Add ptest into PTESTS_FAST_META_PYTHON
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 230
PASS: 230
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 18
END: /usr/lib/python3-wsproto/ptest
2024-03-08T19:45
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 230
PASS: 230
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 15
END: /usr/lib/python3-wsproto/ptest
2024-03-08T19:40
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-wsproto/run-ptest | 3 +++ .../python/python3-wsproto_1.2.0.bb | 27 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-wsproto/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -71,6 +71,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-unidiff \ python3-uritemplate \ python3-wrapt \ + python3-wsproto \ python3-xlrd \ python3-xmltodict \ python3-xxhash \
meta-python/recipes-devtools/python/python3-wsproto/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb new file +27 -0
@@ -0,0 +1,27 @@ +SUMMARY = "WebSockets state-machine based protocol implementation" +HOMEPAGE = "https://github.com/python-hyper/wsproto/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=69fabf732409f4ac61875827b258caaf" + +inherit pypi setuptools3 ptest + +SRC_URI[sha256sum] = "ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/test/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + python3-h11 \ + python3-netclient \ +"
Signature · 1 line
2.25.1
You can trim your subject line a little bit (in the future) to something like:
python3-wsproto: add recipe and enable ptest
Quoted 127 lines · Alper Ak
This package is a pure-Python implementation of a WebSocket protocol stack. It’s written from the ground up to be embeddable in whatever program you choose to use, ensuring that you can communicate via WebSockets, as defined in RFC6455, regardless of your programming paradigm.
* Ptest and library example tested on qemux86-64 and qemuarm64
* Add ptest into
PTESTS_FAST_META_PYTHONPtest result:
=============
qemux86-64:Testsuite summary
TOTAL: 230
PASS: 230
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 18
END:/usr/lib/python3-wsproto/ptest
2024-03-08T19:45
STOP: ptest-runner
TOTAL: 1 FAIL: 0qemuarm64:
Testsuite summary
TOTAL: 230
PASS: 230
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 15
END:/usr/lib/python3-wsproto/ptest
2024-03-08T19:40
STOP: ptest-runner
TOTAL: 1 FAIL: 0Signed-off-by alperak <[email protected]>--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-wsproto/run-ptest | 3 +++ .../python/python3-wsproto_1.2.0.bb | 27 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-wsproto/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1
-0@@ -71,6 +71,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-unidiff \ python3-uritemplate \ python3-wrapt \ + python3-wsproto \ python3-xlrd \ python3-xmltodict \ python3-xxhash \meta-python/recipes-devtools/python/python3-wsproto/run-ptest new file +3
-0@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automakemeta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb new file +8
-0@@ -0,0 +1,27 @@ +SUMMARY = "WebSockets state-machine based protocol implementation" +HOMEPAGE = "https://github.com/python-hyper/wsproto/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=69fabf732409f4ac61875827b258caaf" + +inherit pypi setuptools3 ptest + +SRC_URI[sha256sum] ="
ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb new file +19
-1+ +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/test/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + python3-h11 \ + python3-netclient \ +" --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#109240):
https://lists.openembedded.org/g/openembedded-devel/message/109240
Mute This Topic: https://lists.openembedded.org/mt/104816145/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-