Added libbe.version, wrapping the auto-generated libbe._version.
authorW. Trevor King <wking@drexel.edu>
Tue, 15 Sep 2009 13:32:40 +0000 (09:32 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 15 Sep 2009 13:32:40 +0000 (09:32 -0400)
commit0510a9773d213732892dd6a0a8644a252d95f4b5
treeabfb7d11f4ac7b0725dd48bdb576cd878a4ff8e6
parentbac6ce2bc8b33850479b0dac7d646cdc988e5060
Added libbe.version, wrapping the auto-generated libbe._version.

Two major benefits:

1) Programatic access to the BE version.  Previously the
version-string logic was internal to the commandline interface ./be,
which left the other interfaces hanging.

2) Simple to override auto-generated revision id version with any
string you like (by setting libbe.version._VERSION, if that's the way
you want to run things or the way your packaging system requires.

Note that other modules should never read libbe.version._VERSION,
since it may not be defined.  Instead they should use the output of
libbe.version.version().
be
libbe/version.py [new file with mode: 0644]