-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path_Check_Versions.py
24 lines (19 loc) · 1.15 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 #
##==============================================================#
import verace
##==============================================================#
## SECTION: Global Definitions #
##==============================================================#
VERCHK = verace.VerChecker("Qprompt", __file__)
VERCHK.include(r"lib\setup.py", match="version = ", splits=[('"',1)])
VERCHK.include(r"lib\qprompt.py", match="__version__ = ", splits=[('"',1)])
VERCHK.include(r"doc\source\conf.py", match="version = ", splits=[("'",1)])
VERCHK.include(r"doc\source\conf.py", match="release = ", splits=[("'",1)])
VERCHK.include(r"doc\source\conf.py", match="html_title = ", splits=[("v",1)])
VERCHK.include(r"CHANGELOG.adoc", match="qprompt-", splits=[("-",1),(" ",0)], updatable=False)
##==============================================================#
## SECTION: Main Body #
##==============================================================#
if __name__ == '__main__':
VERCHK.prompt()