aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2019-08-27 11:44:56 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-09-03 17:08:22 -0400
commit07933852c5223e4964d750ea63e836ed4c2a3190 (patch)
tree02b44c16f1eeb45abbba5502490176161fcba91e /meta-openstack
parent3765cf1422f3f0945fc4a8f4bbd84822f899d11c (diff)
downloadmeta-cloud-services-07933852c5223e4964d750ea63e836ed4c2a3190.tar.gz
meta-cloud-services-07933852c5223e4964d750ea63e836ed4c2a3190.tar.bz2
meta-cloud-services-07933852c5223e4964d750ea63e836ed4c2a3190.zip
python-contextlib2: Add python3 version
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/recipes-devtools/python/python-contextlib2.inc16
-rw-r--r--meta-openstack/recipes-devtools/python/python-contextlib2_0.5.5.bb17
-rw-r--r--meta-openstack/recipes-devtools/python/python3-contextlib2_0.5.5.bb3
3 files changed, 20 insertions, 16 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-contextlib2.inc b/meta-openstack/recipes-devtools/python/python-contextlib2.inc
new file mode 100644
index 0000000..0a45008
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-contextlib2.inc
@@ -0,0 +1,16 @@
+DESCRIPTION = "Backports and enhancements for the contextlib module"
+HOMEPAGE = "http://contextlib2.readthedocs.org/"
+SECTION = "devel/python"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=43d1c7827e8fad6454b553caf0e1d734"
+
+SRC_URI[md5sum] = "95fe420941ebc64951cd9d89edc41870"
+SRC_URI[sha256sum] = "509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48"
+
+DEPENDS += " \
+ ${PYTHON_PN}-pip \
+ "
+
+RDEPENDS_${PN} += " \
+ "
+
diff --git a/meta-openstack/recipes-devtools/python/python-contextlib2_0.5.5.bb b/meta-openstack/recipes-devtools/python/python-contextlib2_0.5.5.bb
index af9270e..c6a5c9b 100644
--- a/meta-openstack/recipes-devtools/python/python-contextlib2_0.5.5.bb
+++ b/meta-openstack/recipes-devtools/python/python-contextlib2_0.5.5.bb
@@ -1,18 +1,3 @@
-DESCRIPTION = "Backports and enhancements for the contextlib module"
-HOMEPAGE = "http://contextlib2.readthedocs.org/"
-SECTION = "devel/python"
-LICENSE = "PSF"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=43d1c7827e8fad6454b553caf0e1d734"
-
-SRC_URI[md5sum] = "95fe420941ebc64951cd9d89edc41870"
-SRC_URI[sha256sum] = "509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48"
-
inherit setuptools pypi
-
-DEPENDS += " \
- python-pip \
- "
-
-RDEPENDS_${PN} += " \
- "
+require python-contextlib2.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-contextlib2_0.5.5.bb b/meta-openstack/recipes-devtools/python/python3-contextlib2_0.5.5.bb
new file mode 100644
index 0000000..db5fa53
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-contextlib2_0.5.5.bb
@@ -0,0 +1,3 @@
+inherit setuptools3 pypi
+require python-contextlib2.inc
+