Usage
pyVersioning collects various information from the build environment and provides the collected information as structured field. These fields can be queried individually or can be used with a template to fillout and generate a source file. This source file can then be used in a normal build flow by the compiler.
Collected Information
Platform
Environment variables
Version Control System information (e.g. commit hash, branch, tag)
Static data from configuration file
Static data from command line arguments
List all variables
pyVersioning variables
Get single field
pyVersioning field git.commit.date
Fillout a template
pyVersioning fillout versioning.c.template versioning.c
Write all collected data as YAML
pyVersioning yaml
Write all collected data as JSON
pyVersioning json