python3-bleak: enable ptest and add missing runtime dependency

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
alperak
2024-04-06 00:52:54 +03:00
committed by Khem Raj
parent 96c7e7d683
commit dce392b588
3 changed files with 27 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-ansicolors \
python3-asgiref \
python3-aspectlib \
python3-bleak \
python3-blinker \
python3-cachetools \
python3-cbor2 \

View File

@@ -0,0 +1,3 @@
#!/bin/sh
pytest --automake

View File

@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
SRC_URI[sha256sum] = "ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"
SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop"
PYPI_PACKAGE = "bleak"
inherit pypi python_poetry_core ptest
inherit pypi python_poetry_core
S = "${WORKDIR}/git"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-pytest-asyncio \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} += " \
python3-core (>3.7) \
python3-async-timeout \
python3-dbus-fast \
python3-core (>3.7) \
python3-async-timeout \
python3-dbus-fast \
python3-xml \
"