Path to this page:
Subject: CVS commit: pkgsrc/net/py-paho-mqtt
From: Greg Troxel
Date: 2024-06-19 16:03:04
Message id: 20240619140304.4137BFC74@cvs.NetBSD.org
Log Message:
net/py-paho-mqtt: Update to 2.1.0
Tested with all 0 packages in pkgsrc that depend on this package! But
seriously, this has been on hold since 2.0.0 in February because of
the breaking changes, and it's been long enough that maintained
projects will have adapted.
packaging: convert to wheel.mk
Upstream NEWS content:
v2.1.0
Make transition from 1.x to 2.x version smoother (Closes #831)
Add support for Unix socket (Closes #829)
v2.0.0
This release include breaking change. See \
https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html for more \
details on how to upgrade.
This release also introduce new documentation available online at \
https://eclipse.dev/paho/files/paho.mqtt.python/html/index.html
BREAKING Added callback_api_version. This break ALL users of paho-mqtt \
Client class.
See migrations.rst for details on how to upgrade.
tl; dr; add CallbackAPIVersion.VERSION1 to first argument of Client()
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
BREAKING Remove the base62, WebsocketWrapper and ConnectionState, as user \
shouldn't directly use them.
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.
Allow to manually ack QoS > 0 messages. Closes #753 & #348.
Files: