Skip to content

Commit

Permalink
usbsdmux: mqtthelper: update install instructions for paho-mqtt
Browse files Browse the repository at this point in the history
Starting with commit 41fc814 ("pyproject.toml: switch over the package
build to pyproject.toml") there are no REQUIREMENTS*.txt files anymore,
including REQUIREMENTS.mqtt.txt.
The optional `paho-mqtt` dependency is instead listed in the
`pyproject.toml` and can be selected while `pip install`ing.

Update the error message to reflect that.

Fixes: 41fc814 ("pyproject.toml: switch over the package build to pyproject.toml")
Signed-off-by: Leonard Göhrs <[email protected]>
  • Loading branch information
hnez committed May 29, 2024
1 parent ca45991 commit e0b3d57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions usbsdmux/mqtthelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _gather_data(ctl, sg, mode):
def publish_info(ctl, config, sg, mode):
"""
Publish info to mqtt server, if mqtt is enabled.
This requires installing REQUIREMENTS.mqtt.txt.
This requires installing paho-mqtt.
"""

if not config.mqtt_enabled:
Expand All @@ -146,7 +146,9 @@ def publish_info(ctl, config, sg, mode):
except ImportError:
print(
"Sending data to an mqtt server requires paho-mqtt",
"Please install REQUIREMENTS.mqtt.txt",
"Please install it, e.g. by installing usbsdmux via:",
"",
' python3 -m pip install "usbsdmux[mqtt]"',
sep="\n",
file=sys.stderr,
)
Expand Down

0 comments on commit e0b3d57

Please sign in to comment.