-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (46 loc) · 1.45 KB
/
Copy pathpyproject.toml
File metadata and controls
51 lines (46 loc) · 1.45 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
[project]
name = "face-hello"
version = "1.0.0"
description = "普通 RGB 摄像头人脸解锁 Windows 原型"
requires-python = ">=3.10,<3.12"
dependencies = [
"numpy<2.0",
"opencv-python",
"mediapipe",
"insightface",
"onnxruntime",
"PySide6",
"pywin32",
]
[dependency-groups]
# 分发依赖(build_release 装进便携 python)。与运行时一致,但换 PySide6 的瘦身子集:
# PySide6-Essentials = 全家桶 PySide6 去掉 Addons(Qt6WebEngineCore.dll ~196MB 等),最大头瘦身。
# 注:opencv 暂维持 opencv-python——mediapipe 强依赖 opencv-contrib-python(也提供 cv2),
# headless 替换省不掉两者并存,需另行实测裁剪(DESIGN 10.9/10.10 风险项),第一版不动。
dist = [
"numpy<2.0",
"opencv-python",
"mediapipe",
"insightface",
"onnxruntime",
"PySide6-Essentials",
"pywin32",
]
# 测试依赖:独立组,不进运行时 / 分发(dist)。装它:uv sync --group test。
test = [
"pytest",
]
[tool.uv]
# 应用型项目,不把自身作为可安装包(根级 face_hello/ app/ 直接在 sys.path)
package = false
[tool.pytest.ini_options]
# package=false:face_hello 没装进 venv,靠 pythonpath 把仓库根加进 sys.path
# (与 CI 里给 offline_check 设 PYTHONPATH=仓库根 同理)。
pythonpath = ["."]
testpaths = ["tests"]
[tool.ruff]
target-version = "py310"
line-length = 100
exclude = [".agents", ".venv", "data", "models"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]