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
File details
Details for the file pybuilder-git-version-0.4.0.tar.gz
.
File metadata
- Download URL: pybuilder-git-version-0.4.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5533334b2c4be9f151e976c8d10cfe63eee2cd730fc85ebf2bac9533504ce82 |
|
MD5 | 33e607ba186980f4c4485626ae0b7ebd |
|
BLAKE2b-256 | f931dbabf3e908417dd81562e94b817b7c0d9b4c002ee8d278b6cd6f5d136eb9 |
File details
Details for the file pybuilder_git_version-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pybuilder_git_version-0.4.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29f79a760d6c63afc1fd4d4d9dd003dea72107e24643d609a2259008d670df4f |
|
MD5 | a291308857753af9d1b06bfcb19135e0 |
|
BLAKE2b-256 | 125dfe6530a31aa28fbc09c8604b313a6c25277494fad8e98271eeee22cb910a |