Skip to main content

A tool to create a project version number from a git repository

Project description

A tool to create a project version number from a git repository

Generates a PEP 440 compliant string based on the git history of the repository.

The version string is generated as follows: {major_version}.{minor_version}.{patch_version}{a{number_of_files_changed}}{b{number_of_untracked_files}} Where the {major_version} is set by the user The {minor_version} is the number of merges The {patch_version} is the number of commits The {number_of_files_changed} is the number of files changed The {number_of_untracked_files} is the number of untracked files

If the repoistory is pristine, then with will not be marked as ‘alpha’ or ‘beta’

Project details


Download files

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

Source Distribution

git2version-0.0.48.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

git2version-0.0.48-py3-none-any.whl (3.8 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