Open gsilvapt opened 1 year ago
@fopina could you give your 2 cents on this, please?
👋 I think when it was initially added to optional it was so that anyone using email only would not require the huge dependency list from slack-sdk
But I suppose eventually that optional was forgotten and code is not prepared to not having slack.
Ideally there would be a class wrapping each "transport" (including the block abstraction), but that was never done.
Also, it would be nice to be able to implement new transports outside of the app and, given that, slack could moved to a separate module so it would rely on these optionals.
TL;DR; LGTM 😀
Input
The
slack-sdk
dependency is set as an extra, although running the install step in a fresh installation returns errors due to the missing dependency. In my perspective, this should suffice to move this dependency to required, instead of extras, because this will require users to install the dependency to simply run the test suite.make test
output in a fresh environment, after runningpython setup.py install
:https://github.com/surface-security/django-notification-sender/blob/2f558a31af7abbffe9b4fcf2a46342ecc5408a38/setup.cfg#L35-L36
Output
Move the slack dependency definition to the
install_requires
block.