Conversation
- Make pyproject.toml the single source of truth for version - Use importlib.metadata in __init__.py to read version at runtime - Add scripts/bump_version.py (stdlib-only) for version bumping - Add Makefile targets: version, bump-patch, bump-minor, bump-major, release - Add RELEASE.md documenting the full release process - Update README.md with new Makefile targets and link to RELEASE.md - Replace hardcoded version assertion in tests with dynamic check - Remove stale [tool.hatch.build.targets.wheel] from pyproject.toml - Bump version to 0.3.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyproject.tomlnow owns the version.__init__.pyreads it at runtime viaimportlib.metadata(stdlib, no new deps) with a fallback for edge cases.scripts/bump_version.pyand Makefile targets (bump-patch,bump-minor,bump-major,release) for convenient version management.RELEASE.mdcovering the full release process (bumping, tagging, CI/CD publish pipeline, manual publish). README updated to reference it.[tool.hatch.build.targets.wheel]section frompyproject.toml, replaced hardcoded version in tests with dynamic assertion.Test plan
make test)make versionshows0.3.1uv run wtf versionshowsworktreeflow 0.3.1make bump-patchcorrectly bumps0.3.0 → 0.3.1test_version_is_not_unknowntest validates metadata resolutionmake release BUMP=minorworkflow end-to-end