aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2019-09-09 15:07:30 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-09-09 13:34:54 -0400
commit3a87c591ff5a5b669bfeb73c6d184d1d2e1d6c2d (patch)
treea170278f590fc9111185ada4b13ef7184ed70732
parent656768859b4f429884d6af60a7297335b1729628 (diff)
downloadmeta-cloud-services-3a87c591ff5a5b669bfeb73c6d184d1d2e1d6c2d.tar.gz
meta-cloud-services-3a87c591ff5a5b669bfeb73c6d184d1d2e1d6c2d.tar.bz2
meta-cloud-services-3a87c591ff5a5b669bfeb73c6d184d1d2e1d6c2d.zip
python-testtools: Add python3 version
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--meta-openstack/recipes-devtools/python/python-testtools.inc23
-rw-r--r--meta-openstack/recipes-devtools/python/python-testtools_2.3.0.bb25
-rw-r--r--meta-openstack/recipes-devtools/python/python3-testtools_2.3.0.bb2
3 files changed, 27 insertions, 23 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-testtools.inc b/meta-openstack/recipes-devtools/python/python-testtools.inc
new file mode 100644
index 0000000..7cc63f4
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-testtools.inc
@@ -0,0 +1,23 @@
+DESCRIPTION = "Extensions to the Python standard library unit testing framework"
+HOMEPAGE = "https://pypi.python.org/pypi/testtools/"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e2c9d3e8ba7141c83bfef190e0b9379a"
+
+SRC_URI[md5sum] = "0f0feb915497816cb99e39437494217e"
+SRC_URI[sha256sum] = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559"
+
+inherit pypi
+DEPENDS += " \
+ ${PYTHON_PN}-pbr \
+ "
+
+# Satisfy setup.py 'setup_requires'
+DEPENDS += " \
+ ${PYTHON_PN}-pbr-native \
+ "
+
+RDEPENDS_${PN} += "\
+ ${PYTHON_PN}-extras \
+ ${PYTHON_PN}-pbr \
+ "
diff --git a/meta-openstack/recipes-devtools/python/python-testtools_2.3.0.bb b/meta-openstack/recipes-devtools/python/python-testtools_2.3.0.bb
index bbf1d01..56ff9de 100644
--- a/meta-openstack/recipes-devtools/python/python-testtools_2.3.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-testtools_2.3.0.bb
@@ -1,23 +1,2 @@
-DESCRIPTION = "Extensions to the Python standard library unit testing framework"
-HOMEPAGE = "https://pypi.python.org/pypi/testtools/"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e2c9d3e8ba7141c83bfef190e0b9379a"
-
-SRC_URI[md5sum] = "0f0feb915497816cb99e39437494217e"
-SRC_URI[sha256sum] = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559"
-
-inherit setuptools pypi
-DEPENDS += " \
- python-pbr \
- "
-
-# Satisfy setup.py 'setup_requires'
-DEPENDS += " \
- python-pbr-native \
- "
-
-RDEPENDS_${PN} += "\
- python-extras \
- python-pbr \
- "
+inherit setuptools
+require python-testtools.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-testtools_2.3.0.bb b/meta-openstack/recipes-devtools/python/python3-testtools_2.3.0.bb
new file mode 100644
index 0000000..896ecee
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-testtools_2.3.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-testtools.inc