Changesets-style release automation on top of scriv
Project description
scriv-release
Changesets-style release automation on top of scriv.
scriv already manages per-PR changelog fragments. scriv-release adds the missing pieces for fully automated releases:
- A policy for mapping changelog categories to semver bump levels.
- Orchestration commands (
bump-level,next-version,collect,tag) that wrapscrivand a configurable version provider. - A GitHub Action that opens a "Changelog Preview" PR when fragments are pending, and tags a release once that PR is merged — the same flow popularized by Changesets in the JS ecosystem.
Quickstart
pip install "scriv-release[bump-my-version]"
# pyproject.toml
[tool.scriv-release]
version_provider = "bump-my-version"
In your repo's .github/workflows/release.yml:
on:
push:
branches: [main]
jobs:
release:
uses: whitphx/scriv-release/.github/workflows/reusable.yml@v1
secrets:
app-id: ${{ vars.RELEASE_APP_ID }}
app-private-key: ${{ secrets.RELEASE_APP_KEY }}
See docs/quickstart.md and docs/token-setup.md.
How it works
Two phases, branched on whether changelog fragments are present on HEAD:
- Fragments present →
scriv collectinto ascriv-release-previewbranch and open/update a "Changelog Preview" PR. - No fragments on
HEAD, but fragments onHEAD~1→ that means the preview PR was just merged. Determine the bump level fromHEAD~1's fragments, tag the release, push the tag.
This is the same file-presence-based detection Changesets uses, so it survives squash, rebase, and merge commits alike.
Status
Early scaffold. Public API and config keys may shift before 1.0.
License
MIT — see LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scriv_release-0.2.4.tar.gz.
File metadata
- Download URL: scriv_release-0.2.4.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba5b973ba178f0afc0a0ce70565ed1443ed0ab65cc8d75eb8a7ff34d41b046fa
|
|
| MD5 |
897975cbe9e19ae828940a609e0f7b9d
|
|
| BLAKE2b-256 |
c966b2db9c2ca5c746fb3e4c6219d1400719d6be4c7ea6e02bf43bc268b2b632
|
Provenance
The following attestation bundles were made for scriv_release-0.2.4.tar.gz:
Publisher:
publish.yml on whitphx/scriv-release
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scriv_release-0.2.4.tar.gz -
Subject digest:
ba5b973ba178f0afc0a0ce70565ed1443ed0ab65cc8d75eb8a7ff34d41b046fa - Sigstore transparency entry: 1439246306
- Sigstore integration time:
-
Permalink:
whitphx/scriv-release@8931f7412ef30b753ab73d35c4dc2ccb8d6bdcf4 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/whitphx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8931f7412ef30b753ab73d35c4dc2ccb8d6bdcf4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file scriv_release-0.2.4-py3-none-any.whl.
File metadata
- Download URL: scriv_release-0.2.4-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
240ea2c0668155e5e34f2f79e1498fbd214bb28ec58381433fc2f0e5dab6dfec
|
|
| MD5 |
6f19edc1a62a610a53eef1ebda685ec1
|
|
| BLAKE2b-256 |
4848b1b433e3c003a36cec3c8c35ffb94ad27d6c1a42cdbe0af22bac426d712e
|
Provenance
The following attestation bundles were made for scriv_release-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on whitphx/scriv-release
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scriv_release-0.2.4-py3-none-any.whl -
Subject digest:
240ea2c0668155e5e34f2f79e1498fbd214bb28ec58381433fc2f0e5dab6dfec - Sigstore transparency entry: 1439246324
- Sigstore integration time:
-
Permalink:
whitphx/scriv-release@8931f7412ef30b753ab73d35c4dc2ccb8d6bdcf4 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/whitphx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8931f7412ef30b753ab73d35c4dc2ccb8d6bdcf4 -
Trigger Event:
push
-
Statement type: