meta-openembedded/meta-python/recipes-devtools/python/python3-pylint_3.3.6.bb
Alexander Kanavin fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00

59 lines
1.8 KiB
BlitzBasic

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 = "7ac5a4d4f77576df3a00e63f86ca86e0e1780b47"
SRC_URI += "git://github.com/pylint-dev/pylint;branch=maintenance/3.3.x;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"