better-setuptools-git-version 1.0.5

Last updated:

0 purchases

better-setuptools-git-version 1.0.5 Image
better-setuptools-git-version 1.0.5 Images
Add to Cart

Description:

bettersetuptoolsgitversion 1.0.5

better-setuptools-git-version





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
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 tags in the underlying Git repository:
setup(
name='foobar',
version_config={
"version_format": "{tag}.dev{sha}",
"starting_version": "0.1.0"
},
setup_requires=['better-setuptools-git-version'],
...
)

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.