forked from xming521/WeClone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (118 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
136 lines (118 loc) · 3.55 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
[project]
name = "WeClone"
version = "0.3.03"
description = "One-stop solution for creating your digital avatar from chat history"
authors = [{ name = "xming521" }]
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"pandas",
"pyjson5",
"omegaconf",
"click",
"tqdm",
"pydantic==2.10.6",
"setuptools>=78.1.0",
"loguru>=0.7.3",
"langchain",
"openai==1.87.0",
"pip"
]
[tool.weclone]
# Configuration file version number. This number should be incremented when the configuration file structure or important default values change.
config_version = "0.3.03"
config_changelog = """
[0.3.00] - 2025-06-30 - Support TG chat logs, add language parameter, add log level parameter.
[0.3.02] - 2025-08-15 - Allow the use of the enable_thinking to control offline cleaning..
[0.3.03] - 2025-11-01 - Add chat member relationship switch.
"""
[dependency-groups]
main = [
"llamafactory==0.9.4",
"vllm==0.10.0; platform_system == 'Linux'",
"torch==2.7.1+cu126; platform_system == 'Linux' or platform_system == 'Windows'",
"torchvision==0.22.1+cu126; platform_system == 'Linux' or platform_system == 'Windows'",
"torchaudio==2.7.1+cu126; platform_system == 'Linux' or platform_system == 'Windows'",
"torchdata>=0.10.0; platform_system == 'Linux' or platform_system == 'Windows'",
"transformers==4.53.2",
"accelerate==1.7.0",
"triton==3.3.1; platform_system == 'Linux'",
"presidio_analyzer[transformers]",
"presidio_anonymizer",
]
sparktts = [
"einops>=0.8.1",
"einx>=0.3.0",
"numpy==1.26.4",
"omegaconf>=2.3.0",
"packaging>=24.2",
"safetensors>=0.5.2",
"soundfile>=0.12.1",
"soxr>=0.5.0.post1",
"torchaudio>=2.6.0",
"tqdm>=4.66.5",
]
dev = ["pytest", "pytest-order", "pyright", "ruff", "pre-commit"]
[project.scripts]
weclone-cli = "weclone.cli:cli"
[tool.uv]
[tool.uv.pip]
torch-backend = "auto"
[tool.uv.sources]
torch = [
{ index = "pytorch-cu126", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu126", marker = "platform_system == 'Linux'" },
]
torchaudio = [
{ index = "pytorch-cu126", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu126", marker = "platform_system == 'Linux'" },
]
torchvision = [
{ index = "pytorch-cu126", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu126", marker = "platform_system == 'Linux'" },
]
triton = [
{ index = "pytorch-cu126", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu126", marker = "platform_system == 'Linux'" },
]
torchdata = [
{ index = "pytorch-cu126", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu126", marker = "platform_system == 'Linux'" },
]
[[tool.uv.index]]
name = "pytorch-cu126"
url = "https://download.pytorch.org/whl/cu126"
explicit = true
[tool.setuptools.packages.find]
where = ["."]
include = ["weclone*"]
exclude = ["*tests*", "*archive*"]
[tool.pyright]
typeCheckingMode = "basic"
include = ["weclone/data"]
exclude = ["**/archive", "**/tests"]
ignore = ["**/archive"]
reportMissingImports = "error"
reportMissingTypeStubs = false
pythonVersion = "3.12"
pythonPlatform = "Linux"
[tool.ruff]
exclude = [
"**/archive",
"**/tests",
"weclone-audio/src/server未完工",
"weclone-audio/src/Spark-TTS",
]
line-length = 110
lint.ignore = ["F403", "F405", "E501", "E402"]
lint.select = [
"F", # Pyflakes
"W", # pycodestyle warnings
"E", # pycodestyle errors
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"Q", # flake8-quotes
]
target-version = "py312"
[tool.pytest.ini_options]
addopts = "-x -v -s --tb=short"