build: drop redundant force-include; add onnxscript to dev deps

Hatchling's  already picks up assets/;
force-include duplicated each asset and emitted a build warning once
real ONNX files landed. onnxscript is a transitive runtime dep of
torch.onnx.export (PyTorch 2.11+) — make it explicit.
This commit is contained in:
2026-05-12 01:00:45 +08:00
parent 6702269494
commit 3f1f8090ec
2 changed files with 36 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ dev = [
"pytest-asyncio>=0.23.0",
"httpx>=0.27.0",
"onnx>=1.15.0",
"onnxscript>=0.1",
]
[build-system]
@@ -31,9 +32,6 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/ai_mouse"]
[tool.hatch.build.targets.wheel.force-include]
"src/ai_mouse/assets" = "ai_mouse/assets"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]