Metadata-Version: 2.1
Name: git-versioner
Version: 2.0
Summary: Manage current / next version for project
Home-page: https://gitlab.com/alelec/__version__
Author: Andrew Leech
Author-email: andrew@alelec.net
License: MIT
Platform: UNKNOWN

git-versioner
=============

Manages the version number for the project based on git tags.

If on a tag, report that as-is.

When git commits have been added on from the tag, auto-increment the desired level of semantic version

Your project can either ``from __version__ import version, version_short, git_hash, on_tag`` to auto-calculate each run,
or ``from _version import version, version_short, git_hash, on_tag`` to get the details from previous
run of ``__version__``

Can also be used as command line tool to generate ``_version.py``, print version, rename files or fill a
template file with version details.::


    usage: __version__.py [-h] [--save] [--short] [--git] [--rename RENAME] [--template template output]

    Mange current/next version.

    optional arguments:
      -h, --help            show this help message and exit
      --save                Store in _version.py
      --short               Print the short version string
      --git                 Print the release git hash
      --rename RENAME       Add version numbers to filename(s)
      --template template output
                            Add version to <template> and write result to <output>
      --tag                 Creates git tag to release the current commit


