From 1f1efec338e5229db847536669f036a509c61172 Mon Sep 17 00:00:00 2001 From: Ali Hamdi Ali Fadel Date: Wed, 26 Jun 2024 22:21:10 +0000 Subject: [PATCH] Add extras --- poetry.lock | 7 ++++++- pyproject.toml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index 212453a..a9b47ed 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1965,7 +1965,12 @@ secretstorage = ["cffi", "secretstorage"] static-analysis = ["autopep8 (>=2.0,<3.0)", "ruff (>=0.4.4,<0.5.0)"] test = ["pytest (>=8.1,<9.0)"] +[extras] +all = [] +whisper = ["faster-whisper", "openai-whisper", "stable-ts"] +wit = ["auditok", "pydub", "requests"] + [metadata] lock-version = "2.0" python-versions = ">=3.11, <3.12" -content-hash = "15646545c6bdeb7c67da78fcf273903eff7f989e0a34777f98fc41c65498a5aa" +content-hash = "f9579a55e4bb31ebd5601224a4fff117958a66dda8819a72aa03b2c0af0a7bdc" diff --git a/pyproject.toml b/pyproject.toml index 8a24682..5524813 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,11 @@ faster-whisper = {version = ">=1.0.2", extras = ["whisper"]} openai-whisper = {git = "https://github.com/openai/whisper.git", extras = ["whisper"]} stable-ts = {version = ">=2.17.2", extras = ["whisper"]} +[tool.poetry.extras] +wit = ["auditok", "pydub", "requests"] +whisper = ["faster-whisper", "openai-whisper", "stable-ts"] +all = ["wit", "whisper"] + [tool.poetry.scripts] tafrigh = "src.cli:main"