switched to module and cli install

This commit is contained in:
Derek DeJonghe
2018-05-23 15:09:14 -04:00
parent 611cfeafdf
commit 89689f7a03
7 changed files with 181 additions and 21 deletions

16
semver/get_version.py Normal file
View File

@ -0,0 +1,16 @@
from ConfigParser import ConfigParser
def get_version():
config = ConfigParser()
config.read('./.bumpversion.cfg')
version = config.get('bumpversion', 'current_version')
return version
def main():
print(get_version())
if __name__ == '__main__':
try: main()
except: raise