fix(build): include clink resources in package

Problem: pyproject excludes conf/cli_clients and clink prompts from the
wheel, so ClinkRegistry raises RegistryLoadError after pip install.

Impact: Clink integrations are entirely broken for packaged installs.

Solution: Add conf/cli_clients/*.json and systemprompts/clink/*.txt to
setuptools package-data so wheels ship required assets.

Fixes: pip install . will now include all clink configuration files
This commit is contained in:
谢栋梁
2025-11-03 20:27:06 +08:00
parent 4d3d177d91
commit e9ac1ce335

View File

@@ -18,7 +18,11 @@ include = ["tools*", "providers*", "systemprompts*", "utils*", "conf*", "clink*"
py-modules = ["server", "config"]
[tool.setuptools.package-data]
"*" = ["conf/*.json"]
"*" = [
"conf/*.json",
"conf/cli_clients/*.json",
"systemprompts/clink/*.txt",
]
[tool.setuptools.data-files]
"conf" = [