christianmlong + release_candidate   1

A Python Versioning Workflow with Bumpversion - Kyle W. Purdon
The basic setup of bumpversion is to drop a .bumversion.cfg in the root of your project that contains the following code:

current_version = 0.0.0
commit = True
tag = True

With this file, and bumversion installed you can run the command

$ bumpversion [patch | minor | major]

which will bump the version to 0.0.1, 0.1.0, or 1.0.0 respectively (assuming you started at 0.0.0). In addition because the commit, and tag flags are set to true bumpversion will create a tag and commit to your git repository. (see this commit for an example).

This setup works great if all you care about is patch, minor, or major versions. However when you need something like 1.0.0rc to indicate a pre-release (or snapshot) the setup is slightly more complex.
python  version  bump  bumpversion  release_candidate 
january 2016 by christianmlong

Copy this bookmark: