python3-parsimonious: Switch to PEP-517 build backend
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]
Signed-off-by Khem Raj <[email protected]>
--- .../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
@@ -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"
PATCH 2/2 python3-parsimonious: Add ptest support
Signed-off-by Khem Raj <[email protected]>
--- .../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
@@ -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
@@ -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"