From 6580c4bb38ece6f0775c550e36ee5da89352d500 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Fri, 15 Dec 2023 08:18:33 +0800 Subject: python3-pylint: upgrade 3.0.2 -> 3.0.3 Changelog: =========== -Fixed false positive for unnecessary-lambda when the call has keyword arguments but not the lambda. -Fixed incorrect suggestion for shallow copy in unnecessary-comprehension -Fix false positives for undefined-variable and unused-argument for classes and functions using Python 3.12 generic type syntax. -Fixed pointless-string-statement false positive for docstrings on Python 3.12 type aliases. -Fix false positive for invalid-exception-operation when concatenating tuples of exception types. -Fix a bug where pylint was unable to walk recursively through a directory if the directory has an __init__.py file. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-pylint_3.0.2.bb | 51 ---------------------- .../python/python3-pylint_3.0.3.bb | 51 ++++++++++++++++++++++ 2 files changed, 51 insertions(+), 51 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pylint_3.0.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-pylint_3.0.2.bb b/meta-python/recipes-devtools/python/python3-pylint_3.0.2.bb deleted file mode 100644 index 8af74b7cba..0000000000 --- a/meta-python/recipes-devtools/python/python3-pylint_3.0.2.bb +++ /dev/null @@ -1,51 +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=maintenance/3.0.x;protocol=https \ - file://run-ptest \ - " -SRCREV = "efee9618894795cc8847727108522aa79431ee25" - -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/ - install -Dm 0644 ${S}/tests/.pylint_primer_tests/.gitkeep ${D}${PTEST_PATH}/tests/.pylint_primer_tests/.gitkeep - sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript -} - -BBCLASSEXTEND = "native nativesdk" 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 new file mode 100644 index 0000000000..09ab1f26ff --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pylint_3.0.3.bb @@ -0,0 +1,51 @@ +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=maintenance/3.0.x;protocol=https \ + file://run-ptest \ + " +SRCREV = "1a5ffc1f447b77071ffe18a9c6836c09147ee2ed" + +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/ + install -Dm 0644 ${S}/tests/.pylint_primer_tests/.gitkeep ${D}${PTEST_PATH}/tests/.pylint_primer_tests/.gitkeep + sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf