mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-13 03:37:15 +00:00
python3-pylint: upgrade 4.0.8 -> 4.1.3
Home Assistant 2026.11 pins pylint 4.1.3 in its test requirements. Drop patches that are no longer needed: - 0002-pyproject.toml-Keep-tool.setuptools.license-files.patch rewrote the PEP 639 license and license-files keys into the older tool.setuptools form. 4.1.3 requires setuptools >= 77, which handles the PEP 639 keys, and OE-Core provides 84.0.0. - 0003-astroid-4.1.2-endlineno.patch adjusted functional test expectations for astroid 4.1.2 (for example MyClass instead of MyClass.my_method). 4.1.3 ships the same expectations. - 0004-checkers-variables-do-not-pass-asname-to-Import.infer.patch was a backport of upstream commit 554b1d192434, which is part of 4.1.3. Refresh 0001-Adjust-test-expectations-for-ptest.patch. The expected output was regenerated by running the functional test with pylint 4.1.3 and astroid 4.3.4 installed into a virtualenv and the tests outside the source tree, which is how the ptest sees pylint. AI-Generated: Claude Code, Claude Opus 5.5 Signed-off-by: Thomas Roos <thomas@roosesweb.de> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
bb753686ce
commit
ffa1f61204
5 files changed
+11
-297
No files matched your search
@@ -0,0 +1,57 @@
|
||||
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 = "e75de10c69103381c875601f638d4b977ff0fcaf"
|
||||
SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https;tag=v${PV} \
|
||||
file://0001-Adjust-test-expectations-for-ptest.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"
|
||||
Reference in new issue
Block a user