Skip to contentSkip to conversation

python3-parsimonious: Switch to PEP-517 build backend

PATCH New Khem Raj 1 participant 2 messages Nov 19, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 python3-parsimonious: Switch to PEP-517 build backend

It has pyproject.toml asking for setuptools.build.meta backend

Fixes
QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-parsimonious_0.11.0.bb    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-parsimonious_0.11.0.bb +3 -1
index a637c7305c..e9da557967 100644
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5"
 
 SRC_URI[sha256sum] = "e080377d98957beec053580d38ae54fcdf7c470fb78670ba4bf8b5f9d5cad2a9"
 
-inherit pypi setuptools3
+DEPENDS += "python3-setuptools-scm-native"
+
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += "python3-regex"
author
#1 lore raw

PATCH 2/2 python3-parsimonious: Add ptest support

---
 .../conf/include/ptest-packagelists-meta-python.inc        | 1 +
 .../recipes-devtools/python/python3-parsimonious_0.11.0.bb | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 1b7e14b9b6..ad179ccf56 100644
@@ -54,6 +54,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-outcome \
     python3-parse \
     python3-parse-type \
+    python3-parsimonious \
     python3-platformdirs \
     python3-polyline \
     python3-portalocker \
meta-python/recipes-devtools/python/python3-parsimonious_0.11.0.bb +6 -1
index e9da557967..0376b5066a 100644
@@ -8,6 +8,11 @@ SRC_URI[sha256sum] = "e080377d98957beec053580d38ae54fcdf7c470fb78670ba4bf8b5f9d5
 
 DEPENDS += "python3-setuptools-scm-native"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+PTEST_PYTEST_DIR = "parsimonious/tests"
 
 RDEPENDS:${PN} += "python3-regex"
+
+# ModuleNotFoundError: No module named 'timeit'
+RDEPENDS:${PN}-ptest += "python3-misc"