From 1ea01342eda55b45b6847efb4af9ae87e77e25e2 Mon Sep 17 00:00:00 2001 From: Dhruvaraj Subhashchandran Date: Thu, 12 Oct 2017 04:43:17 -0500 Subject: Install gevent-websocket to the image gevent-websocket is a websocket handler for the gevent networking library. Websocket is used to push data out from the rest server to connected clients. Resolves openbmc/openbmc#2321 Change-Id: Ie381da1b0fd8b95e1fbb55d0063b3b7d9c1cc2c5 Signed-off-by: Dhruvaraj Subhashchandran --- .../python/python-gevent-websocket_0.10.1.bb | 22 ++++++++++++++++++++++ .../recipes-phosphor/interfaces/phosphor-gevent.bb | 2 ++ .../recipes-phosphor/interfaces/phosphor-rest.bb | 5 ++++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb diff --git a/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb b/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb new file mode 100644 index 000000000..930ec3a99 --- /dev/null +++ b/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb @@ -0,0 +1,22 @@ +HOMEPAGE = "https://bitbucket.org/noppo/gevent-websocket" +SUMMARY = "A websocket library for gevent Python networking library" +DESCRIPTION = "\ + WebSocket is a computer communications protocol, providing full-duplex \ + communication channels over a single TCP connection. gevent-websocket \ + library provides websocket support for gevent. \ + " +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5aa2f1d4ea55d60497aa8c3debf29ab2" + +RDEPENDS_${PN} = "python-gevent" + +SRCNAME = "gevent-websocket" + +SRC_URI = "https://pypi.python.org/packages/98/d2/6fa19239ff1ab072af40ebf339acd91fb97f34617c2ee625b8e34bf42393/gevent-websocket-${PV}.tar.gz" +SRC_URI[md5sum] = "e095bf3358175489a956949c1b4de9ff" +SRC_URI[sha256sum] = "7eaef32968290c9121f7c35b973e2cc302ffb076d018c9068d2f5ca8b2d85fb0" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb index ee24a1339..4301e6b83 100644 --- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb +++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb @@ -14,6 +14,8 @@ RPROVIDES_${PN} += "virtual-obmc-wsgihost" RDEPENDS_${PN} += " \ python-gevent \ " +RRECOMMENDS_${PN} += "python-gevent-websocket" + S = "${WORKDIR}/git/servers/gevent" diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb index 6361f2598..a1a8cfdd4 100644 --- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb +++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb @@ -9,7 +9,10 @@ inherit obmc-phosphor-discovery-service require phosphor-rest.inc -RRECOMMENDS_${PN} += "virtual-obmc-wsgihost" +RRECOMMENDS_${PN} += " \ + virtual-obmc-wsgihost \ + python-gevent-websocket \ + " RDEPENDS_${PN} += " \ python-xml \ -- cgit v1.2.3