优化 pyproject.toml 文件,调整 setuptools 配置以正确包含和排除包

pull/1496/head
DrSmoothl 2026-02-15 16:46:11 +08:00
parent 275608abea
commit c834f8c59c
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -55,9 +55,13 @@ jobs:
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["maibot_dashboard"]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["maibot_dashboard"]
exclude = ["maibot_dashboard.dist*"]
[tool.setuptools.package-data]
maibot_dashboard = ["dist/**"]
EOF