nextversion

A Python package to generate next version string


License
Other
Install
pip install nextversion==0.3

Documentation

nextversion

https://travis-ci.org/laysakura/nextversion.png?branch=master Latest PyPI version

A Python package to increments module verision numbers.

from nextversion import nextversion
nextversion('1.0a2')    # => '1.0a3'
nextversion('v1.0a2')   # => '1.0a3'  (normalized to compatible version with PEP 386)
nextversion('foo.0.3')  # => None     (impossible to normalize)

If original version number does not match PEP 386 ,

  1. Next version compatible with PEP 386 is returned if possible,
  2. If impossible, None is returned.

Install

Install from PyPI

$ pip install nextversion

Install from Github repo

$ git clone https://github.com/laysakura/nextversion.git
$ cd nextversion
$ ./setup.py install

See also

Author

Sho Nakatani <lay.sakura@gmail.com>, a.k.a. @laysakura