./net/py-paho-mqtt, MQTT version 3.1.1 client class

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.1.0, Package name: py311-paho-mqtt-2.1.0, Maintainer: gdt

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.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-test-runner]

Master sites:

Filesize: 145.359 KB

Version history: (Expand)


CVS history: (Expand)


   2024-08-10 18:15:58 by Thomas Klausner | Files touched by this commit (2)
Log message:
*: remove commented out dependency
   2024-06-19 17:33:04 by Greg Troxel | Files touched by this commit (1)
Log message:
net/py-paho-mqtt: Reset PKGREVISION

(Thanks adam@ for pointing out.)
   2024-06-19 16:03:04 by Greg Troxel | Files touched by this commit (3)
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.
   2024-02-13 20:38:38 by Greg Troxel | Files touched by this commit (1) | Package updated
Log message:
net/py-paho-mqtt: Note that update to 2.0.0 is on hold

2.0.0 is a breaking change and my assessment is that the
paho-mqtt-using community is not there yet.  To be revisted after
2024Q1, when it will probably be time.
   2024-02-13 20:35:47 by Greg Troxel | Files touched by this commit (1)
Log message:
net/py-paho-mqtt: Revert unintended stray extra .
   2024-02-13 20:34:38 by Greg Troxel | Files touched by this commit (3)
Log message:
net/openvpn-*: PKGREVISION++ (these build something else with openvpn also)
   2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319)
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS