When running pip install -e . in a clean virtualenv it doesn't work because click is not installed.
The root cause is importing the main app in the setup file:
|
from twcli import APP_VERSION |
This pulls in the entire application, including click. A possible solution is to store that in twcli/version.py and import it from there. Both in setup.py and twcli/__init__.py.
A workaround is to first run pip install -r requirements.txt and then pip install -e .