add chardet to optional dependencies

This commit is contained in:
Anna “CyberTailor” - cyber+misc at sysrq.in 2023-03-27 21:52:36 +05:00 committed by Lionel Dricot
parent dc38a3f9bc
commit 453f8af9f9
3 changed files with 3 additions and 0 deletions

View File

@ -3468,6 +3468,7 @@ Marks are temporary until shutdown (not saved to disk)."""
output += " - Render HTML (bs4, readability) : " + has(_DO_HTML)
output += " - Render Atom/RSS feeds (feedparser) : " + has(_DO_FEED)
output += " - Connect to http/https (requests) : " + has(_DO_HTTP)
output += " - Detect text encoding (python-chardet) : " + has(_HAS_CHARDET)
output += " - copy to/from clipboard (xsel) : " + has(_HAS_XSEL)
output += " - restore last position (less 572+) : " + has(_LESS_RESTORE_POSITION)
output += "\n"

View File

@ -30,6 +30,7 @@ file = "LICENSE"
[project.optional-dependencies]
better-tofu = ["cryptography"]
chardet = ["chardet"]
html = ["bs4", "readability-lxml"]
http = ["requests"]
process-title = ["setproctitle"]

View File

@ -1,3 +1,4 @@
chardet
cryptography
requests
feedparser