diff options
| author | Nathan Hartman <hnathan918@gmail.com> | 2020-02-13 14:48:14 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-02-27 17:19:52 -0500 |
| commit | 328c1bdf8b17995602a80b5b78c4098b40f74165 (patch) | |
| tree | 0617a30192b390662c9d1210c20adc7cff83d5c8 /meta-openstack/recipes-devtools/python/python-tox.inc | |
| parent | c67f5df7b32932782f4352d58e5de6715af3838e (diff) | |
| download | meta-cloud-services-328c1bdf8b17995602a80b5b78c4098b40f74165.tar.gz | |
tox: Add python3 version
Signed-off-by: Nathan Hartman <nathan.hartman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-tox.inc')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-tox.inc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-tox.inc b/meta-openstack/recipes-devtools/python/python-tox.inc new file mode 100644 index 0000000..66b1355 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-tox.inc | |||
| @@ -0,0 +1,29 @@ | |||
| 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=f24505dfbdd8c22c61de6383f2e74bf9" | ||
| 6 | |||
| 7 | inherit pypi | ||
| 8 | |||
| 9 | DEPENDS += " \ | ||
| 10 | ${PYTHON_PN}-pip \ | ||
| 11 | " | ||
| 12 | |||
| 13 | RDEPENDS_${PN} += " \ | ||
| 14 | ${PYTHON_PN}-virtualenv \ | ||
| 15 | ${PYTHON_PN}-py \ | ||
| 16 | ${PYTHON_PN}-pytest \ | ||
| 17 | " | ||
| 18 | |||
| 19 | do_install_append() { | ||
| 20 | |||
| 21 | install -d ${D}/${sysconfdir}/${SRCNAME} | ||
| 22 | cp ${S}/tox.ini ${D}/${sysconfdir}/${SRCNAME} | ||
| 23 | cp ${S}/setup.py ${D}/${sysconfdir}/${SRCNAME} | ||
| 24 | cp ${S}/README.md ${D}/${sysconfdir}/${SRCNAME} | ||
| 25 | |||
| 26 | ln -s ${PYTHON_SITEPACKAGES_DIR}/tox ${D}/${sysconfdir}/${SRCNAME}/tox | ||
| 27 | } | ||
| 28 | |||
| 29 | FILES_${PN} += "${sysconfdir}/${SRCNAME}/*" | ||
