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/TICKET100 | 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.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b778faebfd0972f6b33c335242a50d172832a8ac80d8dee0b846c8316fe492 |
|
MD5 | 991aa44313e585b66f66a084e6f44599 |
|
BLAKE2b-256 | c629b59573e650b8f80c16810f8921caf69c491f959f29adbe4b1ff80ffd8a45 |
Close
Hashes for pybuilder_git_version-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d809b070f592af3f356cbe2aa2f9316df2af7a31beb01b578ff8b5fdc95f8c60 |
|
MD5 | 286c0ed1ab0208410c429174aa7785d5 |
|
BLAKE2b-256 | 61254a33e5d4ead55cd5c1dc08c386b17efcd5a0a0b66ecb7c5c3a760dd8dbbc |