From f836d97e0e2024e4f1c8a22f6c92f3309fbf6fc8 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 9 Apr 2014 11:03:04 -0400 Subject: 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 --- .../recipes-devtools/python/python-py_1.4.20.bb | 25 ++++++++++++++ .../recipes-devtools/python/python-pytest_2.5.2.bb | 24 +++++++++++++ .../recipes-devtools/python/python-tox_1.7.1.bb | 39 ++++++++++++++++++++++ .../python/python-virtualenv_1.11.4.bb | 25 ++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-py_1.4.20.bb create mode 100644 meta-openstack/recipes-devtools/python/python-pytest_2.5.2.bb create mode 100644 meta-openstack/recipes-devtools/python/python-tox_1.7.1.bb create mode 100644 meta-openstack/recipes-devtools/python/python-virtualenv_1.11.4.bb diff --git a/meta-openstack/recipes-devtools/python/python-py_1.4.20.bb b/meta-openstack/recipes-devtools/python/python-py_1.4.20.bb new file mode 100644 index 0000000..0040cd7 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-py_1.4.20.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "library with cross-python path, ini-parsing, io, code, log facilities" +HOMEPAGE = " http://pylib.org" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9" + +PR = "r0" + +SRCNAME = "py" +SRC_URI = "http://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "5f1708be5482f3ff6711dfd6cafd45e0" +SRC_URI[sha256sum] = "23c99d99ebb2a60eb7023b7577bfc988acb0092082257a57189f100ce84b72f1" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS += " \ + python-pip \ + " + +RDEPENDS_${PN} += " \ + python-virtualenv \ + " diff --git a/meta-openstack/recipes-devtools/python/python-pytest_2.5.2.bb b/meta-openstack/recipes-devtools/python/python-pytest_2.5.2.bb new file mode 100644 index 0000000..5ea4a10 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-pytest_2.5.2.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "pytest: simple powerful testing with Python" +HOMEPAGE = " http://pytest.org" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9" + +PR = "r0" + +SRCNAME = "pytest" +SRC_URI = "http://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "8ea3d1939e81514ccba9ba0e9566b5be" +SRC_URI[sha256sum] = "962452611799878616d6df5e7674cc2c356f902ed005dc4dae9d4e79bb8abda4" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS += " \ + python-pip \ + " + +RDEPENDS_${PN} += " \ + " 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 @@ +DESCRIPTION = "virtualenv-based automation of test activities" +HOMEPAGE = "http://tox.testrun.org" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2d0fc2c2c954dc4d41043e67d4a8d8e7" + +PR = "r0" + +SRCNAME = "tox" +SRC_URI = "http://pypi.python.org/packages/source/t/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "ec85bbfc7bd29600e91aa0e9754645d0" +SRC_URI[sha256sum] = "869cb9e07847a9f0238f5a5029f3621504a5a3ec05af6d878e879b354c6851c4" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS += " \ + python-pip \ + " + +RDEPENDS_${PN} += " \ + python-virtualenv \ + python-py \ + python-pytest \ + " + +do_install_append() { + + install -d ${D}/${sysconfdir}/${SRCNAME} + cp ${S}/tox.ini ${D}/${sysconfdir}/${SRCNAME} + cp ${S}/setup.py ${D}/${sysconfdir}/${SRCNAME} + cp ${S}/README.rst ${D}/${sysconfdir}/${SRCNAME} + + ln -s ${PYTHON_SITEPACKAGES_DIR}/tox ${D}/${sysconfdir}/${SRCNAME}/tox +} + +FILES_${PN} += "${sysconfdir}/${SRCNAME}/*" diff --git a/meta-openstack/recipes-devtools/python/python-virtualenv_1.11.4.bb b/meta-openstack/recipes-devtools/python/python-virtualenv_1.11.4.bb new file mode 100644 index 0000000..c2fb657 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-virtualenv_1.11.4.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Virtual Python Environment builder" +HOMEPAGE = "https://pypi.python.org/pypi/virtualenv" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=53df9f8889d6a5fba83f425abe3b1568" + +PR = "r0" + +SRCNAME = "virtualenv" +SRC_URI = "http://pypi.python.org/packages/source/v/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "9accc2d3f0ec1da479ce2c3d1fdff06e" +SRC_URI[sha256sum] = "cf3d958f28eb7470bd04262ef397580a2e57407f2ee2c88e9b2892218eb0465a" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS += " \ + python-pip \ + " + +RDEPENDS_${PN} += " \ + python-dateutil \ + " -- cgit v1.2.3-54-g00ecf