python3-eventlet: add 0.30.2 to meta-python
PATCH 1/2 python3-eventlet: add 0.30.2 to meta-python
python3-gunicorn in meta-python relies on python3-eventlet for its ptests, so add a version of the eventlet recipe to the layer and update to the latest version. This recipe file is based on the one from the meta-openstack layer, but the .inc and .bb files have been combined. Also add python3-dnspython to RDEPENDS so that "import eventlet" works.
Note that there is a newer version of eventlet, but anything 0.30.3 and newer is incompatible with the current version of gunicorn. eventlet will get another update as soon as there is a new release of gunicorn handling the API change.
--- .../python/python3-eventlet_0.30.2.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-eventlet_0.30.2.bb
meta-python/recipes-devtools/python/python3-eventlet_0.30.2.bb new file +12 -0
@@ -0,0 +1,12 @@ +DESCRIPTION = "Highly concurrent networking library" +HOMEPAGE = "http://pypi.python.org/pypi/eventlet" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778" + +SRC_URI[md5sum] = "ebf5794e3f7a9f1778fb4f2a58eb7614" +SRC_URI[sha256sum] = "1811b122d9a45eb5bafba092d36911bca825f835cb648a862bbf984030acff9d" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += "${PYTHON_PN}-dnspython"
Signature · 1 line
2.31.1
PATCH 2/2 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.
--- .../recipes-devtools/python/python3-gunicorn/run-ptest | 4 ++++ .../recipes-devtools/python/python3-gunicorn_20.1.0.bb | 2 ++ 2 files changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-gunicorn/run-ptest +4 -0
@@ -1,3 +1,7 @@ #!/bin/sh +# there needs to be something in /etc/resolv.conf for the gunicorn +# ptests to work, so make sure there's at least one nameserver line +echo "nameserver 8.8.8.8" >> /etc/resolv.conf + pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-python/recipes-devtools/python/python3-gunicorn_20.1.0.bb +2 -0
@@ -12,6 +12,8 @@ SRC_URI += " \ " RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-eventlet \ + ${PYTHON_PN}-gevent \ ${PYTHON_PN}-pytest \ "
Signature · 1 line
2.31.1