Skip to content

Ship's prompts travel with its package#90

Open
czpython wants to merge 1 commit into
ship-renamefrom
ship-prompts
Open

Ship's prompts travel with its package#90
czpython wants to merge 1 commit into
ship-renamefrom
ship-prompts

Conversation

@czpython

Copy link
Copy Markdown
Owner

Stacked on #89.

The prompts sat in a platform-level backend/templates/ that only ship used, kept in the wheel by a force-include. They move to backend/druks/contrib/ship/templates/prompts/, where the resolver already looks: it globs every installed extension package for its own templates/prompts root, so an extension shipped separately carries its prompts with it.

Prompt names are unchanged (ship/build/*.md), and so is the .druks/ship/prompts/build/*.md override path.

That was the last thing in backend/templates/, so the directory goes, and with it the force-include, the sdist entry, and the PROMPTS_DIR loader entry that pointed at it — the wheel now carries the prompts because they live inside the package.

Verified: uv build --wheel ships all 14 .md files under druks/contrib/ship/templates/prompts/; ruff check, ruff format --check, pytest --collect-only (959 collected), frontend vitest (51 passed).

The prompts sat in a platform-level backend/templates/ that only ship used, kept in the wheel by a force-include. They move under druks/contrib/ship/templates/prompts/, where the resolver already looks: it globs every installed extension package for its own templates/prompts root, so an extension shipped separately carries its prompts with it. Prompt names are unchanged, and so is the .druks/ship/prompts/ override path.

That was the last thing in backend/templates/, so the directory, the force-include, and the loader entry pointing at it go with it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant