-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (99 loc) · 3 KB
/
pyproject.toml
File metadata and controls
115 lines (99 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "openlrc"
version = "1.6.2"
description = "Transcribe (whisper) and translate (gpt) voice into LRC file."
authors = [{ name = "Hao Zheng", email = "zhenghaosustc@gmail.com" }]
requires-python = ">=3.10, <3.13"
readme = "README.md"
license = "MIT"
keywords = ["openai-gpt3", "whisper", "voice transcribe", "lrc"]
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"openai>=2.20.0",
"anthropic>=0.90.0",
"tiktoken>=0.8.0,<0.9",
"langcodes>=3.3.0,<4",
"language-data~=1.1",
"tqdm>=4.65.0,<5",
"audioread>=3.0.0,<4",
"zhconv>=1.4.3,<2",
"colorlog>=6.7.0,<7",
"ffmpeg-python>=0.2.0,<0.3",
"lingua-language-detector>=1.3.2,<2",
"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",
"ffmpeg-normalize>=1.27.5,<2",
"google-genai>=1.70.0",
"json_repair==0.25.2",
"onnxruntime>=1.20.0,<1.24; python_version < '3.11'",
"onnxruntime>=1.20.0,<2; python_version >= '3.11'",
"pip>=25.1",
]
[project.optional-dependencies]
# Noise suppression via DeepFilterNet (requires torch).
# Install with: pip install openlrc[full]
# Only needed when using noise_suppress=True in LRCer.run() or Preprocessor.run().
full = [
"torch>=2.6.0",
"torchaudio>=2.0.0",
"deepfilternet>=0.5.6,<0.6",
]
[project.urls]
Homepage = "https://github.com/zh-plus/openlrc"
"Documentation" = "https://zh-plus.github.io/openlrc/#/"
"Changelog" = "https://github.com/zh-plus/openlrc/blob/master/CHANGELOG.md"
"Bug Tracker" = "https://github.com/zh-plus/openlrc/issues"
[project.scripts]
openlrc = "openlrc.cli:main"
[dependency-groups]
dev = ["pyright>=1.1", "ruff>=0.11"]
[tool.uv]
[[tool.uv.index]]
name = "PyPI"
url = "https://pypi.org/simple/"
default = true
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu124", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
torchaudio = [
{ index = "pytorch-cu124", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
ignore = [
"E501", # line too long — handled by formatter
]
[tool.ruff.lint.isort]
known-first-party = ["openlrc"]
split-on-trailing-comma = false
[tool.pyright]
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"]
[tool.hatch.build.targets.wheel]
include = ["openlrc"]
exclude = ["openlrc/gui", "openlrc/gui_streamlit"]