[meta-virtualization] [PATCH] python-positional: Add python3 version
Zang Ruochen
zangrc.fnst at cn.fujitsu.com
Sun Sep 1 20:23:32 PDT 2019
Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
.../recipes-devtools/python/python-positional.inc | 21 ++++++++++++++++++++
.../python/python-positional_1.2.1.bb | 23 ++--------------------
.../python/python3-positional_1.2.1.bb | 2 ++
3 files changed, 25 insertions(+), 21 deletions(-)
create mode 100644 meta-openstack/recipes-devtools/python/python-positional.inc
create mode 100644 meta-openstack/recipes-devtools/python/python3-positional_1.2.1.bb
diff --git a/meta-openstack/recipes-devtools/python/python-positional.inc b/meta-openstack/recipes-devtools/python/python-positional.inc
new file mode 100644
index 0000000..736e691
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-positional.inc
@@ -0,0 +1,21 @@
+DESCRIPTION = "Library to enforce positional or key-word arguments"
+HOMEPAGE = "https://github.com/morganfainberg/positional"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5335066555b14d832335aa4660d6c376"
+
+SRC_URI[md5sum] = "4afcffd8e2ba733fd7a50f137a2ee893"
+SRC_URI[sha256sum] = "cf48ea169f6c39486d5efa0ce7126a97bed979a52af6261cf255a41f9a74453a"
+
+inherit pypi
+
+CLEANBROKEN = "1"
+
+# Satisfy setup.py 'setup_requires'
+DEPENDS += " \
+ ${PYTHON_PN}-pbr-native \
+ "
+
+RDEPENDS_${PN} += " \
+ ${PYTHON_PN}-wrapt \
+"
diff --git a/meta-openstack/recipes-devtools/python/python-positional_1.2.1.bb b/meta-openstack/recipes-devtools/python/python-positional_1.2.1.bb
index 93eb6e1..14f0187 100644
--- a/meta-openstack/recipes-devtools/python/python-positional_1.2.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-positional_1.2.1.bb
@@ -1,21 +1,2 @@
-DESCRIPTION = "Library to enforce positional or key-word arguments"
-HOMEPAGE = "https://github.com/morganfainberg/positional"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5335066555b14d832335aa4660d6c376"
-
-SRC_URI[md5sum] = "4afcffd8e2ba733fd7a50f137a2ee893"
-SRC_URI[sha256sum] = "cf48ea169f6c39486d5efa0ce7126a97bed979a52af6261cf255a41f9a74453a"
-
-inherit setuptools pypi
-
-CLEANBROKEN = "1"
-
-# Satisfy setup.py 'setup_requires'
-DEPENDS += " \
- python-pbr-native \
- "
-
-RDEPENDS_${PN} += " \
- python-wrapt \
-"
+inherit setuptools
+require python-positional.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-positional_1.2.1.bb b/meta-openstack/recipes-devtools/python/python3-positional_1.2.1.bb
new file mode 100644
index 0000000..3081cd2
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-positional_1.2.1.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-positional.inc
--
2.7.4
More information about the meta-virtualization
mailing list