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

This commit is contained in:
DrSmoothl
2026-02-15 16:46:11 +08:00
parent 275608abea
commit c834f8c59c

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