Skip to content

Commit

Permalink
Improve release process (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Jul 1, 2023
1 parent e32a66f commit cf59f97
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/spin <v0.0> main --version <0.1> >> CHANGELOG.md
export VERSION=<version number>
export PREVIOUS=<previous version number>
export ORG="scientific-python"
export REPO="spin"

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 @@ -41,7 +48,7 @@ Example `version`

- Review the github release page:

https://github.com/scientific-python/spin/releases
https://github.com/scientific-python/spin/tags

- Publish on PyPi:

Expand Down

0 comments on commit cf59f97

Please sign in to comment.