ASpec builds the Draft package ling-aspec, SGLang Target package ling-aspec-target,
Megatron environment package ling-aspec-megatron, and shared code package
ling-aspec-runtime at the same version. Python imports and the CLI use aspec.
The Megatron guide describes its native build prerequisites
and independent environment profile.
Maintainers set project.version in pyproject.toml.
Current prereleases use <major>.<minor>.<patch>b0; maintainers choose the base version.
Tags must match v<version> exactly. CI validates the version without changing it.
See the Python version specification.
Run the checks in CONTRIBUTING.md and the relevant validation gates for the changes being released. Build from a clean, reviewed commit:
python -m tools.build_release --outdir distThe output directory must be empty. The command builds and audits the sdist and wheel,
includes the runtime requirement files, and records their checksums in SHA256SUMS.
Verify source attribution and license texts, and exclude credentials, datasets, weights,
checkpoints and local environment files.
The release workflow checks package metadata, builds the distributions, and validates the installed wheel outside the source checkout. Manual runs perform these checks without publishing. CPU installation checks do not replace the GPU validation required for runtime changes.
Wheels include the CLI, model configurations, recipes, Quickstart data, runtime requirement
files and the SGLang patch. Source distributions also include documentation, tests and
maintenance tools. setup.py collects resources from their canonical source locations.
In the release repository, configure a GitHub environment named pypi:
- Add the environment secret
PYPI_API_TOKENwith an account-wide PyPI token whose account can publish all four distributions. This workflow uploads them together; a token scoped to one project cannot authorize the others. - Allow deployments from
v*tags. - Add required reviewers if releases need approval before upload.
See PyPI token setup and GitHub environments.
- Merge the release changes, including the selected version and changelog, into
main. Require source CI and the applicable release checks to pass for that commit. - Create and push the matching
v<version>tag ininclusionAI/ASpec. Mark a corresponding GitHub Release as a prerelease when the package version is a prerelease. - In Actions → Build and publish release, require
buildandwheel-installto pass. Review theaspec-distributionsartifact and approve thepypideployment if approval is configured. - The
publishjob verifies checksums and uploads the same wheel and sdist to PyPI. It runs only for version-tag pushes ininclusionAI/ASpec. - Check the PyPI release and follow the installation guide in a fresh Linux environment.
PyPI does not allow replacing an uploaded distribution file. Inspect an interrupted upload before retrying; source changes require a new version. Retain the build and validation records. The workflow does not create a GitHub Release.