From 3b81163c52b06f1957bebfcec691b63ecd9893e3 Mon Sep 17 00:00:00 2001 From: Commandcracker Date: Sun, 26 May 2024 17:33:43 +0200 Subject: [PATCH] Make optional dependencies optional --- README.md | 5 +++++ pyproject.toml | 8 +++++--- src/gucken/__init__.py | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2f7cba6..3f3f03b 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,11 @@ Place your custom CSS in `user_config_path("gucken").joinpath("custom.css")` and - [Textual CSS Guide](https://textual.textualize.io/guide/CSS/) - [Textual CSS Reference](https://textual.textualize.io/css_types/) +## Optional dependencies + +- `levenshtein` - Faster fuzzy sort/search. (with: `gucken[levenshtein]`) +- `socks` - SOCKS proxy support. (with: `gucken[socks]`) + ## Todo - [ ] Up-scaling (after download) diff --git a/pyproject.toml b/pyproject.toml index f9ab6f8..70a727f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,11 +14,9 @@ dependencies = [ "packaging>=24.0", "platformdirs>=4.2.2", "toml>=0.10.2", - "fuzzywuzzy>=0.18.0", - "levenshtein>=0.25.1" + "fuzzywuzzy>=0.18.0" #"yt-dlp>=2024.4.9", #"mpv>=1.0.6", - #"httpx[socks]", ] keywords = [ "gucken", @@ -48,6 +46,10 @@ classifiers = [ #"Operating System :: iOS", ] +[project.optional-dependencies] +levenshtein = ["levenshtein>=0.25.1"] +socks = ["httpx[socks]>=0.27.0"] + [project.urls] Repository = "https://github.com/Commandcracker/gucken" diff --git a/src/gucken/__init__.py b/src/gucken/__init__.py index bd8d54b..43b6c34 100644 --- a/src/gucken/__init__.py +++ b/src/gucken/__init__.py @@ -1 +1 @@ -__version__ = "0.1.9" +__version__ = "0.1.10"