From bcb2ea8fe3c9980eec9425e600bb713fe28b3905 Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Fri, 11 Sep 2026 12:25:36 -0300 Subject: [PATCH] chore: release 1.2.0 Minor rather than patch: #60 changes the generated output for every user. A relation column is now typed by the column it points at, so a foreign key to a BigAutoField primary key renders as `big_auto` where it used to render as `foreign_key`. No API or CLI break, but anyone versioning a .dbml file will see a diff. Shipping since 1.1.2: - #57 CLAUDE.md and shared .claude configuration - #58 CI covers the full declared support matrix, Django 4.2 to 6.1 on Python 3.11 to 3.14, plus Framework :: Django classifiers so the tested range is visible on PyPI - #59 command surface and relation invariants under test, 89% to 99% - #60 relation columns typed by their target (closes #38) Regenerate uv.lock alongside the version. The package is a member of its own workspace, so uv.lock records project.version and `uv sync --locked` fails without it. That would have broken the release workflow at the sync step, before it built anything. Drop the hardcoded version from the release example in CONTRIBUTING.md; it went stale on every release. Co-Authored-By: Claude Opus 5 --- CONTRIBUTING.md | 7 +++++-- pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 411a83e..9f5e5bf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,10 +98,13 @@ Recommended production release flow: make test make lint make build -git tag 1.1.2 -git push origin 1.1.2 +git tag X.Y.Z +git push origin X.Y.Z ``` +Replace `X.Y.Z` with the value of `project.version` in `pyproject.toml`. The tag must match it +exactly, with no `v` prefix, or the release workflow fails before publishing anything. + After the tag is pushed, the PyPI workflow publishes that version if CI passes and the tag matches the package version. If you use GitHub Releases, create the release from the existing version tag instead of using branch pushes as the release trigger. diff --git a/pyproject.toml b/pyproject.toml index c41b6f7..4075da1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "django-dbml" -version = "1.1.2" +version = "1.2.0" description = "Django extension aimed to generate DBML from installed models." readme = "README.md" requires-python = ">=3.11" diff --git a/uv.lock b/uv.lock index e915e95..e1937d7 100644 --- a/uv.lock +++ b/uv.lock @@ -155,7 +155,7 @@ wheels = [ [[package]] name = "django-dbml" -version = "1.1.2" +version = "1.2.0" source = { editable = "." } dependencies = [ { name = "django" },