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

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Sun Sep 15 19:39:11 PDT 2019


Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 .../recipes-devtools/python/python-amqplib.inc          | 16 ++++++++++++++++
 .../recipes-devtools/python/python-amqplib_1.0.2.bb     | 17 +----------------
 .../recipes-devtools/python/python3-amqplib_1.0.2.bb    |  2 ++
 3 files changed, 19 insertions(+), 16 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-amqplib.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-amqplib_1.0.2.bb

diff --git a/meta-openstack/recipes-devtools/python/python-amqplib.inc b/meta-openstack/recipes-devtools/python/python-amqplib.inc
new file mode 100644
index 0000000..d9f22cb
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-amqplib.inc
@@ -0,0 +1,16 @@
+DESCRIPTION = "Python client for the Advanced Message Queuing Procotol (AMQP)"
+HOMEPAGE = "http://code.google.com/p/py-amqplib/"
+SECTION = "devel/python"
+LICENSE = "LGPL-3.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1702a92c723f09e3fab3583b165a8d90"
+
+PR = "r1"
+SRCNAME = "amqplib"
+
+SRC_URI = "https://github.com/barryp/py-amqplib/archive/${PV}.tar.gz"
+
+SRC_URI[md5sum] = "ff405a7b57aa98cdf07d02bd8090fa29"
+SRC_URI[sha256sum] = "9461d73f75ca704e6b656738b5dad42a1948e61dfbc8233077d84d00f74c3936"
+
+S = "${WORKDIR}/py-amqplib-${PV}"
+
diff --git a/meta-openstack/recipes-devtools/python/python-amqplib_1.0.2.bb b/meta-openstack/recipes-devtools/python/python-amqplib_1.0.2.bb
index 1afc76e..a39284a 100644
--- a/meta-openstack/recipes-devtools/python/python-amqplib_1.0.2.bb
+++ b/meta-openstack/recipes-devtools/python/python-amqplib_1.0.2.bb
@@ -1,17 +1,2 @@
-DESCRIPTION = "Python client for the Advanced Message Queuing Procotol (AMQP)"
-HOMEPAGE = "http://code.google.com/p/py-amqplib/"
-SECTION = "devel/python"
-LICENSE = "LGPL-3.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=1702a92c723f09e3fab3583b165a8d90"
-
-PR = "r1"
-SRCNAME = "amqplib"
-
-SRC_URI = "https://github.com/barryp/py-amqplib/archive/${PV}.tar.gz"
-
-SRC_URI[md5sum] = "ff405a7b57aa98cdf07d02bd8090fa29"
-SRC_URI[sha256sum] = "9461d73f75ca704e6b656738b5dad42a1948e61dfbc8233077d84d00f74c3936"
-
-S = "${WORKDIR}/py-amqplib-${PV}"
-
 inherit setuptools
+require python-amqplib.inc
diff --git a/meta-openstack/recipes-devtools/python/python3-amqplib_1.0.2.bb b/meta-openstack/recipes-devtools/python/python3-amqplib_1.0.2.bb
new file mode 100644
index 0000000..7623d17
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-amqplib_1.0.2.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-amqplib.inc
-- 
2.7.4





More information about the meta-virtualization mailing list