From 453f8af9f9be734e575681121e64e661ca6e63df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D=20-=20cyber+misc=20at?= =?UTF-8?q?=20sysrq=2Ein?= Date: Mon, 27 Mar 2023 21:52:36 +0500 Subject: [PATCH] add chardet to optional dependencies --- offpunk.py | 1 + pyproject.toml | 1 + requirements.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/offpunk.py b/offpunk.py index 02983e0..ddf452d 100755 --- a/offpunk.py +++ b/offpunk.py @@ -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" diff --git a/pyproject.toml b/pyproject.toml index d0e9403..6f6a8da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ file = "LICENSE" [project.optional-dependencies] better-tofu = ["cryptography"] +chardet = ["chardet"] html = ["bs4", "readability-lxml"] http = ["requests"] process-title = ["setproctitle"] diff --git a/requirements.txt b/requirements.txt index ba8298a..bd32c82 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +chardet cryptography requests feedparser