Signed-off-by: Zang Ruochen <[email protected]>
---
 .../python/python-colorama.inc                | 18 ++++++++++++++++++
 .../python/python-colorama_0.4.1.bb           | 19 ++-----------------
 .../python/python3-colorama_0.4.1.bb          |  3 +++
 3 files changed, 23 insertions(+), 17 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-colorama.inc
 create mode 100644 
meta-openstack/recipes-devtools/python/python3-colorama_0.4.1.bb

diff --git a/meta-openstack/recipes-devtools/python/python-colorama.inc 
b/meta-openstack/recipes-devtools/python/python-colorama.inc
new file mode 100644
index 0000000..4b5dc79
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-colorama.inc
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2014 Wind River Systems, Inc.
+#
+DESCRIPTION = "Simple cross-platform colored terminal text in Python"
+HOMEPAGE = "http://pypi.python.org/pypi/colorama";
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26"
+
+SRC_URI[md5sum] = "f927529cd1735f6f50ee2c61628e9c1f"
+SRC_URI[sha256sum] = 
"05eed71e2e327246ad6b38c540c4a3117230b19679b875190486ddd2d721422d"
+
+inherit pypi
+
+DEPENDS += " \
+        ${PYTHON_PN}-pip \
+        "
+
diff --git a/meta-openstack/recipes-devtools/python/python-colorama_0.4.1.bb 
b/meta-openstack/recipes-devtools/python/python-colorama_0.4.1.bb
index 7df4e97..097193f 100644
--- a/meta-openstack/recipes-devtools/python/python-colorama_0.4.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-colorama_0.4.1.bb
@@ -1,18 +1,3 @@
-#
-# Copyright (C) 2014 Wind River Systems, Inc.
-#
-DESCRIPTION = "Simple cross-platform colored terminal text in Python"
-HOMEPAGE = "http://pypi.python.org/pypi/colorama";
-SECTION = "devel/python"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26"
-
-SRC_URI[md5sum] = "f927529cd1735f6f50ee2c61628e9c1f"
-SRC_URI[sha256sum] = 
"05eed71e2e327246ad6b38c540c4a3117230b19679b875190486ddd2d721422d"
-
-inherit setuptools pypi
-
-DEPENDS += " \
-        python-pip \
-        "
+require python-colorama.inc
+inherit setuptools
 
diff --git a/meta-openstack/recipes-devtools/python/python3-colorama_0.4.1.bb 
b/meta-openstack/recipes-devtools/python/python3-colorama_0.4.1.bb
new file mode 100644
index 0000000..89c2fea
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-colorama_0.4.1.bb
@@ -0,0 +1,3 @@
+require python-colorama.inc
+inherit setuptools3
+
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4777): 
https://lists.yoctoproject.org/g/meta-virtualization/message/4777
Mute This Topic: https://lists.yoctoproject.org/mt/64313254/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to