Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-paho-mqtt for 
openSUSE:Factory checked in at 2024-03-26 19:26:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-paho-mqtt (Old)
 and      /work/SRC/openSUSE:Factory/.python-paho-mqtt.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-paho-mqtt"

Tue Mar 26 19:26:27 2024 rev:8 rq:1161559 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-paho-mqtt/python-paho-mqtt.changes        
2021-12-09 19:45:55.265142261 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-paho-mqtt.new.1905/python-paho-mqtt.changes  
    2024-03-26 19:30:04.791159077 +0100
@@ -1,0 +2,54 @@
+Fri Mar 22 14:38:52 UTC 2024 - [email protected]
+
+- version update to 2.0.0
+  - **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
+  - **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.
+  - Fix subscribe.simple with MQTTv5. Closes #707.
+  - Use better name for thread started by loop_start. Closes #617.
+  - Fix possible bug during disconnection where self._sock is unexpectedly 
None. Closes #686 & #505.
+  - Fix loading too weak TLS CA file but setting allowed ciphers before 
loading CA. Closes #676.
+  - Allow to manually ack QoS > 0 messages. Closes #753 & #348.
+  - Improve tests & linters. Modernize build (drop setup.py, use 
pyproject.toml)
+  - Fix is_connected property to correctly return False when connection is lost
+    and loop_start/loop_forever isn't used. Closes #525.
+  - Fix wait_for_publish that could hang with QoS == 0 message on reconnection
+    or publish during connection. Closes #549.
+  - Correctly mark connection as broken on SSL error and don't crash 
loop_forever.
+    Closes #750.
+  - Fix handling of MQTT v5.0 PUBREL messages with remaining length not equal 
to
+    2. Closes #696.
+  - Raise error on ``subscribe()`` when `topic` is an empty list. Closes #690.
+  - Raise error on `publish.multiple()` when ``msgs`` is an empty list. Closes 
#684.
+  - Don't add port to Host: header for websockets connections when the port if 
the default port. Closes #666.
+* does not require six
+
+-------------------------------------------------------------------

Old:
----
  paho-mqtt-1.6.1.tar.gz

New:
----
  paho-mqtt-2.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-paho-mqtt.spec ++++++
--- /var/tmp/diff_new_pack.xqKhJN/_old  2024-03-26 19:30:05.207174385 +0100
+++ /var/tmp/diff_new_pack.xqKhJN/_new  2024-03-26 19:30:05.207174385 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-paho-mqtt
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,17 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-paho-mqtt
-Version:        1.6.1
+Version:        2.0.0
 Release:        0
 Summary:        MQTT version 3.11 client class
 License:        EPL-1.0
 Group:          Development/Languages/Python
 URL:            http://eclipse.org/paho
 Source:         
https://github.com/eclipse/paho.mqtt.python/archive/refs/tags/v%{version}.tar.gz#/paho-mqtt-%{version}.tar.gz
+BuildRequires:  %{python_module hatchling}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
@@ -47,20 +46,22 @@
 Paho is an Eclipse Foundation project.
 
 %prep
-%setup -q -n paho.mqtt.python-%{version}
+%autosetup -p1 -n paho.mqtt.python-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
+export PYTHONPATH='.'
 %pytest
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt
-%{python_sitelib}/*
+%{python_sitelib}/paho
+%{python_sitelib}/paho*.dist-info
 

++++++ paho-mqtt-1.6.1.tar.gz -> paho-mqtt-2.0.0.tar.gz ++++++
++++ 22091 lines of diff (skipped)

Reply via email to