[meta-virtualization] [PATCH] python-osc-lib: Add python3 version

Zheng Ruoqin zhengrq.fnst at cn.fujitsu.com
Thu Aug 8 03:53:08 PDT 2019


Providing a python3 version of python-osc-lib.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com>
---
 .../python/python-osc-lib.inc                 | 23 +++++++++++++++++
 .../python/python-osc-lib_1.13.0.bb           | 25 +------------------
 .../python/python3-osc-lib_1.13.0.bb          |  8 ++++++
 3 files changed, 32 insertions(+), 24 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-osc-lib.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-osc-lib_1.13.0.bb

diff --git a/meta-openstack/recipes-devtools/python/python-osc-lib.inc b/meta-openstack/recipes-devtools/python/python-osc-lib.inc
new file mode 100644
index 0000000..58e994c
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-osc-lib.inc
@@ -0,0 +1,23 @@
+DESCRIPTION = "OpenStackClient Library"
+HOMEPAGE = "http://opensource.perlig.de/rcssmin/"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+SRC_URI[md5sum] = "5e91028524b50a72f9913ccd2994cf77"
+SRC_URI[sha256sum] = "9dcd3b55bd887525a7020a8adbabb661a340fc4a4a707950dc1c6f0b286cce77"
+
+RDEPENDS_${PN} += " \
+        python-pbr \
+        python-six \
+        python-babel \
+        python-cliff \
+        python-keystoneauth1 \
+        python-os-client-config \
+        python-oslo.i18n \
+        python-oslo.utils \
+        python-simplejson \
+        python-stevedore \
+        "
+
+CLEANBROKEN = "1"
diff --git a/meta-openstack/recipes-devtools/python/python-osc-lib_1.13.0.bb b/meta-openstack/recipes-devtools/python/python-osc-lib_1.13.0.bb
index 7540e79..4ea2de2 100644
--- a/meta-openstack/recipes-devtools/python/python-osc-lib_1.13.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-osc-lib_1.13.0.bb
@@ -1,30 +1,7 @@
-DESCRIPTION = "OpenStackClient Library"
-HOMEPAGE = "http://opensource.perlig.de/rcssmin/"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
-
-SRC_URI[md5sum] = "5e91028524b50a72f9913ccd2994cf77"
-SRC_URI[sha256sum] = "9dcd3b55bd887525a7020a8adbabb661a340fc4a4a707950dc1c6f0b286cce77"
-
 inherit setuptools pypi
+require python-osc-lib.inc
 
 # Satisfy setup.py 'setup_requires'
 DEPENDS += " \
         python-pbr-native \
         "
-
-RDEPENDS_${PN} += " \
-        python-pbr \
-        python-six \
-        python-babel \
-        python-cliff \
-        python-keystoneauth1 \
-        python-os-client-config \
-        python-oslo.i18n \
-        python-oslo.utils \
-        python-simplejson \
-        python-stevedore \
-        "
-
-CLEANBROKEN = "1"
diff --git a/meta-openstack/recipes-devtools/python/python3-osc-lib_1.13.0.bb b/meta-openstack/recipes-devtools/python/python3-osc-lib_1.13.0.bb
new file mode 100644
index 0000000..63265d9
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-osc-lib_1.13.0.bb
@@ -0,0 +1,8 @@
+inherit setuptools3 pypi
+require python-osc-lib.inc
+
+# Satisfy setup.py 'setup_requires'
+DEPENDS += " \
+        python3-pbr-native \
+        "
+
-- 
2.17.1





More information about the meta-virtualization mailing list