release:framework
Release a new version of splent_framework to GitHub and PyPI.
Usage
splent release:framework [<version>]
When <version> is omitted, the interactive semver wizard runs: it fetches the latest tag from GitHub and offers patch, minor, or major bump options.
Examples
Interactive (recommended):
splent release:framework
Explicit version (CI / automation):
splent release:framework v1.4.1
Pipeline
- Validates environment credentials.
- Bumps the version in
splent_framework/pyproject.toml. - Stages, commits, and pushes all pending changes to
main. - Creates and pushes a Git tag (
v<version>). - Creates a GitHub Release.
- Cleans build artifacts (
__pycache__,dist/,build/,*.egg-info). - Builds the package (
python -m build). - Uploads to PyPI via
twine.
Requirements
| Variable | Description |
|---|---|
GITHUB_TOKEN |
Optional. Required for GitHub Release creation and for the semver wizard to fetch tags without rate limits. |
TWINE_USERNAME / PYPI_USERNAME |
PyPI authentication (usually __token__). |
TWINE_PASSWORD / PYPI_PASSWORD |
PyPI API token. |
Verify credentials before releasing:
splent check:github
splent check:pypi
See also
release:cli— same pipeline forsplent_clifeature:release— feature release pipelineproduct:release— product release pipeline