Skip to content

Commit

Permalink
Improve release process (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Jul 2, 2023
1 parent 9db54b2 commit 787bfd5
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Introduction

Example `version`
Example `version number`

- 1.8.dev0 # development version of 1.8 (release candidate 1)
- 1.8rc1 # 1.8 release candidate 1
Expand All @@ -12,22 +12,29 @@ Example `version`

## Process

- Update and review `CHANGELOG.md`:
- Set release variables:

changelist scientific-python/changelist <v0.0> main --version <0.1> >> CHANGELOG.md
export VERSION=<version number>
export PREVIOUS=<previous version number>
export ORG="scientific-python"
export REPO="changelist"

where <v0.0> is the last release and <0.1> is the new one.
- Autogenerate release notes

changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION}

- Put the output of the above command at the top of `CHANGELOG.md`

- Update `version` in `pyproject.toml`.

- Commit changes:

git add pyproject.toml CHANGELOG.md
git commit -m 'Designate <version> release'
git commit -m "Designate ${VERSION} release"

- Add the version number (e.g., `1.2.0`) as a tag in git:
- Tag the release in git:

git tag -s [-u <key-id>] v<version> -m 'signed <version> tag'
git tag -s v${VERSION} -m "signed ${VERSION} tag"

If you do not have a gpg key, use -u instead; it is important for
Debian packaging that the tags are annotated
Expand All @@ -48,7 +55,7 @@ Example `version`
git clean -fxd
pip install -U build twine wheel
python -m build --sdist --wheel
twine upload -s dist/*
twine upload dist/*

- Update `version` in `pyproject.toml`.

Expand Down

0 comments on commit 787bfd5

Please sign in to comment.