Skip to content

Commit

Permalink
Make optional dependencies optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandcracker committed May 26, 2024
1 parent 9e091a4 commit 3b81163
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/gucken/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.9"
__version__ = "0.1.10"

0 comments on commit 3b81163

Please sign in to comment.