summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2023-05-15 10:06:26 -0400
committerKhem Raj <raj.khem@gmail.com>2023-05-15 09:37:58 -0700
commit08de5f3969aabb2e71ef04d2d1a210ed1fb72cc2 (patch)
tree1e29fd6d31bb03b50323a5f0166d42cc31674307 /meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb
parent05acb8d0661d7dd42c760075e623e3ee7b0a37f6 (diff)
downloadmeta-openembedded-08de5f3969aabb2e71ef04d2d1a210ed1fb72cc2.tar.gz
python3-pylint: upgrade 2.17.3 -> 2.17.4
This upgrade fixes most of the ptest errors that have been seen with pylint, which were caused by a tomlkit issue. Changelog (see also https://github.com/pylint-dev/pylint/releases/tag/v2.17.4): False Positives Fixed - Fix a false positive for bad-dunder-name when there is a user-defined __index__ method. Closes #8613 Other Bug Fixes - pyreverse: added escaping of vertical bar character in annotation labels produced by DOT printer to ensure it is not treated as field separator of record-based nodes. Closes #8603 - Fixed a crash when generating a configuration file: tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key caused by tomlkit v0.11.8. Closes #8632 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb
new file mode 100644
index 0000000000..c20d912599
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb
@@ -0,0 +1,50 @@
1SUMMARY="Pylint is a Python source code analyzer"
2HOMEPAGE= "http://www.pylint.org/"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
5
6SRC_URI += " \
7 git://github.com/pylint-dev/pylint;branch=main;protocol=https \
8 file://run-ptest \
9 file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \
10 "
11SRCREV ?= "fc34a4b6abe56f3ac07ca15d846b1c1955545f85"
12
13inherit python_setuptools_build_meta ptest
14
15RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
16 ${PYTHON_PN}-dill \
17 ${PYTHON_PN}-isort \
18 ${PYTHON_PN}-mccabe \
19 ${PYTHON_PN}-numbers \
20 ${PYTHON_PN}-platformdirs \
21 ${PYTHON_PN}-shell \
22 ${PYTHON_PN}-json \
23 ${PYTHON_PN}-pkgutil \
24 ${PYTHON_PN}-difflib \
25 ${PYTHON_PN}-netserver \
26 ${PYTHON_PN}-tomlkit \
27 "
28
29RDEPENDS:${PN}-ptest += " \
30 ${PYTHON_PN}-core \
31 ${PYTHON_PN}-git \
32 ${PYTHON_PN}-py \
33 ${PYTHON_PN}-pytest \
34 ${PYTHON_PN}-pytest-benchmark \
35 ${PYTHON_PN}-pytest-runner \
36 ${PYTHON_PN}-pytest-timeout \
37 ${PYTHON_PN}-pytest-xdist \
38 ${PYTHON_PN}-requests \
39 ${PYTHON_PN}-statistics \
40 ${PYTHON_PN}-tomllib \
41 ${PYTHON_PN}-typing-extensions \
42 "
43
44S = "${WORKDIR}/git"
45
46do_install_ptest() {
47 install -d ${D}${PTEST_PATH}/tests
48 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
49 sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript
50}