adding script that shows how to get the current version
This commit is contained in:
parent
ae4646aba2
commit
989b7c36f9
12
get_version.py
Normal file
12
get_version.py
Normal file
@ -0,0 +1,12 @@
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
|
||||
def get_version():
|
||||
config = ConfigParser()
|
||||
config.read('.bumpversion.cfg')
|
||||
version = config.get('bumpversion', 'current_version')
|
||||
return version
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print get_version()
|
Loading…
Reference in New Issue
Block a user