python3-requests-file: 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-17 18:59:38 +00:00 committed by Khem Raj
parent a3edd4f6d7
commit 2c9f19d797
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 1 additions and 18 deletions

View File

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

View File

@ -8,24 +8,10 @@ SRC_URI[sha256sum] = "0f549a3f3b0699415ac04d167e9cb39bccfb730cb832b4d20be3d98673
PYPI_PACKAGE = "requests_file"
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
inherit pypi python_setuptools_build_meta ptest
SRC_URI += " \
file://run-ptest \
"
inherit pypi python_setuptools_build_meta ptest-python-pytest
DEPENDS += "python3-setuptools-scm-native"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} += " \
python3-requests \
"