bibliotekar.Version#
- class bibliotekar.Version(date, revision)[source]#
The version of some code.
Uses Calendar Versioning with format
YY.MM.DD.n
Where
nis the revision number and starts at 0 for each day.Example:
"25.09.11.0"Methods
__init__(date, revision)is_same_day_as(other)Return true if self and other refer to the same calendar day.
parse(version)today([revision])Return a new version with today's date.
with_bumped_revision()Return a new version with an incremented revision number.