Skip to content

Add paho-mqtt to install dependencies.#447

Closed
gaby wants to merge 1 commit intocaronc:masterfrom
gaby:missing-dependencies
Closed

Add paho-mqtt to install dependencies.#447
gaby wants to merge 1 commit intocaronc:masterfrom
gaby:missing-dependencies

Conversation

@gaby
Copy link

@gaby gaby commented Sep 19, 2021

Description:

With the recent addition of MQTT support in version v0.9.5.1, apprise is missing paho-mqtt from the requirements.txt

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2021

Codecov Report

Merging #447 (7b320ed) into master (1666f39) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #447   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           97        97           
  Lines        12509     12509           
  Branches      2116      2116           
=========================================
  Hits         12509     12509           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1666f39...7b320ed. Read the comment docs.

@caronc
Copy link
Owner

caronc commented Sep 19, 2021

@gaby, I appreciate your pull request, bu i left out the dependency intentionally actually. 🙂

The problem with making it a dependency is that it's a bigger library you need to pull in for only those using MQTT.
It works the same as how XMPP works (see here). Basically not everyone will want to use it, so it's a lot to pull in for nothing. The warning on MQTT should be enough to get people to install the paho-mqtt library for those who want to use it for now.

There is a windows:// plugin too that requires an extra package; similarly, I don't force everyone to install it because not everyone wants to use it.

The good news is that of my unit tests pull in paho-mqtt so i do a proper testing on the (MQTT) module from a dev side of things. 👍 (dev dependencies for some custom plugins)

Down the road, i think the proper solution might be to setup Sub Packages. That way the XMPP sub-package would include it's dependencies just as the MQTT one would. That way you would only have to install what you want.

@gaby
Copy link
Author

gaby commented Sep 19, 2021

@caronc Makes total sense, thanks for the great explanation. I'm going to close this one then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants