diff options
| author | Keith Holman <Keith.Holman@windriver.com> | 2014-06-20 13:09:43 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-06-23 12:43:13 -0400 |
| commit | 89e623cce5a8810197602ae4ab0993e33b7a3bf6 (patch) | |
| tree | 9a4e0ca4b80e34fbba35f86d9356b6d582b90f97 /meta-openstack/recipes-devtools | |
| parent | 9fed4c1c159292957702947d4b83d6212094af1a (diff) | |
| download | meta-cloud-services-89e623cce5a8810197602ae4ab0993e33b7a3bf6.tar.gz | |
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 <Keith.Holman@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-httpretty_0.8.0.bb | 26 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb | 6 |
2 files changed, 31 insertions, 1 deletions
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 @@ | |||
| 1 | # | ||
| 2 | # Copyright (C) 2014 Wind River Systems, Inc. | ||
| 3 | # | ||
| 4 | DESCRIPTION = "HTTP client mock for Python" | ||
| 5 | HOMEPAGE = "https://pypi.python.org/pypi/httpretty" | ||
| 6 | SECTION = "devel/python" | ||
| 7 | LICENSE = "MIT" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=fac859f0c7aee8d7f10b1aa5b130d1a7" | ||
| 9 | |||
| 10 | PR = "r0" | ||
| 11 | SRCNAME = "httpretty" | ||
| 12 | |||
| 13 | SRC_URI = "https://pypi.python.org/packages/source/h/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI[md5sum] = "2d5ea5205c358fa489e6de6fc74c00fa" | ||
| 17 | SRC_URI[sha256sum] = "e5512b38ad3bfb9f7d275c957b4a7eddc69e4b3a749e3b62a984c86fb6ab329b" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
| 20 | |||
| 21 | inherit setuptools | ||
| 22 | |||
| 23 | DEPENDS += " \ | ||
| 24 | python-pip \ | ||
| 25 | " | ||
| 26 | |||
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 += " \ | |||
| 26 | python-pbr \ | 26 | python-pbr \ |
| 27 | " | 27 | " |
| 28 | 28 | ||
| 29 | RDEPENDS_${PN} += "python-iso8601 \ | 29 | RDEPENDS_${PN} += " \ |
| 30 | python-iso8601 \ | ||
| 30 | python-prettytable \ | 31 | python-prettytable \ |
| 31 | python-requests \ | 32 | python-requests \ |
| 32 | python-simplejson \ | 33 | python-simplejson \ |
| @@ -49,4 +50,7 @@ FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" | |||
| 49 | 50 | ||
| 50 | FILES_${SRCNAME}-tests = "${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/examples \ | 51 | FILES_${SRCNAME}-tests = "${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/examples \ |
| 51 | " | 52 | " |
| 53 | RDEPENDS_${SRCNAME}-tests += " \ | ||
| 54 | python-httpretty \ | ||
| 55 | " | ||
| 52 | 56 | ||
