Skip to main content

Automatically set package version using git tags.

Project description


PackageVersion PythonVersion Stable Format License

Automatically set package version from Git. This is a re-release of very-good-setuptools-git-version with fixes and improvements, which is itself a re-release of setuptools-git-version


Instead of hard-coding the package version in like:


this package allows to extract it from tags in the underlying Git repository:

        "version_format": "{tag}.dev{sha}",
        "starting_version": "0.1.0"

The tool uses the semantically-latest tag as the base version. If there are no annotated tags, the version specified by starting_version will be used. If HEAD is at the tag, the version will be the tag itself. If there are commits ahead of the tag, the first 8 characters of the sha of the HEAD commit will be included.

In all of the above cases, if the working tree is also dirty or contains untracked files, a +dirty suffix will be appended to the version.

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
even_better_setuptools_git_version-1.0.7-py2-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel py2
even_better_setuptools_git_version-1.0.7-py3-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page