adding script that shows how to get the current version

This commit is contained in:
Michael Gimbel 2017-02-23 19:39:43 +00:00
parent ae4646aba2
commit 989b7c36f9

12
get_version.py Normal file
View 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()