Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

view (and modify) your project version in multiple commonly-used places

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 VERSION
Octocat-spinner-32 version.py
Octocat-spinner-32 version.xml
README.md

version parses common files to find and change the current version number of your project.

Supported file names are:

  • VERSION (obviously)
  • setup.py (python setuptools)
  • conf.py (sphinx configuration)

.. but new file formats can be added fairly easily when required.

Usage:

version

To print out your current version number(s) (one line per file).

version \<number\>

To set the version number across all supported files.

version +

To increment the minor version number (e.g 0.1.2 -> 0.1.3) and save the results to every supported file.

version ++

To increment the second-most minor version number (e.g 0.1.2 -> 0.2.0)

.. and so on for more plusses, for as many as you require.

Something went wrong with that request. Please try again.