-
Notifications
You must be signed in to change notification settings - Fork 314
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (112 loc) · 2.59 KB
/
pyproject.toml
File metadata and controls
125 lines (112 loc) · 2.59 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "TTS-WebUI"
version = "1.4.0"
description = "TTS WebUI"
readme = "README.md"
authors = [
{name = "rsxdalv"}
]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dynamic = ["dependencies"]
[project.urls]
Homepage = "https://github.com/rsxdalv/tts-webui"
[project.scripts]
tts-webui = "tts_webui.cli:main"
[project.optional-dependencies]
cpu = [
"torch==2.11.0",
"torchvision",
"torchaudio",
]
cuda = [
"torch==2.11.0+cu128",
"torchvision",
"torchaudio",
"xformers==0.0.35",
]
mac = [
"torch==2.11.0",
"torchvision",
"torchaudio",
]
rocm = [
"torch==2.11.0",
"torchvision",
"torchaudio",
]
intel = [
"torch==2.11.0",
"torchvision",
"torchaudio",
]
test = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.1"
]
[tool.setuptools]
packages = ["tts_webui"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = ["-v", "--tb=short", "--strict-markers", "-p", "no:warnings"]
markers = [
"unit: Unit tests for individual functions and classes",
"integration: Integration tests for module interactions",
"slow: Tests that take more than a few seconds to run",
"requires_gpu: Tests that require GPU to run",
"requires_network: Tests that require network access"
]
norecursedirs = [".git", ".tox", "dist", "build", "*.egg", "__pycache__", "notebooks", "workspace", "outputs"]
# [tool.setuptools.package-data]
# "*" = ["*.json"]
# Alternative configuration if you want to use find_namespace_packages
# [tool.setuptools.packages.find]
# namespaces = true
# include = ["tts_webui.*"]
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = [
".git",
"__pycache__",
".tox",
"build",
"dist",
"*.egg-info",
"notebooks",
"workspace",
"outputs",
"outputs-rvc",
"installer_files",
"installer_scripts",
"extensions",
"data",
"voices",
"favorites",
"collections",
"temp",
"react-ui",
"react-ui-vite",
"server.py",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I"] # pycodestyle (E,F,W) + isort (I)
ignore = ["E501", "F401", "E402"]
[tool.ruff.format]
quote-style = "double" # Match black's default
[tool.uv]
cache-dir = "./cache"
python-downloads = "manual"