chore(release): single-source the version and bump to 0.1.0#99
Merged
Conversation
Make hatchling the single source of truth for the package version by declaring `dynamic = ["version"]` and reading `__version__` from `src/quartermaster/__init__.py`, eliminating the duplicated literal that previously lived in both pyproject.toml and the package __init__. Bump that single source from 0.0.0 to 0.1.0 for the first release. The lockfile drops its recorded project version accordingly (dynamic).
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.
Prepares the first tagged release.
What
[project]now declaresdynamic = ["version"]and[tool.hatch.version]reads
__version__fromsrc/quartermaster/__init__.py. The version literalno longer lives in two places that can drift.
0.0.0to0.1.0.uv.lock(the editable project entry drops its recorded version nowthat it is dynamic; no dependency changes).
Why
First release. Collapsing the duplicated version string to one source removes a
latent drift footgun before we start cutting tags.
Verification
uv build→quartermaster-0.1.0wheel + sdist (version resolves from thesingle source).
uv lock --check, ruff format+lint,mypy --strict,import-linter (3 contracts kept), 465 unit tests pass.
The
v0.1.0tag and GitHub Release follow once this merges.