A Git versioning plugin for PyBuilder
Project description
PyBuilder Git Version Plugin
Summary
This project is a plugin for PyBuilder that sets the project version based on git tags.
Usage
To use the plugin put the following in the plugins section of build.py
:
use_plugin('pybuilder_git_version')
The possible properties for use are:
Property | Value | Default | Usage |
---|---|---|---|
use_git_version | True / False | True | Turns off pybuilder_git_version |
git_version_commit_distance_as_build_number | True / False | True | Uses commit count from tag as build number |
Examples
The following table has examples of repo state and corresponding version number produced.
Tag | Branch | Clean / Dirty | Number of commits since tag | Version |
---|---|---|---|---|
0.0.1 | master | clean | 0 | 0.0.1 |
0.0.1 | master | dirty | 0 | 0.0.2+build.0 |
0.2.2 | develop | clean | 5 | 0.2.3+develop.5 |
1.2.3 | develop | dirty | 3 | 1.2.4+develop.3 |
1.0.0-rc.1 | feature/TICKET-100 | clean | 5 | 1.0.0-rc.1+ticket100.5 |
0.0.1 | hotfix/BUG-20 | clean | 0 | 0.0.2+bug20.0 |
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
Built Distribution
Close
Hashes for pybuilder-git-version-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18caa8785032ff357151fb67f6a2f64c38bce04da419913cd7f48bdad85833f6 |
|
MD5 | 9fe89cc6a05ae2c6aeffb4e8fdcf026a |
|
BLAKE2b-256 | a7dc028e126bea9d8004ec64e933474e6ee689001b57dbd02444aa2d6d047ed0 |
Close
Hashes for pybuilder_git_version-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2b8e93f723dadb692f0cf1f2db7ac179bc9954dffcd6cb3f65b0386ec2154f |
|
MD5 | 270f0a95990ddcb13eeca8b011d2997b |
|
BLAKE2b-256 | 63196d887bc79855099d1a7b9fe2d789494c5193e4b80b6e3e06304afc419ac8 |