From 496ebc758aceb2a6b24138c9d33c5771ba19444b Mon Sep 17 00:00:00 2001 From: maleicacid Date: Mon, 30 Mar 2026 14:16:20 +0800 Subject: [PATCH] chore: clean up pyproject.toml --- pyproject.toml | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 269e930..93fc4fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,12 +10,7 @@ authors = [{ name = "Hao Zheng", email = "zhenghaosustc@gmail.com" }] requires-python = ">=3.9, <3.13" readme = "README.md" license = "MIT" -keywords = [ - "openai-gpt3", - "whisper", - "voice transcribe", - "lrc", -] +keywords = ["openai-gpt3", "whisper", "voice transcribe", "lrc"] classifiers = [ "Programming Language :: Python :: 3", "Intended Audience :: Developers", @@ -32,30 +27,24 @@ dependencies = [ "tqdm>=4.65.0,<5", "audioread>=3.0.0,<4", "zhconv>=1.4.3,<2", - "punctuators>=0.0.5,<0.0.6", "colorlog>=6.7.0,<7", "ffmpeg-python>=0.2.0,<0.3", "lingua-language-detector>=1.3.2,<2", - "pandas>=2.0.2,<3", "filetype>=1.2.0,<2", "jaconvV2>=0.4,<0.5", "spacy>=3.8.5,<4", "pysbd>=0.3.4,<0.4", "faster-whisper>=1.1.1,<2", - "soundfile>=0.12.1,<0.13", "ffmpeg-normalize>=1.27.5,<2", "deepfilternet>=0.5.6,<0.6", - "aiohttp>=3.9.4,<4", - "ctranslate2>=4.5.0,<5", "google-genai==1.11.0", "json_repair==0.25.2", - "matplotlib>=3.9.2,<4", - "typing-extensions>=4.12.2,<5", "onnxruntime>=1.20.0,<1.24; python_version < '3.11'", "onnxruntime>=1.20.0,<2; python_version >= '3.11'", "torch>=2.6.0", "torchvision>=0.21.0", "torchaudio>=2.0.0", + "pip>=25.1", ] [project.urls] @@ -68,10 +57,7 @@ Homepage = "https://github.com/zh-plus/openlrc" openlrc = "openlrc.cli:main" [dependency-groups] -dev = [ - "pyright>=1.1", - "ruff>=0.11", -] +dev = ["pyright>=1.1", "ruff>=0.11"] [tool.uv] @@ -106,7 +92,7 @@ skip-magic-trailing-comma = true [tool.ruff.lint] select = ["E", "F", "I", "UP"] ignore = [ - "E501", # line too long — handled by formatter + "E501", # line too long — handled by formatter ] [tool.ruff.lint.isort] @@ -118,21 +104,9 @@ pythonVersion = "3.10" exclude = ["openlrc/gui_streamlit"] [tool.hatch.build.targets.sdist] -include = [ - "openlrc", - "README.md", - "CHANGELOG.md", - "LICENSE", - "pyproject.toml", -] -exclude = [ - "openlrc/gui", - "openlrc/gui_streamlit", -] +include = ["openlrc", "README.md", "CHANGELOG.md", "LICENSE", "pyproject.toml"] +exclude = ["openlrc/gui", "openlrc/gui_streamlit"] [tool.hatch.build.targets.wheel] include = ["openlrc"] -exclude = [ - "openlrc/gui", - "openlrc/gui_streamlit", -] +exclude = ["openlrc/gui", "openlrc/gui_streamlit"]