Skip to content

Commit 77fb879

Browse files
authored
setup: we are not compatible with paho-mqtt >= 2.0 (#8)
Yesterday they [made a stable v2.0.0 release](https://github.com/eclipse/paho.mqtt.python/releases/tag/v2.0.0) with multiple breaking changes, and that just broke my fresh `venv`. I'd prefer to defer the decision on whether to port to paho-mqtt v2.0 or not to the original maintainer, so let's add a pin in the meanwhile. Also, the setup.py's install_requires vs. requirements.txt difference looks a bit silly to me, but I unfortunately recognize that [this is the recommended practice](https://stackoverflow.com/questions/14399534/reference-requirements-txt-for-the-install-requires-kwarg-in-setuptools-setup-py) by Python's own packagings docs.
1 parent 498e1c1 commit 77fb879

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ aiohttp >= 3.8
22
protobuf >= 4.22
33
click >= 8.1
44
cryptography >= 40.0
5-
paho-mqtt >= 1.6
5+
paho-mqtt >= 1.6, < 2

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
install_requires=[
2121
'click',
2222
'aiohttp',
23-
'paho-mqtt',
23+
'paho-mqtt<2',
2424
'cryptography',
2525
'protobuf'
2626
],

0 commit comments

Comments
 (0)