python3-schedule: Switch to using PEP-517 build backend

Add and enable ptests

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-04-10 14:17:45 -07:00
parent 9bd046856d
commit b1021f5468
2 changed files with 7 additions and 1 deletions

View File

@ -76,6 +76,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-rapidjson \
python3-requests-file \
python3-requests-toolbelt \
python3-schedule \
python3-semver \
python3-serpent \
python3-service-identity \

View File

@ -5,6 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6400f153491d45ea3459761627ca24b2"
SRC_URI[sha256sum] = "15fe9c75fe5fd9b9627f3f19cc0ef1420508f9f9a46f45cd0769ef75ede5f0b7"
inherit pypi setuptools3
inherit pypi python_setuptools_build_meta ptest-python-pytest
do_install_ptest:append() {
install -Dm 0644 ${S}/test_schedule.py ${D}${PTEST_PATH}/test_schedule.py
}
RDEPENDS:${PN} += "python3-datetime python3-logging python3-math"
RDEPENDS:${PN}-ptest += "python3-pytz"