summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2015-11-09 14:40:35 -0500
committerBrad Bishop <bradleyb@us.ibm.com>2015-11-09 15:53:52 -0500
commit8f29b920a42ede3d2be0fa4a4753837523bf8ed3 (patch)
tree183d820e09ec4452e320dea2fd52e9d0d7d2e73d
parentd19d16b4d1e2f27841e71c08b548a683a1946df4 (diff)
downloadtalos-openbmc-8f29b920a42ede3d2be0fa4a4753837523bf8ed3.tar.gz
talos-openbmc-8f29b920a42ede3d2be0fa4a4753837523bf8ed3.zip
Add CherryPy recipe
CherryPy implements a WSGI server. I am planning on using it for the REST server initially. WSGI is very modular so a better server can be dropped in later if one is available.
-rw-r--r--meta-phosphor/common/recipes-devtools/python/CherryPy.inc49
-rw-r--r--meta-phosphor/common/recipes-devtools/python/CherryPy_3.8.0.bb4
2 files changed, 53 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-devtools/python/CherryPy.inc b/meta-phosphor/common/recipes-devtools/python/CherryPy.inc
new file mode 100644
index 000000000..c69ccad58
--- /dev/null
+++ b/meta-phosphor/common/recipes-devtools/python/CherryPy.inc
@@ -0,0 +1,49 @@
+SUMMARY = "Object-Oriented HTTP framework"
+DESCRIPTION = "CherryPy is a pythonic, object-oriented HTTP framework"
+HOMEPAGE = "http://www.cherrypy.org/"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://cherrypy/LICENSE.txt;md5=a476d86a3f85c89411ecaad012eed1e3"
+
+inherit allarch
+inherit setuptools
+
+PROVIDES+="${PN}-tests ${PN}-tutorials ${PN}-server ${PN}-scaffold ${PN}-daemon ${PN}-docs"
+PACKAGES+="${PN}-tests ${PN}-tutorials ${PN}-server ${PN}-scaffold ${PN}-daemon ${PN}-docs"
+
+base_package_dir = "${libdir}/python2.7/site-packages"
+package_dir = "${base_package_dir}/cherrypy"
+share_dir = "${datadir}/cherrypy"
+
+SUMMARY_${PN}-server="${BPN} server"
+RDEPENDS_${PN}-server="${PN}"
+FILES_${PN}-server="${package_dir}/wsgiserver ${share_dir}/wsgiserver "
+
+SUMMARY_${PN}-scaffold="${BPN} scaffold"
+RDEPENDS_${PN}-scaffold="${PN}"
+FILES_${PN}-scaffold="${package_dir}/scaffold ${share_dir}/scaffold "
+
+SUMMARY_${PN}-tests="${BPN} tests"
+RDEPENDS_${PN}-tests="${PN}"
+FILES_${PN}-tests="${package_dir}/test ${share_dir}/test "
+
+SUMMARY_${PN}-tutorials ="${BPN} tutorials"
+RDEPENDS_${PN}-tutorials ="${PN}"
+FILES_${PN}-tutorials ="${package_dir}/tutorial ${share_dir}/tutorial "
+
+SUMMARY_${PN}-daemon ="${BPN} daemon"
+RDEPENDS_${PN}-daemon ="${PN}"
+FILES_${PN}-daemon ="${bindir} ${share_dir}/cherryd "
+
+SUMMARY_${PN}-docs ="${BPN} docs"
+RDEPENDS_${PN}-docs ="${PN}"
+FILES_${PN}-docs ="${share_dir}/favicon.ico ${share_dir}/LICENSE.txt "
+
+FILES_${PN} = " \
+ ${package_dir}/*.py* \
+ ${package_dir}/lib \
+ ${package_dir}/process \
+ ${share_dir}/process \
+ ${base_package_dir}/*.egg-info \
+ "
+BBCLASSEXTEND = "nativesdk"
diff --git a/meta-phosphor/common/recipes-devtools/python/CherryPy_3.8.0.bb b/meta-phosphor/common/recipes-devtools/python/CherryPy_3.8.0.bb
new file mode 100644
index 000000000..22a56fc9f
--- /dev/null
+++ b/meta-phosphor/common/recipes-devtools/python/CherryPy_3.8.0.bb
@@ -0,0 +1,4 @@
+require CherryPy.inc
+SRC_URI = "https://pypi.python.org/packages/source/C/${BPN}/${BP}.tar.gz;name=tarball"
+SRC_URI[tarball.sha256sum] = "ffcdb43667d4098247efaf8c82dd36d3dd4f8e5dc768ef5e90b480899e523bea"
+SRC_URI[tarball.md5sum] = "542b96b2cd825e8120e8cd822bc18f4b"
OpenPOWER on IntegriCloud