From dce392b58826d1aff643196f05e592c9f40e9636 Mon Sep 17 00:00:00 2001 From: alperak Date: Sat, 6 Apr 2024 00:52:54 +0300 Subject: 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 Signed-off-by: Khem Raj --- .../python/python3-bleak/run-ptest | 3 +++ .../python/python3-bleak_0.21.1.bb | 29 +++++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-bleak/run-ptest (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-bleak/run-ptest b/meta-python/recipes-devtools/python/python3-bleak/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-bleak/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb b/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb index 4a1fafb5d8..96f3fcbcfe 100644 --- a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +++ b/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb @@ -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 \ " -- cgit v1.2.3-54-g00ecf