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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git2version-0.0.48-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file git2version-0.0.48.tar.gz.

File metadata

  • Download URL: git2version-0.0.48.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for git2version-0.0.48.tar.gz
Algorithm Hash digest
SHA256 7aeb8e31c6216a0502e0e8a2201508a6b8628ab2c0a09b49437b3029d5bff79a
MD5 5763e5877e83e93bde1418b78e9e31a4
BLAKE2b-256 c5e92c5de14833f7e6cf6b89dbb156cc1943e9eded5e49cb7af2bf0584c7c76f

See more details on using hashes here.

File details

Details for the file git2version-0.0.48-py3-none-any.whl.

File metadata

  • Download URL: git2version-0.0.48-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for git2version-0.0.48-py3-none-any.whl
Algorithm Hash digest
SHA256 ae86b631df4838163053675ce39fa598bb39cb79ea0ba162d0566fe82c9c4393
MD5 c9563a1cd8b5fab9a574d1caa8fd27ee
BLAKE2b-256 cdac06b48114effc0950b517dfec79ca7f69c6e19b98b12d0fbe023282203416

See more details on using hashes here.

Supported by

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