diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pylint_4.0.3.bb | 58 |
1 files changed, 58 insertions, 0 deletions
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 @@ | |||
| 1 | SUMMARY = "Pylint is a Python source code analyzer" | ||
| 2 | HOMEPAGE = "https://www.pylint.org/" | ||
| 3 | LICENSE = "GPL-2.0-only" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" | ||
| 5 | |||
| 6 | SRCREV = "84b6552b86e210097ac29de7ef64b152efb4a454" | ||
| 7 | SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https;tag=v${PV} \ | ||
| 8 | file://0001-Adjust-test-expectations-for-ptest.patch \ | ||
| 9 | file://0002-pyproject.toml-Keep-tool.setuptools.license-files.patch \ | ||
| 10 | file://run-ptest \ | ||
| 11 | " | ||
| 12 | |||
| 13 | inherit python_setuptools_build_meta ptest | ||
| 14 | |||
| 15 | |||
| 16 | RDEPENDS:${PN} += "\ | ||
| 17 | python3-astroid \ | ||
| 18 | python3-difflib \ | ||
| 19 | python3-dill \ | ||
| 20 | python3-isort \ | ||
| 21 | python3-json \ | ||
| 22 | python3-mccabe \ | ||
| 23 | python3-netserver \ | ||
| 24 | python3-numbers \ | ||
| 25 | python3-pkgutil \ | ||
| 26 | python3-platformdirs \ | ||
| 27 | python3-shell \ | ||
| 28 | python3-tomlkit \ | ||
| 29 | " | ||
| 30 | # python3-misc for timeit.py | ||
| 31 | RDEPENDS:${PN}-ptest += " \ | ||
| 32 | python3-core \ | ||
| 33 | python3-git \ | ||
| 34 | python3-misc \ | ||
| 35 | python3-py \ | ||
| 36 | python3-pytest \ | ||
| 37 | python3-pytest-benchmark \ | ||
| 38 | python3-pytest-runner \ | ||
| 39 | python3-pytest-timeout \ | ||
| 40 | python3-pytest-xdist \ | ||
| 41 | python3-requests \ | ||
| 42 | python3-statistics \ | ||
| 43 | python3-tomllib \ | ||
| 44 | python3-typing-extensions \ | ||
| 45 | python3-unittest-automake-output \ | ||
| 46 | " | ||
| 47 | |||
| 48 | do_install_ptest() { | ||
| 49 | install -d ${D}${PTEST_PATH}/tests | ||
| 50 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 51 | install -Dm 0644 ${S}/tests/.pylint_primer_tests/.gitkeep ${D}${PTEST_PATH}/tests/.pylint_primer_tests/.gitkeep | ||
| 52 | sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/a_script | ||
| 53 | # regression_distutil_import_error_73.py fails to run see | ||
| 54 | # https://lists.openembedded.org/g/openembedded-devel/topic/103181847 | ||
| 55 | rm ${D}${PTEST_PATH}/tests/functional/r/regression_02/regression_distutil_import_error_73.py | ||
| 56 | } | ||
| 57 | |||
| 58 | BBCLASSEXTEND = "native nativesdk" | ||
