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

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Tue Sep 3 19:38:22 PDT 2019


Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 .../recipes-devtools/python/python-fasteners.inc   | 24 ++++++++++++++++++++
 .../python/python-fasteners_git.bb                 | 26 +---------------------
 .../python/python3-fasteners_git.bb                |  2 ++
 3 files changed, 27 insertions(+), 25 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-fasteners.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-fasteners_git.bb

diff --git a/meta-openstack/recipes-devtools/python/python-fasteners.inc b/meta-openstack/recipes-devtools/python/python-fasteners.inc
new file mode 100644
index 0000000..6e5e5f0
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-fasteners.inc
@@ -0,0 +1,24 @@
+DESCRIPTION = "A python package that provides useful locks."
+HOMEPAGE = "https://github.com/harlowja/fasteners"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4476c4be31402271e101d9a4a3430d52"
+
+SRCNAME = "fasteners"
+
+PV = "0.15+git${SRCPV}"
+SRCREV = "75148cb679c351966cd4ad5e9d177048a0ea8380"
+
+SRC_URI = "git://github.com/harlowja/${SRCNAME}.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS += " \
+        ${PYTHON_PN}-pip \
+        ${PYTHON_PN}-pbr \
+        "
+
+# RDEPENDS_default:
+RDEPENDS_${PN} += " \
+        ${PYTHON_PN}-pbr \
+        "
diff --git a/meta-openstack/recipes-devtools/python/python-fasteners_git.bb b/meta-openstack/recipes-devtools/python/python-fasteners_git.bb
index 2dd3698..3a7326b 100644
--- a/meta-openstack/recipes-devtools/python/python-fasteners_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-fasteners_git.bb
@@ -1,26 +1,2 @@
-DESCRIPTION = "A python package that provides useful locks."
-HOMEPAGE = "https://github.com/harlowja/fasteners"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=4476c4be31402271e101d9a4a3430d52"
-
-SRCNAME = "fasteners"
-
-PV = "0.15+git${SRCPV}"
-SRCREV = "75148cb679c351966cd4ad5e9d177048a0ea8380"
-
-SRC_URI = "git://github.com/harlowja/${SRCNAME}.git"
-
-S = "${WORKDIR}/git"
-
 inherit setuptools
-
-DEPENDS += " \
-        python-pip \
-        python-pbr \
-        "
-
-# RDEPENDS_default:
-RDEPENDS_${PN} += " \
-        python-pbr \
-        "
+require python-fasteners.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-fasteners_git.bb b/meta-openstack/recipes-devtools/python/python3-fasteners_git.bb
new file mode 100644
index 0000000..9b2053c
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-fasteners_git.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-fasteners.inc
-- 
2.7.4





More information about the meta-virtualization mailing list