forked from xiaotianfotos/OPC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (48 loc) · 1.39 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (48 loc) · 1.39 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
[project]
name = "opc-cli"
version = "0.2.0"
description = "OPC TTS & ASR CLI Tool with AirPlay/DLNA support"
requires-python = ">=3.10, <3.14"
dependencies = [
# ── 通用依赖 (两平台通用) ──
"edge-tts",
"rich",
"pyatv",
"async-upnp-client",
"soundfile",
"numpy",
"flask",
"flask-cors",
"modelscope",
"huggingface_hub",
# ── Linux + NVIDIA GPU (CUDA 12.4) ──
"torch>=2.5.0,<2.10.0; sys_platform == 'linux'",
"torchaudio>=2.5.0,<2.10.0; sys_platform == 'linux'",
"qwen-tts; sys_platform == 'linux'",
"qwen-asr; sys_platform == 'linux'",
# ── macOS + Apple Silicon (MLX) ──
"mlx-audio[stt,tts]>=0.4.0; sys_platform == 'darwin'",
]
[project.scripts]
opc = "scripts.opc:main"
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["scripts"]
[tool.setuptools.exclude-package-data]
"scripts.cut" = ["test_*.py"]
"scripts.asr" = ["test_*.py"]
[tool.uv]
extra-index-url = ["https://pypi.org/simple"]
override-dependencies = [
"transformers>=4.57.0",
]
# Force PyTorch CUDA 12.4 index (Linux only)
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch", marker = "sys_platform == 'linux'" }
torchaudio = { index = "pytorch", marker = "sys_platform == 'linux'" }