patchtest: layer updates
v2 cover patchtest: layer updates
This series includes several changes to upgrade existing recipes, add those that the new upgrades depend on, and remove what's no longer necessary to have in the layer. The objective is to make patchtest usable with only oe-core and bitbake, so almost all changes have been copied over from the meta-python layer. python3-pyparsing is in oe-core, so it's no longer needed in patchtest.
Resending series so that the proper labels are present.
Trevor Gamblin (11):
python3-astroid: upgrade 1.5.3 -> 2.15.4
python3-isort: upgrade 4.2.15 -> 5.12.0
python3-lazy-object-proxy: upgrade 1.3.1 -> 1.9.0
python3-pylint: upgrade 1.6.5 -> 2.17.4
python3-pyparsing: remove recipe
python3-unidiff: upgrade 0.5.4 -> 0.7.5
python3-wrapt: upgrade 1.10.10 -> 1.15.0
python3-dill: add recipe
python3-mccabe: add recipe
python3-platformdirs: add recipe
python3-tomlkit: add recipe
.../python/python3-astroid_1.5.3.bb | 20 -------- .../python/python3-astroid_2.15.4.bb | 35 +++++++++++++ .../python/python3-dill_0.3.6.bb | 17 +++++++ .../python/python3-isort_4.2.15.bb | 10 ---- .../python/python3-isort_5.12.0.bb | 20 ++++++++ .../python/python3-lazy-object-proxy_1.3.1.bb | 10 ---- .../python/python3-lazy-object-proxy_1.9.0.bb | 11 ++++ .../python/python3-mccabe_0.7.0.bb | 11 ++++ .../python/python3-platformdirs/run-ptest | 3 ++ .../python/python3-platformdirs_3.5.1.bb | 35 +++++++++++++ .../python/python3-pylint/run-ptest | 3 ++ .../python/python3-pylint_1.6.5.bb | 33 ------------ .../python/python3-pylint_2.17.4.bb | 51 +++++++++++++++++++ .../python/python3-pyparsing_2.2.0.bb | 19 ------- .../python/python3-tomlkit/run-ptest | 3 ++ .../python/python3-tomlkit_0.11.8.bb | 23 +++++++++ .../python/python3-unidiff/run-ptest | 3 ++ .../python/python3-unidiff_0.5.4.bb | 9 ---- .../python/python3-unidiff_0.7.5.bb | 26 ++++++++++ .../python/python3-wrapt_1.10.10.bb | 15 ------ .../python/python3-wrapt_1.15.0.bb | 16 ++++++ 21 files changed, 257 insertions(+), 116 deletions(-) delete mode 100644 meta-patchtest/recipes-devtools/python/python3-astroid_1.5.3.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-astroid_2.15.4.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-dill_0.3.6.bb delete mode 100644 meta-patchtest/recipes-devtools/python/python3-isort_4.2.15.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-isort_5.12.0.bb delete mode 100644 meta-patchtest/recipes-devtools/python/python3-lazy-object-proxy_1.3.1.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-lazy-object-proxy_1.9.0.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-mccabe_0.7.0.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-platformdirs/run-ptest create mode 100644 meta-patchtest/recipes-devtools/python/python3-platformdirs_3.5.1.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-pylint/run-ptest delete mode 100644 meta-patchtest/recipes-devtools/python/python3-pylint_1.6.5.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-pylint_2.17.4.bb delete mode 100644 meta-patchtest/recipes-devtools/python/python3-pyparsing_2.2.0.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-tomlkit/run-ptest create mode 100644 meta-patchtest/recipes-devtools/python/python3-tomlkit_0.11.8.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-unidiff/run-ptest delete mode 100644 meta-patchtest/recipes-devtools/python/python3-unidiff_0.5.4.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-unidiff_0.7.5.bb delete mode 100644 meta-patchtest/recipes-devtools/python/python3-wrapt_1.10.10.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-wrapt_1.15.0.bb
Signature · 1 line
2.40.1
PATCH v2 1/11 python3-astroid: upgrade 1.5.3 -> 2.15.4
Copy the recipe from meta-python to handle the upgrade, so that patchtest can build it without needing that layer.
--- .../python/python3-astroid_1.5.3.bb | 20 ----------- .../python/python3-astroid_2.15.4.bb | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 20 deletions(-) delete mode 100644 meta-patchtest/recipes-devtools/python/python3-astroid_1.5.3.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-astroid_2.15.4.bb
meta-patchtest/recipes-devtools/python/python3-astroid_1.5.3.bb deleted +0 -20
@@ -1,20 +0,0 @@ -SUMMARY = "An abstract syntax tree for Python with inference support." -HOMEPAGE = "https://pypi.python.org/pypi/astroid" -SECTION = "devel/python" -LICENSE = "LGPL" -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" - -SRC_URI[md5sum] = "6f65e4ea8290ec032320460905afb828" -SRC_URI[sha256sum] = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35" - -inherit pypi setuptools3 - -RDEPENDS_${PN}_class-target += "\ - ${PYTHON_PN}-distutils \ - ${PYTHON_PN}-lazy-object-proxy \ - ${PYTHON_PN}-six \ - ${PYTHON_PN}-subprocess \ - ${PYTHON_PN}-wrapt \ - ${PYTHON_PN}-re \ - ${PYTHON_PN}-setuptools \ -"
meta-patchtest/recipes-devtools/python/python3-astroid_2.15.4.bb new file +35 -0
@@ -0,0 +1,35 @@ +SUMMARY = "An abstract syntax tree for Python with inference support." +HOMEPAGE = "https://pypi.python.org/pypi/astroid" +SECTION = "devel/python" +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" + +SRC_URI[sha256sum] = "c81e1c7fbac615037744d067a9bb5f9aeb655edf59b63ee8b59585475d6f80d8" + +inherit pypi python_setuptools_build_meta + +DEPENDS += "\ + ${PYTHON_PN}-pytest-runner-native \ + ${PYTHON_PN}-wheel-native \ +" + +PACKAGES =+ "${PN}-tests" + +FILES:${PN}-tests += " \ + ${PYTHON_SITEPACKAGES_DIR}/astroid/test* \ + ${PYTHON_SITEPACKAGES_DIR}/astroid/__pycache__/test* \ +" + +RDEPENDS:${PN}:class-target += "\ + ${PYTHON_PN}-distutils \ + ${PYTHON_PN}-lazy-object-proxy \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-six \ + ${PYTHON_PN}-wrapt \ + ${PYTHON_PN}-setuptools \ +" + +RDEPENDS:${PN}-tests:class-target += "\ + ${PYTHON_PN}-unittest \ + ${PYTHON_PN}-xml \ +"
Signature · 1 line
2.40.1
PATCH v2 2/11 python3-isort: upgrade 4.2.15 -> 5.12.0
In reply to Trevor GamblinCopy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer.
--- .../python/python3-isort_4.2.15.bb | 10 ---------- .../python/python3-isort_5.12.0.bb | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 10 deletions(-) delete mode 100644 meta-patchtest/recipes-devtools/python/python3-isort_4.2.15.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-isort_5.12.0.bb
meta-patchtest/recipes-devtools/python/python3-isort_4.2.15.bb deleted +0 -10
@@ -1,10 +0,0 @@ -SUMMARY = "A Python utility / library to sort Python imports." -HOMEPAGE = "https://pypi.python.org/pypi/isort" -LICENSE = "MIT" -SECTION = "devel/python" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489" - -SRC_URI[md5sum] = "34915a2ce60e6fe3dbcbf5982deef9b4" -SRC_URI[sha256sum] = "79f46172d3a4e2e53e7016e663cc7a8b538bec525c36675fcfd2767df30b3983" - -inherit pypi setuptools3
meta-patchtest/recipes-devtools/python/python3-isort_5.12.0.bb new file +20 -0
@@ -0,0 +1,20 @@ +SUMMARY = "A Python utility / library to sort Python imports." +HOMEPAGE = "https://pypi.python.org/pypi/isort" +LICENSE = "MIT" +SECTION = "devel/python" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=8227180126797a0148f94f483f3e1489" + +SRC_URI[sha256sum] = "8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504" + +inherit pypi python_poetry_core + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-profile \ + ${PYTHON_PN}-numbers \ + ${PYTHON_PN}-pprint \ + ${PYTHON_PN}-difflib \ +" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.40.1
PATCH v2 3/11 python3-lazy-object-proxy: upgrade 1.3.1 -> 1.9.0
In reply to Trevor GamblinCopy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer.
--- .../python/python3-lazy-object-proxy_1.3.1.bb | 10 ---------- .../python/python3-lazy-object-proxy_1.9.0.bb | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 meta-patchtest/recipes-devtools/python/python3-lazy-object-proxy_1.3.1.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-lazy-object-proxy_1.9.0.bb
meta-patchtest/recipes-devtools/python/python3-lazy-object-proxy_1.3.1.bb deleted +0 -10
@@ -1,10 +0,0 @@ -SUMMARY = "A fast and thorough lazy object proxy" -HOMEPAGE = "https://python-lazy-object-proxy.readthedocs.io/" -LICENSE = "BSD" -SECTION = "devel/python" -LIC_FILES_CHKSUM = "file://LICENSE;md5=ec680df42d8ad56427a83308817658cc" - -SRC_URI[md5sum] = "e128152b76eb5b9ba759504936139fd0" -SRC_URI[sha256sum] = "eb91be369f945f10d3a49f5f9be8b3d0b93a4c2be8f8a5b83b0571b8123e0a7a" - -inherit pypi setuptools3
meta-patchtest/recipes-devtools/python/python3-lazy-object-proxy_1.9.0.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "A fast and thorough lazy object proxy" +HOMEPAGE = "https://python-lazy-object-proxy.readthedocs.io/" +LICENSE = "BSD-2-Clause" +SECTION = "devel/python" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d606e94f56c21c8e0cdde0b622dcdf57" + +DEPENDS += "${PYTHON_PN}-setuptools-scm-native ${PYTHON_PN}-pip-native" + +SRC_URI[sha256sum] = "659fb5809fa4629b8a1ac5106f669cfc7bef26fbb389dda53b3e010d1ac4ebae" + +inherit pypi setuptools3
Signature · 1 line
2.40.1
PATCH v2 4/11 python3-pylint: upgrade 1.6.5 -> 2.17.4
In reply to Trevor GamblinCopy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer.
--- .../python/python3-pylint/run-ptest | 3 ++ .../python/python3-pylint_1.6.5.bb | 33 ------------ .../python/python3-pylint_2.17.4.bb | 51 +++++++++++++++++++ 3 files changed, 54 insertions(+), 33 deletions(-) create mode 100644 meta-patchtest/recipes-devtools/python/python3-pylint/run-ptest delete mode 100644 meta-patchtest/recipes-devtools/python/python3-pylint_1.6.5.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-pylint_2.17.4.bb
meta-patchtest/recipes-devtools/python/python3-pylint/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --benchmark-disable -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-patchtest/recipes-devtools/python/python3-pylint_1.6.5.bb deleted +0 -33
@@ -1,33 +0,0 @@ -SUMMARY="Pylint is a Python source code analyzer" -HOMEPAGE= "http://www.pylint.org/" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4" - -SRC_URI[md5sum] = "31da2185bf59142479e4fa16d8a9e347" -SRC_URI[sha256sum] = "a673984a8dd78e4a8b8cfdee5359a1309d833cf38405008f4a249994a8456719" - -inherit pypi setuptools3 - -SRC_URI += "file://0001-epylint-corrects-msg-template-object.patch" - -DEPENDS += "${PYTHON_PN}-pytest-runner-native" - -RDEPENDS_${PN} += "${PYTHON_PN}-astroid \ - ${PYTHON_PN}-isort \ - ${PYTHON_PN}-numbers \ - ${PYTHON_PN}-shell \ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-pkgutil \ - ${PYTHON_PN}-difflib \ - ${PYTHON_PN}-netserver \ - " - -do_install:append(){ - rm ${D}${bindir}/pylint - cat >> ${D}${bindir}/pylint <<EOF -#!/usr/bin/env ${PYTHON_PN} -from pylint import run_pylint -run_pylint() -EOF - chmod 755 ${D}${bindir}/pylint -}
meta-patchtest/recipes-devtools/python/python3-pylint_2.17.4.bb new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
2.40.1
PATCH v2 5/11 python3-pyparsing: remove recipe
In reply to Trevor GamblinThis is in oe-core now, so no need to carry it in patchtest.
--- .../python/python3-pyparsing_2.2.0.bb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 meta-patchtest/recipes-devtools/python/python3-pyparsing_2.2.0.bb
meta-patchtest/recipes-devtools/python/python3-pyparsing_2.2.0.bb deleted +0 -19
@@ -1,19 +0,0 @@ -SUMMARY = "Python parsing module" -HOMEPAGE = "http://pyparsing.wikispaces.com/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=fb46329938e6bc829b256e37d5c1e31a" - -SRC_URI[md5sum] = "0214e42d63af850256962b6744c948d9" -SRC_URI[sha256sum] = "0832bcf47acd283788593e7a0f542407bd9550a55a8a8435214a1960e04bcb04" - -inherit pypi - -RDEPENDS_${PN} += " \ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-debugger \ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-netclient \ - ${PYTHON_PN}-pprint \ - ${PYTHON_PN}-stringold \ - ${PYTHON_PN}-threading \ -"
Signature · 1 line
2.40.1
PATCH v2 6/11 python3-unidiff: upgrade 0.5.4 -> 0.7.5
In reply to Trevor GamblinCopy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer.
--- .../python/python3-unidiff/run-ptest | 3 +++ .../python/python3-unidiff_0.5.4.bb | 9 ------- .../python/python3-unidiff_0.7.5.bb | 26 +++++++++++++++++++ 3 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 meta-patchtest/recipes-devtools/python/python3-unidiff/run-ptest delete mode 100644 meta-patchtest/recipes-devtools/python/python3-unidiff_0.5.4.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-unidiff_0.7.5.bb
meta-patchtest/recipes-devtools/python/python3-unidiff/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-patchtest/recipes-devtools/python/python3-unidiff_0.5.4.bb deleted +0 -9
@@ -1,9 +0,0 @@ -SUMMARY = "Unified diff parsing/metadata extraction library" -HOMEPAGE = "http://github.com/matiasb/python-unidiff" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=4c434b08ef42fea235bb019b5e5a97b3" - -SRC_URI[md5sum] = "c8099edf89d2e3bac16123766625a38b" -SRC_URI[sha256sum] = "a7baf71846a68c5305a7d6005dfb5eca8798f13861176355a285cbda3206824d" - -inherit pypi setuptools3
meta-patchtest/recipes-devtools/python/python3-unidiff_0.7.5.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "Unified diff parsing/metadata extraction library" +HOMEPAGE = "http://github.com/matiasb/python-unidiff" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4c434b08ef42fea235bb019b5e5a97b3" + +SRC_URI[sha256sum] = "2e5f0162052248946b9f0970a40e9e124236bf86c82b70821143a6fc1dea2574" + +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-codecs \ + ${PYTHON_PN}-io \ +"
Signature · 1 line
2.40.1
PATCH v2 7/11 python3-wrapt: upgrade 1.10.10 -> 1.15.0
In reply to Trevor GamblinCopy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer.
--- .../python/python3-wrapt_1.10.10.bb | 15 --------------- .../python/python3-wrapt_1.15.0.bb | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 meta-patchtest/recipes-devtools/python/python3-wrapt_1.10.10.bb create mode 100644 meta-patchtest/recipes-devtools/python/python3-wrapt_1.15.0.bb
meta-patchtest/recipes-devtools/python/python3-wrapt_1.10.10.bb deleted +0 -15
@@ -1,15 +0,0 @@ -SUMMARY = "A Python module for decorators, wrappers and monkey patching." -HOMEPAGE = "http://wrapt.readthedocs.org/" -LICENSE = "BSD" -SECTION = "devel/python" -LIC_FILES_CHKSUM = "file://LICENSE;md5=82704725592991ea88b042d150a66303" - -SRC_URI[md5sum] = "97365e906afa8b431f266866ec4e2e18" -SRC_URI[sha256sum] = "42160c91b77f1bc64a955890038e02f2f72986c01d462d53cb6cb039b995cdd9" - -inherit pypi setuptools3 - -RDEPENDS_${PN}_class-target += "\ - ${PYTHON_PN}-stringold \ - ${PYTHON_PN}-threading \ -"
meta-patchtest/recipes-devtools/python/python3-wrapt_1.15.0.bb new file +16 -0
@@ -0,0 +1,16 @@ +SUMMARY = "A Python module for decorators, wrappers and monkey patching." +HOMEPAGE = "http://wrapt.readthedocs.org/" +LICENSE = "BSD-2-Clause" +SECTION = "devel/python" +LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7" + +SRC_URI[sha256sum] = "d06730c6aed78cee4126234cf2d071e01b44b915e725a6cb439a879ec9754a3a" + +inherit pypi setuptools3 + +RDEPENDS:${PN}:class-target += "\ + ${PYTHON_PN}-stringold \ + ${PYTHON_PN}-threading \ +" + +BBCLASSEXTEND = "native"
Signature · 1 line
2.40.1
PATCH v2 8/11 python3-dill: add recipe
In reply to Trevor Gamblinpython3-pylint requires python3-dill, so copy it from meta-python to avoid requiring that layer for patchtest.
--- .../python/python3-dill_0.3.6.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meta-patchtest/recipes-devtools/python/python3-dill_0.3.6.bb
meta-patchtest/recipes-devtools/python/python3-dill_0.3.6.bb new file +17 -0
@@ -0,0 +1,17 @@ +SUMMARY = "Serialize all of python" +HOMEPAGE = "https://pypi.org/project/dill/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=61f24e44fc855bde43ed5a1524a37bc4" + +SRC_URI[sha256sum] = "e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373" + +inherit pypi setuptools3 + +PYPI_PACKAGE_EXT = "tar.gz" + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-multiprocessing \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-profile \ + ${PYTHON_PN}-core \ +"
Signature · 1 line
2.40.1
PATCH v2 9/11 python3-mccabe: add recipe
In reply to Trevor Gamblinpython3-pylint requires python3-mccabe, so copy it from meta-python to avoid requiring that layer for patchtest.
--- .../recipes-devtools/python/python3-mccabe_0.7.0.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-patchtest/recipes-devtools/python/python3-mccabe_0.7.0.bb
meta-patchtest/recipes-devtools/python/python3-mccabe_0.7.0.bb new file +11 -0
@@ -0,0 +1,11 @@ +DESCRIPTION = "McCabe checker, plugin for flake8" +HOMEPAGE = "https://github.com/PyCQA/mccabe" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a489dc62bacbdad3335c0f160a974f0f" + +SRC_URI[sha256sum] = "348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325" + +inherit pypi setuptools3 + +DEPENDS += "${PYTHON_PN}-pytest-runner-native"
Signature · 1 line
2.40.1
PATCH v2 10/11 python3-platformdirs: add recipe
In reply to Trevor Gamblinpython3-pylint requires python3-platformdirs, so copy it from meta-python to avoid requiring that layer for patchtest.
--- .../python/python3-platformdirs/run-ptest | 3 ++ .../python/python3-platformdirs_3.5.1.bb | 35 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 meta-patchtest/recipes-devtools/python/python3-platformdirs/run-ptest create mode 100644 meta-patchtest/recipes-devtools/python/python3-platformdirs_3.5.1.bb
meta-patchtest/recipes-devtools/python/python3-platformdirs/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-patchtest/recipes-devtools/python/python3-platformdirs_3.5.1.bb new file +35 -0
@@ -0,0 +1,35 @@ +SUMMARY = "A small Python module for determining appropriate platform-specific dirs" +HOMEPAGE = "https://github.com/platformdirs/platformdirs" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" + +SRC_URI = " \ + git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \ + file://run-ptest \ +" + +SRCREV ?= "b8c42ddca4def1fba38b9815a7d94ec2ac630b29" +SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335" + +inherit python_setuptools_build_meta ptest + +DEPENDS += " \ + python3-hatch-vcs-native \ + python3-setuptools-scm-native \ + python3-toml-native \ +" + +S = "${WORKDIR}/git" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-appdirs \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-pytest-mock \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/Tests + cp -rf ${S}/tests ${D}${PTEST_PATH}/ +} + +BBCLASSEXTEND = "native"
Signature · 1 line
2.40.1
PATCH v2 11/11 python3-tomlkit: add recipe
In reply to Trevor Gamblinpython3-pylint requires python3-tomlkit, so copy the recipe from meta-python to avoid requiring that layer for patchtest.
--- .../python/python3-tomlkit/run-ptest | 3 +++ .../python/python3-tomlkit_0.11.8.bb | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 meta-patchtest/recipes-devtools/python/python3-tomlkit/run-ptest create mode 100644 meta-patchtest/recipes-devtools/python/python3-tomlkit_0.11.8.bb
meta-patchtest/recipes-devtools/python/python3-tomlkit/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-patchtest/recipes-devtools/python/python3-tomlkit_0.11.8.bb new file +23 -0
@@ -0,0 +1,23 @@ +SUMMARY = "Style preserving TOML library" +HOMEPAGE = "https://pypi.org/project/tomlkit/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=31aac0dbc1babd278d5386dadb7f8e82" + +SRC_URI[sha256sum] = "9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3" + +inherit pypi python_poetry_core ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-poetry-core \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-pyyaml \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +}
Signature · 1 line
2.40.1