pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/py-paho-mqtt
Module Name: pkgsrc
Committed By: gdt
Date: Wed Jun 19 14:03:04 UTC 2024
Modified Files:
pkgsrc/net/py-paho-mqtt: Makefile PLIST distinfo
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.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/py-paho-mqtt/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/py-paho-mqtt/PLIST
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/py-paho-mqtt/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/py-paho-mqtt/Makefile
diff -u pkgsrc/net/py-paho-mqtt/Makefile:1.13 pkgsrc/net/py-paho-mqtt/Makefile:1.14
--- pkgsrc/net/py-paho-mqtt/Makefile:1.13 Tue Feb 13 19:38:38 2024
+++ pkgsrc/net/py-paho-mqtt/Makefile Wed Jun 19 14:03:04 2024
@@ -1,25 +1,28 @@
-# $NetBSD: Makefile,v 1.13 2024/02/13 19:38:38 gdt Exp $
+# $NetBSD: Makefile,v 1.14 2024/06/19 14:03:04 gdt Exp $
-# Update to 2.0.0 is on hold, until after 2024Q1. It has an API break
-# requiring modification of all users, and those users are just now
-# coping with making those changes (e.g. weewx extensions).
-DISTNAME= paho-mqtt-1.6.1
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+VERSION= 2.1.0
+# Bad distfile name reported upstream via email on 20240619.
+DISTNAME= paho_mqtt-${VERSION}
+PKGNAME= ${PYPKGPREFIX}-paho-mqtt-${VERSION}
PKGREVISION= 1
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/paho-mqtt/}
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
MAINTAINER= gdt%NetBSD.org@localhost
HOMEPAGE= https://www.eclipse.org/paho/
COMMENT= MQTT version 3.1.1 client class
LICENSE= epl-v1.0
-# tests are not included
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.5:../../devel/py-hatchling
+
+# \todo Add support for running tests.
#TOOL_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
#TEST_DEPENDS+= ${PYPKGPREFIX}-lama>=7.6.6:../../devel/py-lama
#TEST_DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
USE_LANGUAGES= # none
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/py-paho-mqtt/PLIST
diff -u pkgsrc/net/py-paho-mqtt/PLIST:1.3 pkgsrc/net/py-paho-mqtt/PLIST:1.4
--- pkgsrc/net/py-paho-mqtt/PLIST:1.3 Thu Mar 12 16:10:14 2020
+++ pkgsrc/net/py-paho-mqtt/PLIST Wed Jun 19 14:03:04 2024
@@ -1,10 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2020/03/12 16:10:14 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.4 2024/06/19 14:03:04 gdt Exp $
${PYSITELIB}/paho/__init__.py
${PYSITELIB}/paho/__init__.pyc
${PYSITELIB}/paho/__init__.pyo
@@ -14,6 +8,9 @@ ${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
@@ -26,6 +23,7 @@ ${PYSITELIB}/paho/mqtt/properties.pyo
${PYSITELIB}/paho/mqtt/publish.py
${PYSITELIB}/paho/mqtt/publish.pyc
${PYSITELIB}/paho/mqtt/publish.pyo
+${PYSITELIB}/paho/mqtt/py.typed
${PYSITELIB}/paho/mqtt/reasoncodes.py
${PYSITELIB}/paho/mqtt/reasoncodes.pyc
${PYSITELIB}/paho/mqtt/reasoncodes.pyo
@@ -35,3 +33,7 @@ ${PYSITELIB}/paho/mqtt/subscribe.pyo
${PYSITELIB}/paho/mqtt/subscribeoptions.py
${PYSITELIB}/paho/mqtt/subscribeoptions.pyc
${PYSITELIB}/paho/mqtt/subscribeoptions.pyo
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.txt
Index: pkgsrc/net/py-paho-mqtt/distinfo
diff -u pkgsrc/net/py-paho-mqtt/distinfo:1.7 pkgsrc/net/py-paho-mqtt/distinfo:1.8
--- pkgsrc/net/py-paho-mqtt/distinfo:1.7 Tue Oct 26 11:06:40 2021
+++ pkgsrc/net/py-paho-mqtt/distinfo Wed Jun 19 14:03:04 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 11:06:40 nia Exp $
+$NetBSD: distinfo,v 1.8 2024/06/19 14:03:04 gdt Exp $
-BLAKE2s (paho-mqtt-1.6.1.tar.gz) = 9132757814cfe21f36fd93ee49a9efe80307a3915dd597b340c587f4f0d7353b
-SHA512 (paho-mqtt-1.6.1.tar.gz) = 74e090eab347f2a629c76aed8116dd9e435f87d8ad7ca4944c1ae48538d34a0a34a83eb672158c5a12452e753838aa55347bf44ec8bfc3d28bd939591a6efbe5
-Size (paho-mqtt-1.6.1.tar.gz) = 99373 bytes
+BLAKE2s (paho_mqtt-2.1.0.tar.gz) = f11ab94011789bef2ffec66dfdf970ebbc864b172253f9f5f269df062c10eaba
+SHA512 (paho_mqtt-2.1.0.tar.gz) = 870ba87660eb4f9bdae65f957c99f46f3af4392bce1e25c95202f5dbed4362059bd01574774d6fbad601f7343cb8da4640325603ea615bfb8216dcff808c7c59
+Size (paho_mqtt-2.1.0.tar.gz) = 148848 bytes
Home |
Main Index |
Thread Index |
Old Index