-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (101 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (101 loc) · 2.95 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
[project]
name = "irodori-tts-server"
version = "0.1.0"
description = "OpenAI-compatible inference API server for Irodori-TTS"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = [
"fastapi>=0.115.0",
"huggingface-hub>=0.34.0",
"irodori-tts @ git+https://github.com/Aratako/Irodori-TTS.git",
"pydantic-settings>=2.6.0",
"python-dotenv>=1.0.1",
"python-multipart>=0.0.9",
"soundfile>=0.13.1",
"torch>=2.10.0,<2.11.0",
"torchaudio>=2.10.0,<2.11.0",
"uvicorn[standard]>=0.32.0",
]
[project.optional-dependencies]
cpu = [
"torch>=2.10.0,<2.11.0",
"torchao>=0.16.0,<0.17.0",
"torchaudio>=2.10.0,<2.11.0",
]
cu128 = [
"torch>=2.10.0,<2.11.0",
"torchao>=0.16.0,<0.17.0",
"torchaudio>=2.10.0,<2.11.0",
]
rocm = [
"torch>=2.10.0,<2.11.0",
"torchao>=0.16.0,<0.17.0",
"torchaudio>=2.10.0,<2.11.0",
"pytorch-triton-rocm>=3.5.1; sys_platform == 'linux'",
"triton-rocm>=3.6.0; sys_platform == 'linux'",
]
dev = [
"httpx>=0.27.0",
"pytest>=8.0.0",
"ruff>=0.9.0",
]
[project.scripts]
irodori-openai-tts = "irodori_openai_tts.__main__:main"
[tool.uv]
conflicts = [
[
{ extra = "cpu" },
{ extra = "cu128" },
{ extra = "rocm" },
],
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
{ index = "pytorch-cu128", extra = "cu128", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
{ index = "pytorch-rocm", extra = "rocm", marker = "sys_platform == 'linux'" },
]
torchaudio = [
{ index = "pytorch-cpu", extra = "cpu", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
{ index = "pytorch-cu128", extra = "cu128", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
{ index = "pytorch-rocm", extra = "rocm", marker = "sys_platform == 'linux'" },
]
pytorch-triton-rocm = [
{ index = "pytorch-rocm", extra = "rocm", marker = "sys_platform == 'linux'" },
]
triton-rocm = [
{ index = "pytorch-rocm", extra = "rocm", marker = "sys_platform == 'linux'" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "pytorch-rocm"
url = "https://download.pytorch.org/whl/rocm7.1"
explicit = true
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
ignore = ["E501", "B008", "C901"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
known-first-party = ["irodori_openai_tts", "irodori_tts"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"