From bd0c221f230e26adeb693eb626b08757037a8c6a Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Fri, 20 Jun 2014 13:09:43 -0400 Subject: httpretty: create recipe for package Keystoneclient tests require the package httpretty be available on the system in order to run. This fix includes a recipe file for obtaining and building httpretty. The fix also adds httpretty as a dependency of keystoneclient. Signed-off-by: Keith Holman --- .../python/python-httpretty_0.8.0.bb | 26 ++++++++++++++++++++++ .../python/python-keystoneclient_git.bb | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-openstack/recipes-devtools/python/python-httpretty_0.8.0.bb (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-httpretty_0.8.0.bb b/meta-openstack/recipes-devtools/python/python-httpretty_0.8.0.bb new file mode 100644 index 0000000..0ceb7bc --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-httpretty_0.8.0.bb @@ -0,0 +1,26 @@ +# +# Copyright (C) 2014 Wind River Systems, Inc. +# +DESCRIPTION = "HTTP client mock for Python" +HOMEPAGE = "https://pypi.python.org/pypi/httpretty" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=fac859f0c7aee8d7f10b1aa5b130d1a7" + +PR = "r0" +SRCNAME = "httpretty" + +SRC_URI = "https://pypi.python.org/packages/source/h/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ + " + +SRC_URI[md5sum] = "2d5ea5205c358fa489e6de6fc74c00fa" +SRC_URI[sha256sum] = "e5512b38ad3bfb9f7d275c957b4a7eddc69e4b3a749e3b62a984c86fb6ab329b" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS += " \ + python-pip \ + " + diff --git a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb index a326cd7..9e7965c 100644 --- a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb @@ -26,7 +26,8 @@ DEPENDS += " \ python-pbr \ " -RDEPENDS_${PN} += "python-iso8601 \ +RDEPENDS_${PN} += " \ + python-iso8601 \ python-prettytable \ python-requests \ python-simplejson \ @@ -49,4 +50,7 @@ FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" FILES_${SRCNAME}-tests = "${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/examples \ " +RDEPENDS_${SRCNAME}-tests += " \ + python-httpretty \ + " -- cgit v1.2.3-54-g00ecf