[project] name = "ww-agents" version = "0.0.0" requires-python = ">=3.12" dependencies = [ "pydantic>=2.7", "ww-shared", "ww-llm-gateway", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["ww_agents"] # Prompt 散文是包数据:必须随 wheel/sdist 分发,否则裸装 import 时 load_prompt # 抛 PromptNotFoundError(源码树 pytest 测不出,仅裸装暴露)。`artifacts` 显式声明 # 这些非 .py 文件为收录目标,确保任何 VCS/.gitignore 规则都不会把它们排除掉 # (见 docs/design/prompt-management.md §4/§6#16)。 artifacts = ["ww_agents/prompts/*.md"] [tool.hatch.build.targets.sdist] artifacts = ["ww_agents/prompts/*.md"] [tool.uv.sources] ww-shared = { workspace = true } ww-llm-gateway = { workspace = true }