Release Process

AbstractMusic releases are published through GitHub Actions. The workflow validates tests, package builds, documentation, changelog content, and package version metadata before publishing.

Version Source

The canonical package version is:

src/abstractmusic/_version.py

pyproject.toml reads that value dynamically for packaging metadata. A release tag must use the matching v<version> form.

Local Preflight

Before triggering a release, run:

python -m pytest -q -m unit
python -m build
python -m twine check dist/*
mkdocs build --strict

The unit tests include the checks on the capability records (tests/test_capabilities_schema.py, tests/test_capabilities.py): every block is complete and consistent, and no shipped file cites a scratch path. mkdocs build --strict fails on a broken link or anchor in docs/.

When workflow files change, also run a workflow syntax checker such as actionlint if available.

The release order matters for the AbstractFramework install profiles: publish AbstractMusic before any package or profile that pins the new version, and confirm the version is visible on PyPI before raising those pins. Never describe a version in the README or docs as available on PyPI before it is published.

Real-Model Checks

The default test suite uses stand-in pipelines, real checkpoint headers and small random checkpoints; it loads no published weights. Before a release that changes a local backend's generation path, run the opt-in real-model test for that backend on the hardware you claim:

ABSTRACTMUSIC_RUN_REAL_MODEL_TESTS=1 \
ABSTRACTMUSIC_REAL_BACKEND=acestep \
ABSTRACTMUSIC_REAL_DEVICE=auto \
ABSTRACTMUSIC_REAL_DURATION_S=10 \
python -m pytest -q tests/integration/test_real_generation.py

ABSTRACTMUSIC_REAL_MODEL_ID, ABSTRACTMUSIC_REAL_DTYPE, ABSTRACTMUSIC_REAL_STEPS and ABSTRACTMUSIC_REAL_REVISION select the checkpoint and settings. These test-only variables are read by tests/integration alone; the package itself reads no configuration from the environment. The check validates the WAV, its harmonic structure and the fast repetitive-envelope failure modes, so valid-but-rotor-like audio fails. Artifacts are written under test-artifacts/ (ignored by git). Record the exact command, hardware and seed next to every result you publish, and update the capability block's evidence (measured, with what it was measured on) in the same change.

Documentation Files For The Release

Update these in the release change itself:

  • CHANGELOG.md: a dated ## [<version>] - <YYYY-MM-DD> section; fold Unreleased into it. When a call that used to succeed now raises or behaves differently, add a Migrating from <previous version> subsection that lists each such call with what to pass instead. The README links to the section's anchor (for 0.2.0: CHANGELOG.md#020---2026-12-02); update that link.
  • docs/README.md and mkdocs.yml nav: list every page added or renamed.
  • llms.txt and llms-full.txt: there is no generator for them. Edit both by hand from the updated docs: llms.txt is the curated link index, llms-full.txt the aggregated summary of each indexed document, in the same order, separated by ---.
  • skills/abstractmusic/SKILL.md: metadata.package-version and any recipe whose command, option or default changed.
  • docs/capabilities.md: the capability matrix between the <!-- capability-matrix:begin --> and <!-- capability-matrix:end --> markers must equal abstractmusic models --markdown; regenerate it whenever the registry changes.
  • Measured figures: a figure stated in the docs (adherence, memory, timings) must equal the one in the model's capability record, with the same sample size and conditions. State what was not measured as not measured; state no result for it.

Rehearsal

Manual dispatch of .github/workflows/release.yml defaults to publish=false. This validates the version, changelog, package build, and documentation build without creating a tag, publishing to PyPI, creating a GitHub Release, or deploying docs.

Publish

Publishing can be triggered by pushing a v*.*.* tag or by manual workflow dispatch with:

version=<version>
publish=true
publish_confirmation=publish-abstractmusic-<version>

Publishing uses PyPI trusted publishing with the pypi environment. Documentation deployment uses GitHub Pages with the github-pages environment.

Repository Setup

The GitHub repository must have:

  • PyPI trusted publisher configured for package abstractmusic, workflow .github/workflows/release.yml, and environment pypi
  • GitHub Pages source set to GitHub Actions
  • Optional environment protection rules for pypi and github-pages