From b58e728edd51afff9645244dbb4105319c2b17a4 Mon Sep 17 00:00:00 2001 From: Connor Ferster Date: Fri, 14 Aug 2026 03:36:56 +0000 Subject: [PATCH] chore: switch build backend to flit and bump version to 0.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pyproject.toml | 10 ++++++---- src/ymprint/__init__.py | 6 +++++- uv.lock | 1 - 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4f7f27b..db2b04b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "ymprint" -version = "0.2.0" -description = "Desktop publishing in YAML with Python" +dynamic = ["version", "description"] readme = "README.md" authors = [ { name = "Connor Ferster", email = "connor@structuralpython.com" } @@ -23,8 +22,11 @@ dependencies = [ ym = "ymprint.cli.main:app" [build-system] -requires = ["uv_build>=0.11.16,<0.12.0"] -build-backend = "uv_build" +requires = ["flit_core>=3.9,<4"] +build-backend = "flit_core.buildapi" + +[tool.flit.module] +name = "ymprint" [dependency-groups] dev = [ diff --git a/src/ymprint/__init__.py b/src/ymprint/__init__.py index e17dff0..dedd19d 100644 --- a/src/ymprint/__init__.py +++ b/src/ymprint/__init__.py @@ -1,2 +1,6 @@ +"""Desktop publishing in YAML with Python.""" + +__version__ = "0.3.0" + from ymprint import config -from ymprint import blocks \ No newline at end of file +from ymprint import blocks diff --git a/uv.lock b/uv.lock index d51ff82..5cc4092 100644 --- a/uv.lock +++ b/uv.lock @@ -587,7 +587,6 @@ wheels = [ [[package]] name = "ymprint" -version = "0.2.0" source = { editable = "." } dependencies = [ { name = "jinja2" },