Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/prep-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "✨ Prep release"

on:
workflow_dispatch:
inputs:
version:
description: "The new version"
type: "string"
required: true

jobs:
prep-release:
name: "Prep release v${{ inputs.version }}"

permissions:
contents: "write"
pull-requests: "write"

strategy:
matrix:
include:
- tox-label-create-changes: "prep-release"
branch-name: "release/$VERSION"
commit-title: "Update project metadata"
pr-base: "releases"
pr-title: "Release v$VERSION"

uses: "kurtmckee/github-workflows/.github/workflows/create-pr.yaml@ca26472ada33aa277527450aa46436f530e3d2c1" # v1.4
with:
config: "${{ toJSON(matrix) }}"
version: "${{ inputs.version }}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Development
-----------

* Add a reusable workflow to prepare release branches.
13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ envlist =
pypy{3.11, 3.10}{-http,}
py3.9-minimum_dependencies
coverage_report
build
mypy
docs
labels =
Expand Down Expand Up @@ -44,6 +45,18 @@ deps = -rrequirements/docs/requirements.txt
commands = sphinx-build -aWEnqb html docs/ build/docs


[testenv:build]
base_python = py3.13
skip_install = true
deps =
build
twine
uv
commands =
python -m build --installer uv --outdir dist/
twine check --strict dist/*


[testenv:coverage_erase]
skipsdist = true
skip_install = true
Expand Down
Loading