Skip to contentSkip to conversation

python-paho-mqtt: make recipe available as python3 version

PATCH New Pascal Bach 1 participant 1 message Apr 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-paho-mqtt: make recipe available as python3 version

---
 meta-python/recipes-devtools/python/python-paho-mqtt.inc | 14 ++++++++++++++
 .../recipes-devtools/python/python-paho-mqtt_1.2.bb      | 16 ++--------------
 .../recipes-devtools/python/python3-paho-mqtt_1.2.bb     |  3 +++
 3 files changed, 19 insertions(+), 14 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-paho-mqtt.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-paho-mqtt_1.2.bb
meta-python/recipes-devtools/python/python-paho-mqtt.inc new file +14 -0
new file mode 100644
index 0000000..7ff3fb2
@@ -0,0 +1,14 @@
+SUMMARY = "MQTT version 3.1/3.1.1 client library"
+LICENSE = "EPL-1.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=eb48c6ee2cb9f5b8b9fe75e6f817bdfc"
+SRCNAME = "paho-mqtt"
+
+inherit pypi
+SRC_URI[md5sum] = "241150b3fcb920ddca4d33181f3238b1"
+SRC_URI[sha256sum] = "9100a6aa706ab699d414ec02705a21eb66f436184691d0bf1f2a85a6213c6c1f"
+
+RDEPENDS_${PN} = "\
+               ${PYTHON_PN}-math \
+               ${PYTHON_PN}-io \
+               ${PYTHON_PN}-threading \
+"
meta-python/recipes-devtools/python/python-paho-mqtt_1.2.bb +2 -14
index c8acfc5..f369b2e 100644
@@ -1,15 +1,3 @@
-SUMMARY = "MQTT version 3.1/3.1.1 client library"
-LICENSE = "EPL-1.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=eb48c6ee2cb9f5b8b9fe75e6f817bdfc"
-SRCNAME = "paho-mqtt"
+inherit setuptools
+require python-paho-mqtt.inc
 
-inherit pypi setuptools
-
-RDEPENDS_${PN} = "\
-               python-math \
-               python-io \
-               python-threading \
-"
-
-SRC_URI[md5sum] = "241150b3fcb920ddca4d33181f3238b1"
-SRC_URI[sha256sum] = "9100a6aa706ab699d414ec02705a21eb66f436184691d0bf1f2a85a6213c6c1f"
meta-python/recipes-devtools/python/python3-paho-mqtt_1.2.bb new file +3 -0
new file mode 100644
index 0000000..4981e61
@@ -0,0 +1,3 @@
+inherit setuptools3
+require python-paho-mqtt.inc
+
Signature · 1 line
2.1.4