This small module provides an easy way to automatically manage the version of your python modules by extracting information directly from the version control system (currently only git supported, patches welcome).
Once installed (ex. pip install autosemver
), adding a single line in your
setup.py
file is enough to start using it:
setup( name='some-package', url='http://my.fancy/shrubbery', ... install_requires=['some_important_dep', 'autosemver'], ... setup_requires=['autosemver'], ... autosemver=True, )
That will use tags, commit messages (searches for lines like Sem-Ver: ...
and * Incompatible
) to generate a version compatible with the semantic
versioning standard (https://semver.org/).
Read the full documentation here: http://autosemver.readthedocs.io