[meta-virtualization] [PATCH] python-wsme: Add python3 version

Zheng Ruoqin zhengrq.fnst at cn.fujitsu.com
Mon Aug 12 01:10:30 PDT 2019


Providing a python3 version of python-wsme.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com>
---
 .../recipes-devtools/python/python-wsme.inc   | 24 +++++++++++++++++
 .../python/python-wsme_0.9.3.bb               | 26 +------------------
 .../python/python3-wsme_0.9.3.bb              |  2 ++
 3 files changed, 27 insertions(+), 25 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-wsme.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-wsme_0.9.3.bb

diff --git a/meta-openstack/recipes-devtools/python/python-wsme.inc b/meta-openstack/recipes-devtools/python/python-wsme.inc
new file mode 100644
index 0000000..b402a09
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-wsme.inc
@@ -0,0 +1,24 @@
+DESCRIPTION = "Simplify the writing of REST APIs, and extend them with additional protocols"
+HOMEPAGE = "https://pypi.python.org/pypi/WSME/"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5a9126e7f56a0cf3247050de7f10d0f4"
+
+PYPI_PACKAGE = "WSME"
+
+SRC_URI[md5sum] = "e6cb3864bae872acaa0cd0c2efacc94f"
+SRC_URI[sha256sum] = "e24fcff24392a0b176e560ffc6591b1f658342bbc992f84e0e8a3c53fd92580a"
+
+DEPENDS += " \
+        ${PYTHON_PN}-pip \
+        ${PYTHON_PN}-pbr \
+        "
+
+# Satisfy setup.py 'setup_requires'
+DEPENDS += " \
+        ${PYTHON_PN}-pbr-native \
+        "
+
+RDEPENDS_${PN} += "\
+        ${PYTHON_PN}-pbr \
+        "
diff --git a/meta-openstack/recipes-devtools/python/python-wsme_0.9.3.bb b/meta-openstack/recipes-devtools/python/python-wsme_0.9.3.bb
index 4e83299..b332f5f 100644
--- a/meta-openstack/recipes-devtools/python/python-wsme_0.9.3.bb
+++ b/meta-openstack/recipes-devtools/python/python-wsme_0.9.3.bb
@@ -1,26 +1,2 @@
-DESCRIPTION = "Simplify the writing of REST APIs, and extend them with additional protocols"
-HOMEPAGE = "https://pypi.python.org/pypi/WSME/"
-SECTION = "devel/python"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5a9126e7f56a0cf3247050de7f10d0f4"
-
-PYPI_PACKAGE = "WSME"
-
-SRC_URI[md5sum] = "e6cb3864bae872acaa0cd0c2efacc94f"
-SRC_URI[sha256sum] = "e24fcff24392a0b176e560ffc6591b1f658342bbc992f84e0e8a3c53fd92580a"
-
 inherit setuptools pypi
-
-DEPENDS += " \
-        python-pip \
-        python-pbr \
-        "
-
-# Satisfy setup.py 'setup_requires'
-DEPENDS += " \
-        python-pbr-native \
-        "
-
-RDEPENDS_${PN} += "\
-        python-pbr \
-        "
+require python-wsme.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-wsme_0.9.3.bb b/meta-openstack/recipes-devtools/python/python3-wsme_0.9.3.bb
new file mode 100644
index 0000000..f792d0e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-wsme_0.9.3.bb
@@ -0,0 +1,2 @@
+inherit setuptools3 pypi
+require python-wsme.inc
-- 
2.17.1





More information about the meta-virtualization mailing list