2017-02-23 20:39:43 +01:00
|
|
|
from ConfigParser import ConfigParser
|
|
|
|
|
|
|
|
|
|
|
|
def get_version():
|
|
|
|
config = ConfigParser()
|
2018-05-23 21:09:14 +02:00
|
|
|
config.read('./.bumpversion.cfg')
|
2017-02-23 20:39:43 +01:00
|
|
|
version = config.get('bumpversion', 'current_version')
|
|
|
|
return version
|
|
|
|
|
|
|
|
|
2018-05-23 21:09:14 +02:00
|
|
|
def main():
|
|
|
|
print(get_version())
|
|
|
|
|
2017-02-23 20:39:43 +01:00
|
|
|
if __name__ == '__main__':
|
2018-05-23 21:09:14 +02:00
|
|
|
try: main()
|
|
|
|
except: raise
|