Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (162 loc) · 4.98 KB
/
Copy pathpyproject.toml
File metadata and controls
173 lines (162 loc) · 4.98 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[project]
name = "buzz-captions"
# Change also in Makefile and buzz/__version__.py
version = "1.4.6"
description = ""
authors = [{ name = "Chidi Williams", email = "williamschidi1@gmail.com" }]
requires-python = ">=3.13,<3.14"
readme = "README.md"
# License format change to remove warning in PyPI will cause snap not to build
license = { text = "MIT" }
dependencies = [
"sounddevice>=0.5.6,<0.6",
"humanize>=4.16.0,<5",
"PyQt6==6.11.0",
"PyQt6-Qt6==6.11.1",
"PyQt6-sip==13.12.0",
"openai>=1.14.2,<2",
"keyring>=25.7.0,<26",
"platformdirs>=4.11.3,<5",
"dataclasses-json>=0.6.4,<0.7",
"numpy>=2.5.2,<3",
"requests>=2.34.2,<3",
"yt-dlp>=2026.8.19",
"stable-ts>=2.19.1,<3",
"faster-whisper>=1.2.1,<2",
"openai-whisper==20250625",
"transformers>=5.19.0,<6",
"accelerate>=1.14.0,<2",
"peft>=0.20.0,<1",
"bitsandbytes>=0.45.0",
"polib>=1.2.0,<2",
"srt-equalizer>=0.1.10,<0.2",
"ctranslate2>=4.6.2,<5; sys_platform == 'darwin'",
# For Linux/Windows - use CPU versions from pytorch index
"ctranslate2>=4.6.2,<5; sys_platform != 'darwin'",
"torch==2.8.0+cpu; sys_platform != 'darwin'",
"torchaudio==2.8.0+cpu; sys_platform != 'darwin'",
# For ARM Mac - use regular PyPI torch
"torch==2.8.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
"torchaudio==2.8.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
# faster whisper need cudnn 9
"nvidia-cudnn-cu12>=9,<10; sys_platform != 'darwin'",
# CUDA runtime libraries are provided by torch dependencies, no need to specify explicitly
"darkdetect>=0.8.0,<0.9",
"demucs>=4.1.0,<5",
"flake8>=7.1.2,<8",
"mypy>=1.15.0,<2",
"psutil>=7.2.2,<8",
"pyyaml>=6.0.3,<7",
"tqdm>=4.70.0,<5",
"soundfile>=0.13.1,<0.14",
"urllib3>=2.7.0,<3",
"posthog>=7.42.1",
"onnxruntime==1.20.0",
"onnx>=1.20.0", # Required for nemo-toolkit, ensures ml-dtypes is installed
"vulkan>=1.3.275.1,<2",
"hf-xet>=1.6.0,<2",
"hatchling>=1.32.0",
"cmake>=4.4.2,<5",
# nemo-toolkit-asr is NVIDIA's ASR-only split package; 2.8.0rc2 is the first
# release to unpin transformers (allows 5.x). Regular nemo-toolkit caps at
# transformers <4.58. cuda-bindings pinned <13 below to stay on CUDA 12.
"nemo-toolkit-asr[asr]==2.8.0rc2",
# nemo-toolkit-asr leaves cuda-bindings unpinned; keep it on CUDA 12 to match torch cu129
"cuda-bindings>=12.6,<13; sys_platform != 'darwin'",
"nltk>=3.10.3",
"uroman>=1.3.1.1",
"lhotse>=1.33.0",
"coverage==7.15.4",
"certifi>=2026.7.22",
"truststore>=0.10.4",
"torchcodec>=0.16.0",
"datasets>=5.0.1",
]
repository = "https://github.com/chidiwilliams/buzz"
documentation = "https://chidiwilliams.github.io/buzz/docs"
[project.scripts]
buzz = "buzz.buzz:main"
[dependency-groups]
dev = [
"autopep8>=2.3.2,<3",
"pyinstaller>=6.12.0,<7",
"pyinstaller-hooks-contrib~=2025.1",
"six>=1.16.0,<2",
"pytest>=7.1.3,<8",
"pytest-cov>=4.0.0,<5",
"pytest-qt>=4.1.0,<5",
"pytest-xvfb>=2.0.0,<3",
"pytest-mock>=3.12.0,<4",
"pytest-timeout>=2.4.0,<3",
"pylint>=2.15.5,<3",
"pre-commit>=2.20.0,<3",
"pytest-benchmark>=4.0.0,<5",
"ruff>=0.1.3,<0.2",
]
build = [
"cmake>=4.2.0,<5",
"polib>=1.2.0,<2",
# Needed to compile the ctc_forced_aligner C++ extension in-place,
# see scripts/build_ctc_forced_aligner.py
"pybind11",
"setuptools>=80.9.0",
]
[tool.uv]
index-strategy = "unsafe-best-match"
# Intel macOS (darwin/x86_64) is no longer supported: torch shipped no
# Intel-macOS wheels after 2.2.2, which in turn has no cp313 wheels.
environments = [
"sys_platform == 'linux'",
"sys_platform == 'win32'",
"sys_platform == 'darwin' and platform_machine == 'arm64'",
]
default-groups = [
"dev",
"build",
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", marker = "sys_platform != 'darwin'" },
]
torchaudio = [
{ index = "pytorch-cpu", marker = "sys_platform != 'darwin'" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
include = [
"buzz",
"buzz/whisper_cpp/*",
"buzz/locale/*/LC_MESSAGES/buzz.mo",
"whisper_diarization",
"deepmultilingualpunctuation",
"ctc_forced_aligner",
]
[tool.hatch.build.targets.wheel]
include = [
"buzz",
"buzz/whisper_cpp/*",
"buzz/locale/*/LC_MESSAGES/buzz.mo",
"whisper_diarization",
"deepmultilingualpunctuation",
"ctc_forced_aligner",
]
[tool.hatch.build.hooks.custom]
[build-system]
requires = ["hatchling", "cmake>=4.2.0,<5", "polib>=1.2.0,<2", "pybind11", "setuptools>=80.9.0"]
build-backend = "hatchling.build"
[tool.coverage.report]
exclude_also = [
"if sys.platform == \"win32\":",
"if platform.system\\(\\) == \"Windows\":",
"if platform.system\\(\\) == \"Linux\":",
"if platform.system\\(\\) == \"Darwin\":",
]
[tool.ruff]
exclude = [
"**/whisper.cpp",
]