-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_Check_Versions.py
24 lines (19 loc) · 1.17 KB
/
_Check_Versions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##==============================================================#
## SECTION: Imports #
##==============================================================#
from verace import VerChecker
##==============================================================#
## SECTION: Global Definitions #
##==============================================================#
VERCHK = VerChecker("Verace Version String", __file__)
VERCHK.include(r"CHANGELOG.adoc", match="verace-", splits=[("-",1),(" ",0)], updatable=False)
VERCHK.include(r"README.adoc", match="# version found", splits=[(" = ",1)])
VERCHK.include(r"doc\source\conf.py", match="release = ", splits=[("'",1)])
VERCHK.include(r"doc\source\conf.py", match="version = ", splits=[("'",1)])
VERCHK.include(r"lib\setup.py", match="version = ", splits=[('"',1)])
VERCHK.include(r"lib\verace.py", match="__version__ = ", splits=[('"',1)])
##==============================================================#
## SECTION: Main Body #
##==============================================================#
if __name__ == '__main__':
VERCHK.prompt()