meta-openembedded/meta-python/recipes-devtools/python/python3-gunicorn_20.1.0.bb
Trevor Gamblin e8247f6b28 python3-gunicorn: tweak run-ptest, add RDEPENDS
gunicorn relies on eventlet and gevent for its ptests, and it also
requires a non-empty /etc/resolv.conf for one of those tests. Add those
two modules to RDEPENDS for the recipe, and add an echo in run-ptest to
make sure that there is something basic in /etc/resolv.conf before the
test actually runs.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-08-26 09:57:25 -07:00

26 lines
565 B
BlitzBasic

SUMMARY = "WSGI HTTP Server for UNIX"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f75f3fb94cdeab1d607e2adaa6077752"
SRC_URI[sha256sum] = "e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"
inherit pypi setuptools3 ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-eventlet \
${PYTHON_PN}-gevent \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} += "${PYTHON_PN}-setuptools ${PYTHON_PN}-fcntl"