python3-ordered-set: update recipe to use the ptest-python-pytest class

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Derek Straka 2025-01-30 21:57:18 +00:00 committed by Khem Raj
parent 85b9417641
commit d0570e05a8
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 3 additions and 16 deletions

View File

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

View File

@ -5,19 +5,9 @@ LIC_FILES_CHKSUM = "file://MIT-LICENSE;md5=3bf5e1ad64c0d99032c3143361fa234e"
SRC_URI[sha256sum] = "694a8e44c87657c59292ede72891eb91d34131f6531463aab3009191c77364a8"
inherit pypi python_flit_core ptest
inherit pypi python_flit_core ptest-python-pytest
PTEST_PYTEST_DIR = "test"
DEPENDS += "python3-pytest-runner-native"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
cp -f ${S}/test/test_ordered_set.py ${D}${PTEST_PATH}/
}