Skip to main content

Manage current / next version for project

Project description

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 to auto-calculate each run, or from _version import version, version_short, git_hash 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] [--short] [--git] [--rename RENAME] [--template template output]

Mange current/next version.

optional arguments:
  -h, --help            show this help message and exit
  --short               print the short version string
  --git                 print the release git hash
  --rename RENAME       add version numbers to filename
  --template template output
                        Add version to <template> and write result to <output>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

git_versioner-1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page