summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2024-02-16 16:15:51 -0800
committerKhem Raj <raj.khem@gmail.com>2024-02-16 16:42:39 -0800
commitee0c034eb9b79821b3a696d77302d983dde4215b (patch)
tree82bbc286f0addbcef9778cf1544c5d21c0c20fde /meta-python/recipes-devtools/python
parent3b44038a39e60c1dd6918c596f62203888336bbb (diff)
downloadmeta-openembedded-ee0c034eb9b79821b3a696d77302d983dde4215b.tar.gz
python3-pylint: switch to pytest --automake
* Also replace ${PYTHON_PN} with python3 * Sort all REDEPENDS alphabetically * Drop trailing whitespace Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pylint/run-ptest2
-rw-r--r--meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb56
2 files changed, 30 insertions, 28 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pylint/run-ptest b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
index 2a4e87e03a..ed424cb879 100644
--- a/meta-python/recipes-devtools/python/python3-pylint/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
@@ -1,3 +1,3 @@
1#!/bin/sh 1#!/bin/sh
2 2
3pytest --benchmark-disable -vv --minimal-messages-config tests/test_functional.py | 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}}' 3pytest --benchmark-disable -vv --minimal-messages-config --automake tests/test_functional.py
diff --git a/meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb b/meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb
index cc33edd829..eb4b9e897f 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb
@@ -10,34 +10,36 @@ SRCREV = "1a5ffc1f447b77071ffe18a9c6836c09147ee2ed"
10 10
11inherit python_setuptools_build_meta ptest 11inherit python_setuptools_build_meta ptest
12 12
13RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ 13RDEPENDS:${PN} += "\
14 ${PYTHON_PN}-dill \ 14 python3-astroid \
15 ${PYTHON_PN}-isort \ 15 python3-difflib \
16 ${PYTHON_PN}-mccabe \ 16 python3-dill \
17 ${PYTHON_PN}-numbers \ 17 python3-isort \
18 ${PYTHON_PN}-platformdirs \ 18 python3-json \
19 ${PYTHON_PN}-shell \ 19 python3-mccabe \
20 ${PYTHON_PN}-json \ 20 python3-netserver \
21 ${PYTHON_PN}-pkgutil \ 21 python3-numbers \
22 ${PYTHON_PN}-difflib \ 22 python3-pkgutil \
23 ${PYTHON_PN}-netserver \ 23 python3-platformdirs \
24 ${PYTHON_PN}-tomlkit \ 24 python3-shell \
25 " 25 python3-tomlkit \
26 "
26 27
27RDEPENDS:${PN}-ptest += " \ 28RDEPENDS:${PN}-ptest += " \
28 ${PYTHON_PN}-core \ 29 python3-core \
29 ${PYTHON_PN}-git \ 30 python3-git \
30 ${PYTHON_PN}-py \ 31 python3-py \
31 ${PYTHON_PN}-pytest \ 32 python3-pytest \
32 ${PYTHON_PN}-pytest-benchmark \ 33 python3-pytest-benchmark \
33 ${PYTHON_PN}-pytest-runner \ 34 python3-pytest-runner \
34 ${PYTHON_PN}-pytest-timeout \ 35 python3-pytest-timeout \
35 ${PYTHON_PN}-pytest-xdist \ 36 python3-pytest-xdist \
36 ${PYTHON_PN}-requests \ 37 python3-requests \
37 ${PYTHON_PN}-statistics \ 38 python3-statistics \
38 ${PYTHON_PN}-tomllib \ 39 python3-tomllib \
39 ${PYTHON_PN}-typing-extensions \ 40 python3-typing-extensions \
40 " 41 python3-unittest-automake-output \
42 "
41 43
42S = "${WORKDIR}/git" 44S = "${WORKDIR}/git"
43 45
@@ -46,7 +48,7 @@ do_install_ptest() {
46 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ 48 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
47 install -Dm 0644 ${S}/tests/.pylint_primer_tests/.gitkeep ${D}${PTEST_PATH}/tests/.pylint_primer_tests/.gitkeep 49 install -Dm 0644 ${S}/tests/.pylint_primer_tests/.gitkeep ${D}${PTEST_PATH}/tests/.pylint_primer_tests/.gitkeep
48 sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript 50 sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript
49 # regression_distutil_import_error_73.py fails to run see 51 # regression_distutil_import_error_73.py fails to run see
50 # https://lists.openembedded.org/g/openembedded-devel/topic/103181847 52 # https://lists.openembedded.org/g/openembedded-devel/topic/103181847
51 rm ${D}${PTEST_PATH}/tests/functional/r/regression_02/regression_distutil_import_error_73.py 53 rm ${D}${PTEST_PATH}/tests/functional/r/regression_02/regression_distutil_import_error_73.py
52} 54}