From d236deb1393c93aa4a7bdd0ddc76e09fab6575b1 Mon Sep 17 00:00:00 2001 From: Abdul Basit Rana Date: Wed, 28 Jan 2026 21:30:19 +0500 Subject: [PATCH] Refactor dependencies in pyproject.toml and ease uv tool installation process --- pyproject.toml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 992bb74..0ead81e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,25 @@ description = "Linacodec is a highly compressive and rapid audio tokenizer for a readme = "README.md" requires-python = ">=3.10" dependencies = [ - "huggingface_hub", + "cn2an", + "huggingface-hub", + "inflect", + "jieba", + "lhotse", + "librosa", + "linacodec", + "numpy", + "onnxruntime", + "piper-phonemize", + "pydub", + "pypinyin", + "safetensors", + "setuptools<81", + "tensorboard", + "torch", + "torchaudio", + "transformers<=4.57.6", + "vocos", ] [project.optional-dependencies] @@ -19,3 +37,12 @@ build-backend = "uv_build" [tool.ruff] line-length = 120 + +[tool.uv] +find-links = ["https://k2-fsa.github.io/icefall/piper_phonemize.html"] + +[tool.uv.sources] +linacodec = { git = "https://github.com/ysharma3501/LinaCodec.git" } + +[tool.uv.build-backend] +module-root = "" # The root module of the project