python3-intervals: 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:27 +00:00 committed by Khem Raj
parent 97db0edb4b
commit cfaeb648d0
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 14 deletions

View File

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

View File

@ -7,18 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
PYPI_PACKAGE := "python-intervals"
SRC_URI += " \
file://run-ptest \
"
inherit pypi setuptools3 ptest-python-pytest
inherit pypi setuptools3 ptest
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
do_install_ptest:append () {
cp -f ${S}/test_intervals.py ${D}${PTEST_PATH}
cp -f ${S}/README.md ${D}${PTEST_PATH}
}