mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] python3-paho-mqtt: new package
@ 2023-09-28 17:27 Bruno Thomsen
  2023-09-29 16:59 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bruno Thomsen @ 2023-09-28 17:27 UTC (permalink / raw)
  To: ptxdist; +Cc: bruno.thomsen

The MQTT protocol is a machine-to-machine (M2M)/”Internet of Things”
connectivity protocol.

A MQTT client publish messages to a MQTT broker.

Python package is dual licensed.

Eclipse Distribution License 1.0 is identical to BSD-3-Clause
and SPDX[1] has not created a separate entry for it.

[1] https://github.com/spdx/license-list-XML/issues/1149

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
 rules/python3-paho-mqtt.in   |  9 ++++++
 rules/python3-paho-mqtt.make | 55 ++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 rules/python3-paho-mqtt.in
 create mode 100644 rules/python3-paho-mqtt.make

diff --git a/rules/python3-paho-mqtt.in b/rules/python3-paho-mqtt.in
new file mode 100644
index 000000000000..8f8ece378a2c
--- /dev/null
+++ b/rules/python3-paho-mqtt.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_PAHO_MQTT
+	tristate
+	select PYTHON3
+	prompt "paho-mqtt"
+	help
+	  Eclipse Paho MQTT Python client library, which implements
+	  versions 5.0, 3.1.1, and 3.1 of the MQTT protocol.
diff --git a/rules/python3-paho-mqtt.make b/rules/python3-paho-mqtt.make
new file mode 100644
index 000000000000..2e82b1fbf425
--- /dev/null
+++ b/rules/python3-paho-mqtt.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Bruno Thomsen <bruno.thomsen@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PAHO_MQTT) += python3-paho-mqtt
+
+#
+# Paths and names
+#
+PYTHON3_PAHO_MQTT_VERSION	:= 1.6.1
+PYTHON3_PAHO_MQTT_MD5		:= bdb20f88db291fdb4a0fe804c0f29316
+PYTHON3_PAHO_MQTT		:= paho-mqtt-$(PYTHON3_PAHO_MQTT_VERSION)
+PYTHON3_PAHO_MQTT_SUFFIX	:= tar.gz
+PYTHON3_PAHO_MQTT_URL		:= $(call ptx/mirror-pypi, paho-mqtt, $(PYTHON3_PAHO_MQTT).$(PYTHON3_PAHO_MQTT_SUFFIX))
+PYTHON3_PAHO_MQTT_SOURCE	:= $(SRCDIR)/$(PYTHON3_PAHO_MQTT).$(PYTHON3_PAHO_MQTT_SUFFIX)
+PYTHON3_PAHO_MQTT_DIR		:= $(BUILDDIR)/$(PYTHON3_PAHO_MQTT)
+PYTHON3_PAHO_MQTT_LICENSE	:= EPL-2.0 OR BSD-3-Clause
+PYTHON3_PAHO_MQTT_LICENSE_FILES	:= \
+	file://LICENSE.txt;md5=8e5f264c6988aec56808a3a11e77b913 \
+	file://edl-v10;md5=c09f121939f063aeb5235972be8c722c
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PAHO_MQTT_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-paho-mqtt.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-paho-mqtt)
+	@$(call install_fixup, python3-paho-mqtt,PRIORITY,optional)
+	@$(call install_fixup, python3-paho-mqtt,SECTION,base)
+	@$(call install_fixup, python3-paho-mqtt,AUTHOR,"Bruno Thomsen <bruno.thomsen@gmail.com>")
+	@$(call install_fixup, python3-paho-mqtt,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-paho-mqtt, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_finish, python3-paho-mqtt)
+
+	@$(call touch)
+
+# vim: syntax=make

base-commit: 35503db5dbcacbbf769b6c87fe827df3667c21a0
-- 
2.41.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] python3-paho-mqtt: new package
  2023-09-28 17:27 [ptxdist] [PATCH] python3-paho-mqtt: new package Bruno Thomsen
@ 2023-09-29 16:59 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2023-09-29 16:59 UTC (permalink / raw)
  To: ptxdist; +Cc: Bruno Thomsen

Thanks, applied as 9219a63350666b5c44425153490a4e0cae985741.

Michael

[sent from post-receive hook]

On Fri, 29 Sep 2023 18:59:37 +0200, Bruno Thomsen <bruno.thomsen@gmail.com> wrote:
> The MQTT protocol is a machine-to-machine (M2M)/”Internet of Things”
> connectivity protocol.
> 
> A MQTT client publish messages to a MQTT broker.
> 
> Python package is dual licensed.
> 
> Eclipse Distribution License 1.0 is identical to BSD-3-Clause
> and SPDX[1] has not created a separate entry for it.
> 
> [1] https://github.com/spdx/license-list-XML/issues/1149
> 
> Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
> Message-Id: <20230928172746.4364-1-bruno.thomsen@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-paho-mqtt.in b/rules/python3-paho-mqtt.in
> new file mode 100644
> index 000000000000..8f8ece378a2c
> --- /dev/null
> +++ b/rules/python3-paho-mqtt.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_PAHO_MQTT
> +	tristate
> +	select PYTHON3
> +	prompt "paho-mqtt"
> +	help
> +	  Eclipse Paho MQTT Python client library, which implements
> +	  versions 5.0, 3.1.1, and 3.1 of the MQTT protocol.
> diff --git a/rules/python3-paho-mqtt.make b/rules/python3-paho-mqtt.make
> new file mode 100644
> index 000000000000..2e82b1fbf425
> --- /dev/null
> +++ b/rules/python3-paho-mqtt.make
> @@ -0,0 +1,55 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Bruno Thomsen <bruno.thomsen@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PAHO_MQTT) += python3-paho-mqtt
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PAHO_MQTT_VERSION	:= 1.6.1
> +PYTHON3_PAHO_MQTT_MD5		:= bdb20f88db291fdb4a0fe804c0f29316
> +PYTHON3_PAHO_MQTT		:= paho-mqtt-$(PYTHON3_PAHO_MQTT_VERSION)
> +PYTHON3_PAHO_MQTT_SUFFIX	:= tar.gz
> +PYTHON3_PAHO_MQTT_URL		:= $(call ptx/mirror-pypi, paho-mqtt, $(PYTHON3_PAHO_MQTT).$(PYTHON3_PAHO_MQTT_SUFFIX))
> +PYTHON3_PAHO_MQTT_SOURCE	:= $(SRCDIR)/$(PYTHON3_PAHO_MQTT).$(PYTHON3_PAHO_MQTT_SUFFIX)
> +PYTHON3_PAHO_MQTT_DIR		:= $(BUILDDIR)/$(PYTHON3_PAHO_MQTT)
> +PYTHON3_PAHO_MQTT_LICENSE	:= EPL-2.0 OR BSD-3-Clause
> +PYTHON3_PAHO_MQTT_LICENSE_FILES	:= \
> +	file://LICENSE.txt;md5=8e5f264c6988aec56808a3a11e77b913 \
> +	file://edl-v10;md5=c09f121939f063aeb5235972be8c722c
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PAHO_MQTT_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-paho-mqtt.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-paho-mqtt)
> +	@$(call install_fixup, python3-paho-mqtt,PRIORITY,optional)
> +	@$(call install_fixup, python3-paho-mqtt,SECTION,base)
> +	@$(call install_fixup, python3-paho-mqtt,AUTHOR,"Bruno Thomsen <bruno.thomsen@gmail.com>")
> +	@$(call install_fixup, python3-paho-mqtt,DESCRIPTION,missing)
> +
> +	@$(call install_glob, python3-paho-mqtt, 0, 0, -, \
> +		$(PYTHON3_SITEPACKAGES),, *.py)
> +
> +	@$(call install_finish, python3-paho-mqtt)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-29 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 17:27 [ptxdist] [PATCH] python3-paho-mqtt: new package Bruno Thomsen
2023-09-29 16:59 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox