aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-tox_1.9.2.bb
blob: 2ba4b0e56e52a8a2bfbd455966a74920ee405608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
DESCRIPTION = "virtualenv-based automation of test activities"
HOMEPAGE = "http://tox.testrun.org"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2d0fc2c2c954dc4d41043e67d4a8d8e7"

SRC_URI[md5sum] = "f4db4d6a82d6a651e457ba55ef370258"
SRC_URI[sha256sum] = "3125a15da7381f59f835a25bd259a84acb7a69858c81e386c50027bd842bb91b"

inherit setuptools pypi

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}/*"