diff mbox series

[meta-python,03/12] python3-fastnumbers: Switch to PEP-517 build backend and enable ptest

Message ID 20250411004201.3826913-3-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
test run takes < 1min, added to PTESTS_FAST_META_PYTHON

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../conf/include/ptest-packagelists-meta-python.inc   |  1 +
 .../python/python3-fastnumbers_5.1.1.bb               | 11 ++++++++++-
 2 files changed, 11 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 ca91065af0..58f53dedc7 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -22,6 +22,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-dasbus \
     python3-dominate \
     python3-execnet \
+    python3-fastnumbers \
     python3-flask \
     python3-flexcache \
     python3-flexparser \
diff --git a/meta-python/recipes-devtools/python/python3-fastnumbers_5.1.1.bb b/meta-python/recipes-devtools/python/python3-fastnumbers_5.1.1.bb
index 28ef40fa05..3a92fe0ab4 100644
--- a/meta-python/recipes-devtools/python/python3-fastnumbers_5.1.1.bb
+++ b/meta-python/recipes-devtools/python/python3-fastnumbers_5.1.1.bb
@@ -7,4 +7,13 @@  PYPI_PACKAGE = "fastnumbers"
 
 SRC_URI[sha256sum] = "183fa021cdc052edaeede5c23e3086461deb7562b567614edf71b29515f5fa4b"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN}-ptest += "\
+						 python3-ctypes \
+						 python3-hypothesis \
+						 python3-numpy \
+						 python3-typing-extensions \
+						 "