release:cli
Introduction
release:cli publishes a new version of splent_cli to the git forge and PyPI, through the release pipeline. Without a version it asks which bump you want.
splent release:cli
Reading the current version...
Current version: v1.49.0
Bump type:
[1] patch v1.49.1 bug fixes, no new features
[2] minor v1.50.0 new features, backward compatible
[3] major v2.0.0 breaking changes
[4] cancel
Choice: 1
Will release as v1.49.1
Proceed? [y/N]: y
Releasing splent_cli v1.49.1
From there the run is the one shown on Release. It ends with one more line.
refresh splent_cli 1.49.1 recorded in the CLI's container
Releasing a given version
splent release:cli 1.49.1
Pass the version in CI, where nobody answers the wizard. It must be MAJOR.MINOR.PATCH, with or without a leading v.
The wizard starts from the highest of the forge’s newest tag, your local tags and pyproject.toml. When the previous version never finished publishing, it stops and points at release:resume.
Keeping the containers in step
After the release, every running container that installs splent_cli editable from /workspace/splent_cli installs it again, so pip records the new version. That covers the CLI’s container and each product’s <product>_web. A container that cannot be refreshed is named with the command to run by hand, and the release is done anyway.
Reference
| Option | Description |
|---|---|
VERSION |
MAJOR.MINOR.PATCH. Omit it for the wizard |
--skip-checks |
Skip lint and tests, for emergencies only |
--no-forge |
Publish to PyPI only. Nothing goes to the forge for this version |
--no-pypi |
Publish to the forge only. The version will not exist on PyPI |
--allow-unfinished |
Release even though the previous version never finished publishing |
--wait |
Wait for PyPI’s new-project limit however long it takes |
The tests are ruff and pytest tests in splent_cli/. --no-forge and --no-pypi ask you to confirm (see Declaring channels). A step that fails after the upload is a divergence.
Requirements
SPLENT_FORGE_TOKEN, unless--no-forge.TWINE_USERNAMEandTWINE_PASSWORD, unless--no-pypi.- A
splent_cli/checkout with anoriginremote.
Check the tokens with splent check:forge and splent check:pypi.
See also
release:frameworkreleasessplent_frameworkthe same way.feature:releaseandproduct:releaseadd the contract, the snapshot and the image.