chore: 更新python 依赖,修复 torch 版本导致的镜像体积过大

This commit is contained in:
Wenjie Zhang 2026-04-03 20:02:05 +08:00
parent eca92a1a77
commit 10d6c8d273
3 changed files with 2413 additions and 2574 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
.yuxi/
*.egg-info
### python gitignore
__pycache__/
*.pyc

View File

@ -84,3 +84,22 @@ include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["yuxi*"]
[tool.uv]
[[tool.uv.index]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
yuxi = { path = "package", editable = true }
torch = { index = "pytorch-cpu" }
torchvision = { index = "pytorch-cpu" }

File diff suppressed because it is too large Load Diff