Signed-off-by: Zang Ruochen <[email protected]>
---
 .../recipes-devtools/python/python-pecan.inc           | 16 ++++++++++++++++
 .../recipes-devtools/python/python-pecan_1.3.3.bb      | 18 ++----------------
 .../recipes-devtools/python/python3-pecan_1.3.3.bb     |  2 ++
 3 files changed, 20 insertions(+), 16 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-pecan.inc
 create mode 100644 
meta-openstack/recipes-devtools/python/python3-pecan_1.3.3.bb

diff --git a/meta-openstack/recipes-devtools/python/python-pecan.inc 
b/meta-openstack/recipes-devtools/python/python-pecan.inc
new file mode 100644
index 0000000..884ce75
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-pecan.inc
@@ -0,0 +1,16 @@
+DESCRIPTION = "WSGI object-dispatching web framework"
+HOMEPAGE = "https://pypi.python.org/pypi/pecan/";
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d846877d24bbb3d7a00a985c90378e8c"
+
+SRC_URI[md5sum] = "8f006ed860f7fbdf0c0bf5ad0cf2f3b4"
+SRC_URI[sha256sum] = 
"b5461add4e3f35a7ee377b3d7f72ff13e93f40f3823b3208ab978b29bde936ff"
+
+inherit pypi
+
+RDEPENDS_${PN} = "${PYTHON_PN}-mako \
+                  ${PYTHON_PN}-webtest \
+                  ${PYTHON_PN}-six \
+                  ${PYTHON_PN}-logutils \
+"
diff --git a/meta-openstack/recipes-devtools/python/python-pecan_1.3.3.bb 
b/meta-openstack/recipes-devtools/python/python-pecan_1.3.3.bb
index 62f29fa..6fa052e 100644
--- a/meta-openstack/recipes-devtools/python/python-pecan_1.3.3.bb
+++ b/meta-openstack/recipes-devtools/python/python-pecan_1.3.3.bb
@@ -1,16 +1,2 @@
-DESCRIPTION = "WSGI object-dispatching web framework"
-HOMEPAGE = "https://pypi.python.org/pypi/pecan/";
-SECTION = "devel/python"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=d846877d24bbb3d7a00a985c90378e8c"
-
-SRC_URI[md5sum] = "8f006ed860f7fbdf0c0bf5ad0cf2f3b4"
-SRC_URI[sha256sum] = 
"b5461add4e3f35a7ee377b3d7f72ff13e93f40f3823b3208ab978b29bde936ff"
-
-inherit setuptools pypi
-
-RDEPENDS_${PN} = "python-mako \
-                  python-webtest \
-                  python-six \
-                  python-logutils \
-"
+inherit setuptools
+require python-pecan.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-pecan_1.3.3.bb 
b/meta-openstack/recipes-devtools/python/python3-pecan_1.3.3.bb
new file mode 100644
index 0000000..2e6a223
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-pecan_1.3.3.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-pecan.inc
-- 
2.7.4



-- 
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Reply via email to