Skip to content

chore(pkg-py): adopt hatch-vcs and add py.typed marker#215

Merged
cpsievert merged 2 commits intomainfrom
feat/hatch-vcs
Mar 19, 2026
Merged

chore(pkg-py): adopt hatch-vcs and add py.typed marker#215
cpsievert merged 2 commits intomainfrom
feat/hatch-vcs

Conversation

@cpsievert
Copy link
Contributor

@cpsievert cpsievert commented Mar 19, 2026

Summary

  • Replace static version = "0.5.1" in pyproject.toml with dynamic versioning via hatch-vcs
  • Auto-generates __version.py from py/v* git tags, matching the convention used in shinychat
  • Add __version.py to .gitignore and ruff exclude list
  • Add py.typed marker (PEP 561) so type checkers recognize inline annotations

Test plan

  • uv sync resolves version correctly from git tags
  • from querychat.__version import __version__ works at runtime
  • All 270 tests pass
  • Verify version resolves correctly in CI build

🤖 Generated with Claude Code

Use hatch-vcs to auto-generate __version.py from git tags, matching
the convention used in shinychat. This replaces the static version
in pyproject.toml with dynamic versioning based on py/v* tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cpsievert cpsievert changed the title build: adopt hatch-vcs for dynamic version management build: adopt hatch-vcs and add py.typed marker Mar 19, 2026
@cpsievert cpsievert changed the title build: adopt hatch-vcs and add py.typed marker chore(pkg-py): adopt hatch-vcs for dynamic version management Mar 19, 2026
@cpsievert cpsievert changed the title chore(pkg-py): adopt hatch-vcs for dynamic version management chore(pkg-py): adopt hatch-vcs and add py.typed marker Mar 19, 2026

This comment was marked as resolved.

@cpsievert cpsievert merged commit 05a3758 into main Mar 19, 2026
7 checks passed
@cpsievert cpsievert deleted the feat/hatch-vcs branch March 19, 2026 21:38
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.

2 participants