FS#74410 - [python-flask-security-too] missing depends on bleach

Attached to Project: Community Packages
Opened by Jelle van der Waa (jelly) - Friday, 08 April 2022, 19:44 GMT
Last edited by Jelle van der Waa (jelly) - Wednesday, 13 September 2023, 19:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No
This task depends upon

Closed by  Jelle van der Waa (jelly)
Wednesday, 13 September 2023, 19:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in git
Comment by Levente Polyak (anthraxx) - Friday, 08 April 2022, 22:36 GMT
Normally these are extras_require of python, which means the library considers them as non elementar hard requirements but optional requirements for certain usage. The best cover would be to declare the extra_requires as optdepends and let using tools require to pull in the dependency to fulfill optional features provided by the library.

pip install -U Flask-Security-Too
Installing collected packages: passlib, blinker, Werkzeug, MarkupSafe, itsdangerous, idna, dnspython, click, WTForms, Jinja2, email-validator, Flask, Flask-WTF, Flask-Principal, Flask-Login, Flask-Security-Too

pip install -U 'Flask-Security-Too[common]'
Installing collected packages: webencodings, six, pycparser, cffi, bleach, flask-mail, bcrypt
Comment by Jelle van der Waa (jelly) - Wednesday, 13 September 2023, 19:13 GMT
bleach is however still not an optdepend.