chore: switch build backend to flit + bump to 0.3.0 - #11
Merged
Conversation
Move from uv_build to flit_core with dynamic version and description. flit derives both from the package module, so add a module docstring (→ description) and `__version__` (→ version) to src/ymprint/__init__.py, and declare `dynamic = ["version", "description"]` in pyproject. Bump to 0.3.0 for release: several backward-compatible features have merged since the 0.2.0 release (multi-page templates, scoped text styles, explicit list syntax, graceful CLI error handling). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Switches the build backend from
uv_buildto flit_core, with dynamicversionanddescription(as requested), and bumps the version to 0.3.0 in preparation for a release.Why flit needed changes
flit derives dynamic metadata from the package module, which previously lacked the required attributes:
src/ymprint/__init__.pyhad no module docstring (→description) and no__version__(→version)pyproject.tomldeclaredversion/descriptionstaticallyChanges
src/ymprint/__init__.py: add module docstring +__version__ = "0.3.0"pyproject.toml:dynamic = ["version", "description"](removed the static keys)[build-system]→flit_core>=3.9,<4/flit_core.buildapi[tool.flit.module] name = "ymprint"for thesrc/layoutVerification
uv buildproducesymprint-0.3.0-py3-none-any.whl+ sdistVersion: 0.3.0,Summary: Desktop publishing in YAML with Python., allRequires-Distpresentymconsole script andsrc/→ymprint/layout intactOnce merged I'll tag v0.3.0 and cut the GitHub release.
🤖 Generated with Claude Code