diff --git a/setup.py b/setup.py index dcdfc24..536a339 100644 --- a/setup.py +++ b/setup.py @@ -10,10 +10,19 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() +# Default version +__version__ = '1.1.1' + +# Get the correct version from file +try: + exec(open('version.py').read()) +except: + pass + setup( name='codacy-coverage', - version='1.1.0', + version=__version__, description='Codacy coverage reporter for Python', long_description=long_description, diff --git a/version.py b/version.py new file mode 100644 index 0000000..b3ddbc4 --- /dev/null +++ b/version.py @@ -0,0 +1 @@ +__version__ = '1.1.1'