[oe-commits] [meta-openembedded] 36/40: python-pylint: add a test package for unit tests
git at git.openembedded.org
git at git.openembedded.org
Mon Dec 11 16:04:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
armin_kuster pushed a commit to branch master
in repository meta-openembedded.
commit ec6c08f74c765c04b0946d604b4c0f074e2b28f7
Author: Derek Straka <derek at asterius.io>
AuthorDate: Thu Nov 30 14:02:05 2017 -0500
python-pylint: add a test package for unit tests
Signed-off-by: Derek Straka <derek at asterius.io>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
.../recipes-devtools/python/python-pylint.inc | 26 +++++++++++++---------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/meta-python/recipes-devtools/python/python-pylint.inc b/meta-python/recipes-devtools/python/python-pylint.inc
index c55bce6..5398ca1 100644
--- a/meta-python/recipes-devtools/python/python-pylint.inc
+++ b/meta-python/recipes-devtools/python/python-pylint.inc
@@ -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 \
+ "
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list