mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

3.3.3 ===== False Positives Fixed Fix false positives for undefined-variable for classes using Python 3.12 generic type syntax. Closes #9335 Fix a false positive for use-implicit-booleaness-not-len. No lint should be emitted for generators (len is not defined for generators). Refs #10100 Other Bug Fixes Fix Unable to import 'collections.abc' (import-error) on Python 3.13.1. Closes #10112 3.3.2 ===== False Positives Fixed Fix a false positive for potential-index-error when an indexed iterable contains a starred element that evaluates to more than one item. Closes #10076 Other Bug Fixes Fixes the issue with --source-root option not working when the source files are in a subdirectory of the source root (e.g. when using a /src layout). Closes #10026 Signed-off-by: Khem Raj <raj.khem@gmail.com>
59 lines
1.7 KiB
BlitzBasic
59 lines
1.7 KiB
BlitzBasic
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"
|
|
|
|
SRCREV = "c28580be76fe1ec55a6cac41833c0bd68070d2f7"
|
|
SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https \
|
|
file://0001-Adjust-test-expectations-for-ptest.patch \
|
|
file://run-ptest \
|
|
"
|
|
|
|
inherit python_setuptools_build_meta ptest
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
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"
|