Files
WeClone-new/pyproject.toml
T

100 lines
2.2 KiB
TOML

[project]
name = "WeClone"
version = "0.1.3"
description = "从聊天记录创造数字分身的一站式解决方案"
authors = [{ name = "xming521" }]
readme = "README.md"
requires-python = ">=3.9,<3.10"
dependencies = [
"pandas",
"commentjson",
"pydantic==2.10.6",
"setuptools>=78.1.0",
"loguru>=0.7.3",
"torch>=2.5.1"
]
[dependency-groups]
# xcodec = ["xcodec2==0.1.3"]
wx = ["pywxdump"]
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.5.1",
"tqdm>=4.66.5",
"transformers==4.45.2",
]
main = ["transformers==4.45.2", "llamafactory>=0.9.2", "openai==0.28.0"]
dev = ["pytest", "pyright", "ruff"]
[tool.uv]
conflicts = [
[{ group = "wx" }, { group = "sparktts" }],
[{ group = "wx" }, { group = "main" }],
# [{ group = "wx" }, { group = "xcodec" }],
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cu121", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu121", marker = "platform_system == 'Linux'" }
]
torchaudio = [
{ index = "pytorch-cu121", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu121", marker = "platform_system == 'Linux'" },
]
torchvision = [
{ index = "pytorch-cu121", marker = "platform_system == 'Windows'" },
{ index = "pytorch-cu121", marker = "platform_system == 'Linux'" },
]
[[tool.uv.index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
default = true
[[tool.uv.index]]
name = "pytorch-cu121"
url = "https://download.pytorch.org/whl/cu121"
explicit = true
[tool.pyright]
typeCheckingMode = "basic"
include = ["make_dataset"]
exclude = ["**/archive", "**/tests"]
ignore = ["**/archive"]
reportMissingImports = "error"
reportMissingTypeStubs = false
pythonVersion = "3.9"
pythonPlatform = "Linux"
[tool.ruff]
exclude = [
"**/archive",
"**/tests",
"WeClone-audio/src/server未完工",
"WeClone-audio/src/Spark-TTS",
]
line-length = 120
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 = "py39"