summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2023-05-02 12:50:04 -0400
committerKhem Raj <raj.khem@gmail.com>2023-05-12 10:33:54 -0700
commit7a75c2d6b4334ee7701158bdd63e8c5acbe3125f (patch)
treeddf25aa613d62f0c5704ddb54338785a07268a9e /meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
parentb9b6308f3d2c6a75bd1b71dce5b475efe292c85d (diff)
downloadmeta-openembedded-7a75c2d6b4334ee7701158bdd63e8c5acbe3125f.tar.gz
python3-pylint: add ptest
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb30
1 files changed, 27 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
index b85f77503d..58f0616fcd 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
@@ -3,10 +3,14 @@ HOMEPAGE= "http://www.pylint.org/"
3LICENSE = "GPL-2.0-only" 3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
5 5
6SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch" 6SRC_URI += " \
7SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5" 7 git://github.com/pylint-dev/pylint;branch=main;protocol=https \
8 file://run-ptest \
9 file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \
10 "
11SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078"
8 12
9inherit pypi python_setuptools_build_meta 13inherit python_setuptools_build_meta ptest
10 14
11RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ 15RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
12 ${PYTHON_PN}-isort \ 16 ${PYTHON_PN}-isort \
@@ -17,3 +21,23 @@ RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
17 ${PYTHON_PN}-difflib \ 21 ${PYTHON_PN}-difflib \
18 ${PYTHON_PN}-netserver \ 22 ${PYTHON_PN}-netserver \
19 " 23 "
24
25RDEPENDS:${PN}-ptest += " \
26 ${PYTHON_PN}-core \
27 ${PYTHON_PN}-dill \
28 ${PYTHON_PN}-git \
29 ${PYTHON_PN}-platformdirs \
30 ${PYTHON_PN}-pytest \
31 ${PYTHON_PN}-pytest-benchmark \
32 ${PYTHON_PN}-statistics \
33 ${PYTHON_PN}-tomlkit \
34 ${PYTHON_PN}-tomllib \
35 "
36
37S = "${WORKDIR}/git"
38
39do_install_ptest() {
40 install -d ${D}${PTEST_PATH}/tests
41 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
42 sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript
43}