pyk.kbuild.utils module¶
- final class KVersion(major: 'int', minor: 'int', patch: 'int', git: 'Git | None')[source]¶
Bases:
object
- final class Git(ahead: 'int', rev: 'str', dirty: 'bool')[source]¶
Bases:
object
- ahead: int¶
- dirty: bool¶
- rev: str¶
- PATTERN: ClassVar = re.compile('v(?P<major>[1-9]+)\\.(?P<minor>[0-9]+)\\.(?P<patch>[0-9]+)(?P<git>-(?P<ahead>[0-9]+)-g(?P<rev>[0-9a-f]{10})(?P<dirty>-dirty)?)?')¶
- major: int¶
- minor: int¶
- patch: int¶
- property text: str¶