python3-service-identity: 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-10 22:31:33 +00:00 committed by Khem Raj
parent b30ddc2259
commit 5b40bae867
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 1 additions and 15 deletions

View File

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

View File

@ -6,15 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=76edce6a3fa1b82b0bf2b6ce174c19e2"
SRC_URI[sha256sum] = "b8683ba13f0d39c6cd5d625d2c5f65421d6d707b013b375c355751557cbe8e09" SRC_URI[sha256sum] = "b8683ba13f0d39c6cd5d625d2c5f65421d6d707b013b375c355751557cbe8e09"
inherit pypi python_hatchling ptest inherit pypi python_hatchling ptest-python-pytest
PYPI_PACKAGE = "service_identity" PYPI_PACKAGE = "service_identity"
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
SRC_URI += " \
file://run-ptest \
"
DEPENDS += "python3-hatch-vcs-native python3-hatch-fancy-pypi-readme-native" DEPENDS += "python3-hatch-vcs-native python3-hatch-fancy-pypi-readme-native"
RDEPENDS:${PN} += " \ RDEPENDS:${PN} += " \
@ -25,13 +21,6 @@ RDEPENDS:${PN} += " \
RDEPENDS:${PN}-ptest += " \ RDEPENDS:${PN}-ptest += " \
python3-attrs \ python3-attrs \
python3-pytest \
python3-six \ python3-six \
python3-unittest-automake-output \
python3-pyopenssl \ python3-pyopenssl \
" "
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}