diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-09 11:03:04 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-09 12:07:08 -0400 |
| commit | f836d97e0e2024e4f1c8a22f6c92f3309fbf6fc8 (patch) | |
| tree | 0391ce454ab20a3ee74aa41733712282d7f565cc /meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb | |
| parent | 6d229bc5925fbe3c0e3ecb16baf3be57782a7f47 (diff) | |
| download | meta-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.bb | 39 |
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 @@ | |||
| 1 | DESCRIPTION = "virtualenv-based automation of test activities" | ||
| 2 | HOMEPAGE = "http://tox.testrun.org" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d0fc2c2c954dc4d41043e67d4a8d8e7" | ||
| 6 | |||
| 7 | PR = "r0" | ||
| 8 | |||
| 9 | SRCNAME = "tox" | ||
| 10 | SRC_URI = "http://pypi.python.org/packages/source/t/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" | ||
| 11 | |||
| 12 | SRC_URI[md5sum] = "ec85bbfc7bd29600e91aa0e9754645d0" | ||
| 13 | SRC_URI[sha256sum] = "869cb9e07847a9f0238f5a5029f3621504a5a3ec05af6d878e879b354c6851c4" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
| 16 | |||
| 17 | inherit setuptools | ||
| 18 | |||
| 19 | DEPENDS += " \ | ||
| 20 | python-pip \ | ||
| 21 | " | ||
| 22 | |||
| 23 | RDEPENDS_${PN} += " \ | ||
| 24 | python-virtualenv \ | ||
| 25 | python-py \ | ||
| 26 | python-pytest \ | ||
| 27 | " | ||
| 28 | |||
| 29 | do_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 | |||
| 39 | FILES_${PN} += "${sysconfdir}/${SRCNAME}/*" | ||
