summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2014-04-09 11:03:04 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-09 12:07:08 -0400
commitf836d97e0e2024e4f1c8a22f6c92f3309fbf6fc8 (patch)
tree0391ce454ab20a3ee74aa41733712282d7f565cc /meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb
parent6d229bc5925fbe3c0e3ecb16baf3be57782a7f47 (diff)
downloadmeta-cloud-services-f836d97e0e2024e4f1c8a22f6c92f3309fbf6fc8.tar.gz
tox: introduce the tox framework and dependencies
To enabled OpenStack unit testing: https://wiki.openstack.org/wiki/Testing#Unit_Testing_with_Tox We introduce tox and its depedencies. Adding it to the tempest RDEPENDS ensures that it is installed along with the rest of the test frameworks. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb b/meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb
new file mode 100644
index 0000000..7010fa7
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb
@@ -0,0 +1,39 @@
1DESCRIPTION = "virtualenv-based automation of test activities"
2HOMEPAGE = "http://tox.testrun.org"
3SECTION = "devel/python"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=2d0fc2c2c954dc4d41043e67d4a8d8e7"
6
7PR = "r0"
8
9SRCNAME = "tox"
10SRC_URI = "http://pypi.python.org/packages/source/t/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
11
12SRC_URI[md5sum] = "ec85bbfc7bd29600e91aa0e9754645d0"
13SRC_URI[sha256sum] = "869cb9e07847a9f0238f5a5029f3621504a5a3ec05af6d878e879b354c6851c4"
14
15S = "${WORKDIR}/${SRCNAME}-${PV}"
16
17inherit setuptools
18
19DEPENDS += " \
20 python-pip \
21 "
22
23RDEPENDS_${PN} += " \
24 python-virtualenv \
25 python-py \
26 python-pytest \
27 "
28
29do_install_append() {
30
31 install -d ${D}/${sysconfdir}/${SRCNAME}
32 cp ${S}/tox.ini ${D}/${sysconfdir}/${SRCNAME}
33 cp ${S}/setup.py ${D}/${sysconfdir}/${SRCNAME}
34 cp ${S}/README.rst ${D}/${sysconfdir}/${SRCNAME}
35
36 ln -s ${PYTHON_SITEPACKAGES_DIR}/tox ${D}/${sysconfdir}/${SRCNAME}/tox
37}
38
39FILES_${PN} += "${sysconfdir}/${SRCNAME}/*"