Skip to content

chore: auto-generate _version.py via hatch-vcs#74

Merged
georgeh0 merged 1 commit intomainfrom
g/ws2
Mar 16, 2026
Merged

chore: auto-generate _version.py via hatch-vcs#74
georgeh0 merged 1 commit intomainfrom
g/ws2

Conversation

@georgeh0
Copy link
Copy Markdown
Member

Summary

  • Configure hatch-vcs build hook to auto-generate _version.py from git tags during build
  • Remove the hardcoded placeholder _version.py and add it to .gitignore
  • Add fallback-version = "999.0.0" for dev environments without git tags

Test plan

  • Verified uv run python -c "from cocoindex_code._version import __version__; print(__version__)" works and produces correct dev version
  • Pre-commit hooks pass (pytest, ruff, mypy)

🤖 Generated with Claude Code

Configure hatch-vcs build hook to generate _version.py from git tags
during build, instead of maintaining a hardcoded placeholder. The file
is now gitignored since it is build-generated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@georgeh0 georgeh0 merged commit 5e83126 into main Mar 16, 2026
5 checks passed
@georgeh0 georgeh0 deleted the g/ws2 branch March 16, 2026 06:00
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