very-good-setuptools-git-version

Automatically set package version from Git.


Keywords
setuptools git version-control, git, python2, python3, setuptools
License
MIT
Install
pip install very-good-setuptools-git-version==1.0.8

Documentation

very-good-setuptools-git-version

PackageVersion PythonVersion Stable Format License

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

Introduction

Instead of hard-coding the package version in setup.py like:

setup(
    name='foobar',
    version='1.0',
    ...
)

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

setup(
    name='foobar',
    version_format='{tag}.dev{commits}+{sha}',
    setup_requires=['very-good-setuptools-git-version'],
    ...
)