From 0434d3dad64b532a9f136c077ad9f1d37b1b1b53 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 18 Nov 2025 12:27:38 -0800 Subject: python3-pylint: Upgrade to 4.0.3 release Forward patches to avoid fuzz, no functional change Signed-off-by: Khem Raj --- .../0001-Adjust-test-expectations-for-ptest.patch | 4 +- ...t.toml-Keep-tool.setuptools.license-files.patch | 8 ++- .../python/python3-pylint_3.3.8.bb | 58 ---------------------- .../python/python3-pylint_4.0.3.bb | 58 ++++++++++++++++++++++ 4 files changed, 62 insertions(+), 66 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pylint_3.3.8.bb create mode 100644 meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-Adjust-test-expectations-for-ptest.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-Adjust-test-expectations-for-ptest.patch index 0f3e7d45e8..307dc0083b 100644 --- a/meta-python/recipes-devtools/python/python3-pylint/0001-Adjust-test-expectations-for-ptest.patch +++ b/meta-python/recipes-devtools/python/python3-pylint/0001-Adjust-test-expectations-for-ptest.patch @@ -12,11 +12,9 @@ Signed-off-by: Dan McGregor tests/functional/w/wrong_import_order.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) -diff --git a/tests/functional/w/wrong_import_order.txt b/tests/functional/w/wrong_import_order.txt -index 9f143c292..a283467af 100644 --- a/tests/functional/w/wrong_import_order.txt +++ b/tests/functional/w/wrong_import_order.txt -@@ -3,14 +3,14 @@ wrong-import-order:14:0:14:10::"standard import ""sys"" should be placed before +@@ -3,14 +3,14 @@ wrong-import-order:14:0:14:10::"standard wrong-import-order:15:0:15:15::"standard import ""datetime"" should be placed before third party imports ""six"", ""astroid.are_exclusive""":UNDEFINED wrong-import-order:18:0:18:22::"third party import ""totally_missing"" should be placed before local import ""package.Class""":UNDEFINED wrong-import-order:20:0:20:14::"third party import ""astroid"" should be placed before local imports ""package.Class"", "".package""":UNDEFINED diff --git a/meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch b/meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch index d30e852025..9c1d535690 100644 --- a/meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch +++ b/meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch @@ -19,8 +19,6 @@ Signed-off-by: Leon Anavi pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -diff --git a/pyproject.toml b/pyproject.toml -index a3cc3f43b..5eaf5ee5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,7 @@ name = "pylint" @@ -33,9 +31,9 @@ index a3cc3f43b..5eaf5ee5e 100644 authors = [ { name = "Python Code Quality Authority", email = "code-quality@python.org" }, ] -@@ -65,6 +64,9 @@ scripts.pylint-config = "pylint:_run_pylint_config" - scripts.pyreverse = "pylint:run_pyreverse" - scripts.symilar = "pylint:run_symilar" +@@ -105,6 +104,9 @@ test-min = [ + "typing-extensions~=4.15", + ] +[tool.setuptools] +license-files = [ "LICENSE", "CONTRIBUTORS.txt" ] diff --git a/meta-python/recipes-devtools/python/python3-pylint_3.3.8.bb b/meta-python/recipes-devtools/python/python3-pylint_3.3.8.bb deleted file mode 100644 index 9864084355..0000000000 --- a/meta-python/recipes-devtools/python/python3-pylint_3.3.8.bb +++ /dev/null @@ -1,58 +0,0 @@ -SUMMARY = "Pylint is a Python source code analyzer" -HOMEPAGE = "https://www.pylint.org/" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" - -SRCREV = "98942ba4126a6fe1657bad77027bcc11016d16da" -SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https \ - file://0001-Adjust-test-expectations-for-ptest.patch \ - file://0002-pyproject.toml-Keep-tool.setuptools.license-files.patch \ - file://run-ptest \ - " - -inherit python_setuptools_build_meta ptest - - -RDEPENDS:${PN} += "\ - python3-astroid \ - python3-difflib \ - python3-dill \ - python3-isort \ - python3-json \ - python3-mccabe \ - python3-netserver \ - python3-numbers \ - python3-pkgutil \ - python3-platformdirs \ - python3-shell \ - python3-tomlkit \ - " -# python3-misc for timeit.py -RDEPENDS:${PN}-ptest += " \ - python3-core \ - python3-git \ - python3-misc \ - python3-py \ - python3-pytest \ - python3-pytest-benchmark \ - python3-pytest-runner \ - python3-pytest-timeout \ - python3-pytest-xdist \ - python3-requests \ - python3-statistics \ - python3-tomllib \ - python3-typing-extensions \ - python3-unittest-automake-output \ - " - -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/a_script - # regression_distutil_import_error_73.py fails to run see - # https://lists.openembedded.org/g/openembedded-devel/topic/103181847 - rm ${D}${PTEST_PATH}/tests/functional/r/regression_02/regression_distutil_import_error_73.py -} - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb b/meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb new file mode 100644 index 0000000000..04144aa7a3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb @@ -0,0 +1,58 @@ +SUMMARY = "Pylint is a Python source code analyzer" +HOMEPAGE = "https://www.pylint.org/" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" + +SRCREV = "84b6552b86e210097ac29de7ef64b152efb4a454" +SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https;tag=v${PV} \ + file://0001-Adjust-test-expectations-for-ptest.patch \ + file://0002-pyproject.toml-Keep-tool.setuptools.license-files.patch \ + file://run-ptest \ + " + +inherit python_setuptools_build_meta ptest + + +RDEPENDS:${PN} += "\ + python3-astroid \ + python3-difflib \ + python3-dill \ + python3-isort \ + python3-json \ + python3-mccabe \ + python3-netserver \ + python3-numbers \ + python3-pkgutil \ + python3-platformdirs \ + python3-shell \ + python3-tomlkit \ + " +# python3-misc for timeit.py +RDEPENDS:${PN}-ptest += " \ + python3-core \ + python3-git \ + python3-misc \ + python3-py \ + python3-pytest \ + python3-pytest-benchmark \ + python3-pytest-runner \ + python3-pytest-timeout \ + python3-pytest-xdist \ + python3-requests \ + python3-statistics \ + python3-tomllib \ + python3-typing-extensions \ + python3-unittest-automake-output \ + " + +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/a_script + # regression_distutil_import_error_73.py fails to run see + # https://lists.openembedded.org/g/openembedded-devel/topic/103181847 + rm ${D}${PTEST_PATH}/tests/functional/r/regression_02/regression_distutil_import_error_73.py +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf