Skip to content
Robbert Verbruggen edited this page Oct 7, 2020 · 6 revisions

Releasing

This page describes the steps for publishing a new rachiopy release. Those steps requires that you don't use forks but work with the repositories themself.

Release preparation

GitHub

  • Merge master into dev to make the PR mergeable.
  • Cut a release branch from dev. For example the milestone name.
  • Create a pull request from the release branch to master with the upcoming release number as the title.
  • Update setup.py with the correct version number and push that commit to release branch.

Release day

GitHub

  • Cherry-pick the PRs that need to get into the release, edit the PRs to the release branch, and merge the pull requests.
  • Merge release branch pull request (DO NOT SQUASH!). Use Merge pull request.
  • Go to releases, click Draft a new release and tag a new release on the master branch. "Tag version" and "Release title" are the version number (O.x for major version, 0.x.y for minor and bug fix releases). Press "Publish release" to finish the process.
  • Merge master into dev.
  • Update setup.py with the upcoming version number (including the dev tag) and push that commit to the dev branch.
from datetime import datetime

NOW = datetime.now().strftime("%m%d%Y%H%M%S")

VERSION = f"1.x.y-dev{NOW}"
Clone this wiki locally