diff options
| author | Derek Straka <derek@asterius.io> | 2017-11-30 14:02:05 -0500 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2017-12-11 07:58:58 -0800 |
| commit | ec6c08f74c765c04b0946d604b4c0f074e2b28f7 (patch) | |
| tree | 65bcc81bac3861583e35293a5548d401082a1643 | |
| parent | 857ed16bc8b67cb67fe4b1b11930a1154ea01d6c (diff) | |
| download | meta-openembedded-ec6c08f74c765c04b0946d604b4c0f074e2b28f7.tar.gz | |
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>
| -rw-r--r-- | meta-python/recipes-devtools/python/python-pylint.inc | 26 |
1 files 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 c55bce6f20..5398ca1a39 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 | |||
| 10 | 10 | ||
| 11 | DEPENDS += "${PYTHON_PN}-pytest-runner-native" | 11 | DEPENDS += "${PYTHON_PN}-pytest-runner-native" |
| 12 | 12 | ||
| 13 | RDEPENDS_${PN} += "${PYTHON_PN}-astroid \ | ||
| 14 | ${PYTHON_PN}-isort \ | ||
| 15 | ${PYTHON_PN}-numbers \ | ||
| 16 | ${PYTHON_PN}-shell \ | ||
| 17 | ${PYTHON_PN}-json \ | ||
| 18 | ${PYTHON_PN}-pkgutil \ | ||
| 19 | ${PYTHON_PN}-difflib \ | ||
| 20 | ${PYTHON_PN}-netserver \ | ||
| 21 | " | ||
| 22 | |||
| 23 | do_install_append(){ | 13 | do_install_append(){ |
| 24 | rm ${D}${bindir}/pylint | 14 | rm ${D}${bindir}/pylint |
| 25 | cat >> ${D}${bindir}/pylint <<EOF | 15 | cat >> ${D}${bindir}/pylint <<EOF |
| @@ -30,3 +20,19 @@ EOF | |||
| 30 | chmod 755 ${D}${bindir}/pylint | 20 | chmod 755 ${D}${bindir}/pylint |
| 31 | sed -i -e 's:^#!/usr/bin/python:#!/usr/bin/env\ ${PYTHON_PN}:g' ${D}/${PYTHON_SITEPACKAGES_DIR}/pylint/test/data/ascript | 21 | sed -i -e 's:^#!/usr/bin/python:#!/usr/bin/env\ ${PYTHON_PN}:g' ${D}/${PYTHON_SITEPACKAGES_DIR}/pylint/test/data/ascript |
| 32 | } | 22 | } |
| 23 | |||
| 24 | PACKAGES =+ "${PN}-tests" | ||
| 25 | FILES_${PN}-tests+= " \ | ||
| 26 | ${PYTHON_SITEPACKAGES_DIR}/pylint/test/ \ | ||
| 27 | ${PYTHON_SITEPACKAGES_DIR}/pylint/testutils.py \ | ||
| 28 | " | ||
| 29 | |||
| 30 | RDEPENDS_${PN} += "${PYTHON_PN}-astroid \ | ||
| 31 | ${PYTHON_PN}-isort \ | ||
| 32 | ${PYTHON_PN}-numbers \ | ||
| 33 | ${PYTHON_PN}-shell \ | ||
| 34 | ${PYTHON_PN}-json \ | ||
| 35 | ${PYTHON_PN}-pkgutil \ | ||
| 36 | ${PYTHON_PN}-difflib \ | ||
| 37 | ${PYTHON_PN}-netserver \ | ||
| 38 | " | ||
