Documentation for version_builder

version_builder

Attributes

Name
version_file
template
output
list values
kwargs
tuple commit_hash
string is_dirty
major
minor
revision
channel
patch
full

Attributes Documentation

variable version_file

version_file;

variable template

template =  Template(fb.read());

variable output

output;

variable values

list values =  [x.strip().split(" ", 1) for x in fb.readlines() if " " in x.strip()];

variable kwargs

kwargs =  dict(values);

variable commit_hash

tuple commit_hash =  (
        kwargs["STABLE_GIT_COMMIT_HASH"]
        if "STABLE_GIT_COMMIT_HASH" in kwargs
        else "unknown"
    );

variable is_dirty

string is_dirty =  "1";

variable major

major =  kwargs["STABLE_GIT_MAJOR"];

variable minor

minor =  kwargs["STABLE_GIT_MINOR"];

variable revision

revision =  kwargs["STABLE_GIT_REVISION"];

variable channel

channel =  kwargs["STABLE_GIT_CHANNEL"];

variable patch

patch =  kwargs["STABLE_GIT_PATCH"];

variable full

full =  kwargs["STABLE_FULL_VERSION"];

Updated on 1 August 2023 at 16:25:10 UTC