Description
Hello 👋
Description of issue or feature request:
When securesystemslib
is installed without the colors
extra, warnings/error logs are shown.
Current behavior:
On Python3, it complains about the colorama module not being found here
On Python2, it tries to complain for the same thing but is failing with the No handlers could be found for logger "securesystemslib_interface"
.
Expected behavior:
The library should not complain about colorama as it is an optional dependency (and should also initialize the logger correctly on Python2)
How to reproduce:
Python2: docker run -it python:2 bash -c "pip install securesystemslib[crypto,pynacl] && python -c 'import securesystemslib.interface'"
Python3: docker run -it python:3 bash -c "pip install securesystemslib[crypto,pynacl] && python -c 'import securesystemslib.interface'"