From 08de5f3969aabb2e71ef04d2d1a210ed1fb72cc2 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Mon, 15 May 2023 10:06:26 -0400 Subject: 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 Signed-off-by: Khem Raj --- .../python/python3-pylint_2.17.3.bb | 50 ---------------------- .../python/python3-pylint_2.17.4.bb | 50 ++++++++++++++++++++++ 2 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb deleted file mode 100644 index 4a082066b6..0000000000 --- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb +++ /dev/null @@ -1,50 +0,0 @@ -SUMMARY="Pylint is a Python source code analyzer" -HOMEPAGE= "http://www.pylint.org/" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" - -SRC_URI += " \ - git://github.com/pylint-dev/pylint;branch=main;protocol=https \ - file://run-ptest \ - file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \ - " -SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078" - -inherit python_setuptools_build_meta ptest - -RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ - ${PYTHON_PN}-dill \ - ${PYTHON_PN}-isort \ - ${PYTHON_PN}-mccabe \ - ${PYTHON_PN}-numbers \ - ${PYTHON_PN}-platformdirs \ - ${PYTHON_PN}-shell \ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-pkgutil \ - ${PYTHON_PN}-difflib \ - ${PYTHON_PN}-netserver \ - ${PYTHON_PN}-tomlkit \ - " - -RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-core \ - ${PYTHON_PN}-git \ - ${PYTHON_PN}-py \ - ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-pytest-benchmark \ - ${PYTHON_PN}-pytest-runner \ - ${PYTHON_PN}-pytest-timeout \ - ${PYTHON_PN}-pytest-xdist \ - ${PYTHON_PN}-requests \ - ${PYTHON_PN}-statistics \ - ${PYTHON_PN}-tomllib \ - ${PYTHON_PN}-typing-extensions \ - " - -S = "${WORKDIR}/git" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ - sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript -} 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 @@ +SUMMARY="Pylint is a Python source code analyzer" +HOMEPAGE= "http://www.pylint.org/" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" + +SRC_URI += " \ + git://github.com/pylint-dev/pylint;branch=main;protocol=https \ + file://run-ptest \ + file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \ + " +SRCREV ?= "fc34a4b6abe56f3ac07ca15d846b1c1955545f85" + +inherit python_setuptools_build_meta ptest + +RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ + ${PYTHON_PN}-dill \ + ${PYTHON_PN}-isort \ + ${PYTHON_PN}-mccabe \ + ${PYTHON_PN}-numbers \ + ${PYTHON_PN}-platformdirs \ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-pkgutil \ + ${PYTHON_PN}-difflib \ + ${PYTHON_PN}-netserver \ + ${PYTHON_PN}-tomlkit \ + " + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-core \ + ${PYTHON_PN}-git \ + ${PYTHON_PN}-py \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-pytest-benchmark \ + ${PYTHON_PN}-pytest-runner \ + ${PYTHON_PN}-pytest-timeout \ + ${PYTHON_PN}-pytest-xdist \ + ${PYTHON_PN}-requests \ + ${PYTHON_PN}-statistics \ + ${PYTHON_PN}-tomllib \ + ${PYTHON_PN}-typing-extensions \ + " + +S = "${WORKDIR}/git" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript +} -- cgit v1.2.3-54-g00ecf