mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-17 15:20:32 +00:00
python-pylint: add a test package for unit tests
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
857ed16bc8
commit
ec6c08f74c
@@ -10,16 +10,6 @@ inherit pypi
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-pytest-runner-native"
|
||||
|
||||
RDEPENDS_${PN} += "${PYTHON_PN}-astroid \
|
||||
${PYTHON_PN}-isort \
|
||||
${PYTHON_PN}-numbers \
|
||||
${PYTHON_PN}-shell \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-pkgutil \
|
||||
${PYTHON_PN}-difflib \
|
||||
${PYTHON_PN}-netserver \
|
||||
"
|
||||
|
||||
do_install_append(){
|
||||
rm ${D}${bindir}/pylint
|
||||
cat >> ${D}${bindir}/pylint <<EOF
|
||||
@@ -30,3 +20,19 @@ EOF
|
||||
chmod 755 ${D}${bindir}/pylint
|
||||
sed -i -e 's:^#!/usr/bin/python:#!/usr/bin/env\ ${PYTHON_PN}:g' ${D}/${PYTHON_SITEPACKAGES_DIR}/pylint/test/data/ascript
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-tests"
|
||||
FILES_${PN}-tests+= " \
|
||||
${PYTHON_SITEPACKAGES_DIR}/pylint/test/ \
|
||||
${PYTHON_SITEPACKAGES_DIR}/pylint/testutils.py \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN} += "${PYTHON_PN}-astroid \
|
||||
${PYTHON_PN}-isort \
|
||||
${PYTHON_PN}-numbers \
|
||||
${PYTHON_PN}-shell \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-pkgutil \
|
||||
${PYTHON_PN}-difflib \
|
||||
${PYTHON_PN}-netserver \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user