Skip to content

chore: prepare 0.3.2 release for v1.0alpha milestone - #144

Merged
wyeth93 merged 1 commit into
mainfrom
agent/v1alpha-release-prep-20261201
Dec 1, 2026
Merged

wyeth93 merged 1 commit into
mainfrom
agent/v1alpha-release-prep-20261201

Conversation

@wyeth93

@wyeth93 wyeth93 commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Milestone

Unified v1.0alpha. Package version: 0.3.2 (Python package and Rust workspace).

What changed

  • Cargo.toml — [workspace.package] version 0.3.1 -> 0.3.2.
  • Cargo.lock — refreshed workspace package versions (persisting-dlcapt, persisting-pchronicle, persisting-pchronicle-cli); cargo metadata --locked passes.
  • pyproject.toml — project version 0.3.1 -> 0.3.2.
  • persisting/__init__.py — __version__ 0.3.1 -> 0.3.2.
  • uv.lock — editable persisting package version 0.3.1 -> 0.3.2.
  • CHANGELOG.md — new [0.3.2] - 2026-12-01 entry recording the v1.0alpha milestone and the milestone-tag mapping.
  • scripts/ci/check_release_version.py — add an explicit MILESTONE_TAGS = {"v1.0alpha": "0.3.2"} mapping; validation order is now (1) the three version files must agree, (2) a registered milestone tag requires the package version to equal its mapped version, (3) other tags keep the existing stable vX.Y.Z rule, (4) unregistered prerelease tags stay rejected, (5) Cargo lockfile and main-ancestry checks unchanged.
  • tests/test_release_packaging.py — cover stable tag pass/fail, v1.0alpha + 0.3.2 pass, v1.0alpha + wrong version fail, sources-before-mapping ordering, and unregistered prerelease tags fail.

pchronicle-web/Cargo.toml stays at 0.3.1 on purpose: it is a separate Cargo workspace with its own Cargo.lock, is not a member of the released workspace, and no release/packaging check reads its version (the validator reads only root pyproject.toml, root Cargo.toml, and persisting/__init__.py; wheel staging only builds its dx assets).

Validation (local, this commit)

just is not installed in this environment, so the equivalent commands were run directly with a Python 3.12 test venv:

$ python -m pytest tests/test_release_packaging.py -q
27 passed in 0.07s

$ uvx ruff check scripts/ci/check_release_version.py tests/test_release_packaging.py
All checks passed!

$ cargo metadata --format-version 1 --no-deps --locked
exit=0

$ python scripts/ci/check_release_version.py --tag v1.0alpha --main-ref HEAD
0.3.2                       # exit=0, includes cargo --locked

$ python scripts/ci/check_release_version.py --tag v0.3.2 --skip-lockfile
0.3.2                       # exit=0

$ python scripts/ci/check_release_version.py --tag v0.3.1 --skip-lockfile
release validation failed: release tag version '0.3.1' does not match package version '0.3.2'   # exit=1

$ python scripts/ci/check_release_version.py --tag v0.3.2rc1 --skip-lockfile
release validation failed: release tag 'v0.3.2rc1' must use the stable format vX.Y.Z or be a registered milestone tag (v1.0alpha)   # exit=1

$ python scripts/ci/check_release_version.py --root <simulated 0.3.1 tree> --tag v1.0alpha --skip-lockfile
release validation failed: milestone tag 'v1.0alpha' requires package version '0.3.2', found '0.3.1'   # exit=1

Release workflow note

Pushing tag v1.0alpha at the merged commit triggers .github/workflows/release.yml (on: push: tags: v*). Validate release now accepts the tag through MILESTONE_TAGS, prints 0.3.2, and the downstream jobs build persisting-0.3.2-* wheels, verify the artifact set, publish to PyPI, and create the GitHub Release from the workflow. No manual Release will be created for this tag; no existing PyPI version is reused.

Bump the Python package and Rust workspace version to 0.3.2 so the
unified v1.0alpha tag can build and publish a new release.

The release validator previously accepted stable vX.Y.Z tags only and
would reject v1.0alpha. Add an explicit MILESTONE_TAGS mapping and keep
the validation order: version sources must agree, registered milestones
must match their mapped package version, stable tags keep the existing
rule, unregistered prerelease tags remain rejected. Cargo lockfile and
main-ancestry checks are unchanged.
@wyeth93
wyeth93 merged commit 0e455f6 into main Dec 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant