pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-paho-mqtt: Add 2.0.0rc2
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Mon Jan 22 08:51:40 2024 -0500
Changeset: 501e342e891e77fd4b5f786c9b848e7e0767ac71
Modified Files:
Makefile
Added Files:
py-paho-mqtt/COMMIT_MSG
py-paho-mqtt/DESCR
py-paho-mqtt/Makefile
py-paho-mqtt/PLIST
py-paho-mqtt/distinfo
Log Message:
py-paho-mqtt: Add 2.0.0rc2
(This has a lot of breaking changes, but it fixes a lot of serious bugs.)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=501e342e891e77fd4b5f786c9b848e7e0767ac71
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
py-paho-mqtt/COMMIT_MSG | 43 +++++++++++++++++++++++++++++++++++++++++++
py-paho-mqtt/DESCR | 4 ++++
py-paho-mqtt/Makefile | 20 ++++++++++++++++++++
py-paho-mqtt/PLIST | 38 ++++++++++++++++++++++++++++++++++++++
py-paho-mqtt/distinfo | 5 +++++
6 files changed, 111 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 7c20c5f314..a0df6c9570 100644
--- a/Makefile
+++ b/Makefile
@@ -4106,6 +4106,7 @@ SUBDIR+= py-p4
SUBDIR+= py-p_tqdm
SUBDIR+= py-paegan
SUBDIR+= py-pafy
+SUBDIR+= py-paho-mqtt
SUBDIR+= py-paida
SUBDIR+= py-palettable
SUBDIR+= py-pam
diff --git a/py-paho-mqtt/COMMIT_MSG b/py-paho-mqtt/COMMIT_MSG
new file mode 100644
index 0000000000..4d264b04c5
--- /dev/null
+++ b/py-paho-mqtt/COMMIT_MSG
@@ -0,0 +1,43 @@
+net/py-paho-mqtt: Update to 2.0.0
+
+Upstream NEWS less bugfixes
+
+This release include breaking change. See migrations.md for more details on how to upgrade.
+
+ BREAKING Added callback_api_version. This break ALL users of paho-mqtt Client class.
+ See migrations.md for details on how to upgrade.
+ tl; dr; add CallbackAPIVersion.VERSION1 to first argument of Client()
+
+ BREAKING Drop support for Python 2.7, Python 3.5 and Python 3.6
+ Minimum tested version is Python 3.7
+ Python version up to Python 3.12 are tested.
+
+ BREAKING connect_srv changed it signature to take an additional bind_port parameter.
+ This is a breaking change, but in previous version connect_srv was broken anyway.
+ Closes #493.
+
+ BREAKING Remove some deprecated argument and method:
+ max_packets argument in loop(), loop_write() and loop_forever() is removed
+ force argument in loop_stop() is removed
+ method message_retry_set() is removed
+
+ Possible breaking change: Add properties to access most Client attribute. Closes #764.
+ Since this add new properties like logger, if a sub-class defined logger, the two logger
+ will conflict.
+
+ Add version 2 of user-callback which allow to access MQTTv5 reason code & properties that were
+ missing from on_publish callback. Also it's more consistent in parameter order or between
+ MQTTv3 and MQTTv5.
+
+ Add types to Client class, which caused few change which should be compatible.
+ Known risk of breaking changes:
+ Use enum for returned error code (like MQTT_ERR_SUCCESS). It use an IntEnum
+ which should be a drop-in replacement. Excepted if someone is doing "rc is 0" instead of "rc == 0".
+ reason in on_connect callback when using MQTTv5 is now always a ReasonCode object. It used to possibly be
+ an integer with the value 132.
+ MQTTMessage field "dup" and "retain" used to be integer with value 0 and 1. They are now boolean.
+
+ Add support for ALPN protocols on TLS connection. Closes #790 & #648.
+
+ Add on_pre_connect() callback, which is called immediately before a
+ connection attempt is made.
diff --git a/py-paho-mqtt/DESCR b/py-paho-mqtt/DESCR
new file mode 100644
index 0000000000..8e66d8813d
--- /dev/null
+++ b/py-paho-mqtt/DESCR
@@ -0,0 +1,4 @@
+The Paho Python Client provides a client class with support for both
+MQTT v3.1 and v3.1.1 on Python 2.7 or 3.x. It also provides some
+helper functions to make publishing one off messages to an MQTT server
+very straightforward.
diff --git a/py-paho-mqtt/Makefile b/py-paho-mqtt/Makefile
new file mode 100644
index 0000000000..6c0403b9f7
--- /dev/null
+++ b/py-paho-mqtt/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+GITHUB_PROJECT= paho.mqtt.python
+GITHUB_TAG= refs/tags/v2.0.0rc2
+DISTNAME= v2.0.0rc2
+PKGNAME= ${GITHUB_PROJECT}-${DISTNAME:S,^v,,}
+CATEGORIES= # TODO: add primary category
+MASTER_SITES= ${MASTER_SITE_GITHUB:=eclipse/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= gdt%NetBSD.org@localhost
+HOMEPAGE= https://www.eclipse.org/paho/
+COMMENT= MQTT version 3.1.1 client class
+LICENSE= epl-v1.0
+
+WRKSRC= ${WRKDIR}/paho.mqtt.python-2.0.0rc2
+USE_LANGUAGES= # none
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-paho-mqtt/PLIST b/py-paho-mqtt/PLIST
new file mode 100644
index 0000000000..200d2b5dc4
--- /dev/null
+++ b/py-paho-mqtt/PLIST
@@ -0,0 +1,38 @@
+@comment $NetBSD$
+${PYSITELIB}/paho/__init__.py
+${PYSITELIB}/paho/__init__.pyc
+${PYSITELIB}/paho/__init__.pyo
+${PYSITELIB}/paho/mqtt/__init__.py
+${PYSITELIB}/paho/mqtt/__init__.pyc
+${PYSITELIB}/paho/mqtt/__init__.pyo
+${PYSITELIB}/paho/mqtt/client.py
+${PYSITELIB}/paho/mqtt/client.pyc
+${PYSITELIB}/paho/mqtt/client.pyo
+${PYSITELIB}/paho/mqtt/enums.py
+${PYSITELIB}/paho/mqtt/enums.pyc
+${PYSITELIB}/paho/mqtt/enums.pyo
+${PYSITELIB}/paho/mqtt/matcher.py
+${PYSITELIB}/paho/mqtt/matcher.pyc
+${PYSITELIB}/paho/mqtt/matcher.pyo
+${PYSITELIB}/paho/mqtt/packettypes.py
+${PYSITELIB}/paho/mqtt/packettypes.pyc
+${PYSITELIB}/paho/mqtt/packettypes.pyo
+${PYSITELIB}/paho/mqtt/properties.py
+${PYSITELIB}/paho/mqtt/properties.pyc
+${PYSITELIB}/paho/mqtt/properties.pyo
+${PYSITELIB}/paho/mqtt/publish.py
+${PYSITELIB}/paho/mqtt/publish.pyc
+${PYSITELIB}/paho/mqtt/publish.pyo
+${PYSITELIB}/paho/mqtt/reasoncodes.py
+${PYSITELIB}/paho/mqtt/reasoncodes.pyc
+${PYSITELIB}/paho/mqtt/reasoncodes.pyo
+${PYSITELIB}/paho/mqtt/subscribe.py
+${PYSITELIB}/paho/mqtt/subscribe.pyc
+${PYSITELIB}/paho/mqtt/subscribe.pyo
+${PYSITELIB}/paho/mqtt/subscribeoptions.py
+${PYSITELIB}/paho/mqtt/subscribeoptions.pyc
+${PYSITELIB}/paho/mqtt/subscribeoptions.pyo
+${PYSITELIB}/paho_mqtt-${PKGVERSION}.dist-info/METADATA
+${PYSITELIB}/paho_mqtt-${PKGVERSION}.dist-info/RECORD
+${PYSITELIB}/paho_mqtt-${PKGVERSION}.dist-info/WHEEL
+${PYSITELIB}/paho_mqtt-${PKGVERSION}.dist-info/licenses/LICENSE.txt
diff --git a/py-paho-mqtt/distinfo b/py-paho-mqtt/distinfo
new file mode 100644
index 0000000000..e795d78b91
--- /dev/null
+++ b/py-paho-mqtt/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (paho.mqtt.python/v2.0.0rc2.tar.gz) = af2edba95ee5c45cdb864714eff5a96179d4d04589d8ec750b54b4972dba7e56
+SHA512 (paho.mqtt.python/v2.0.0rc2.tar.gz) = 114f75148f0da570b6dc41bb293b17494810388986dd45366cb6f52a0dcef4da2c4dd82c87d212235cb8da1179a4209ee9bb50ff16a577952122faffd73531d7
+Size (paho.mqtt.python/v2.0.0rc2.tar.gz) = 168139 bytes
Home |
Main Index |
Thread Index |
Old Index