diff mbox series

[meta-python,09/12] python3-schedule: Switch to using PEP-517 build backend

Message ID 20250411004201.3826913-9-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,meta-python,01/12] qhull: Add recipe | expand

Commit Message

Khem Raj April 11, 2025, 12:41 a.m. UTC
Add and enable ptests

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../conf/include/ptest-packagelists-meta-python.inc        | 1 +
 .../recipes-devtools/python/python3-schedule_1.2.2.bb      | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 47a6430c96..99e0bfe115 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -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 \
diff --git a/meta-python/recipes-devtools/python/python3-schedule_1.2.2.bb b/meta-python/recipes-devtools/python/python3-schedule_1.2.2.bb
index ecf6bfd4c1..c1be5f9e22 100644
--- a/meta-python/recipes-devtools/python/python3-schedule_1.2.2.bb
+++ b/meta-python/recipes-devtools/python/python3-schedule_1.2.2.bb
@@ -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"