diff --git a/setup.py b/setup.py index b32daec..7a97114 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ # To use a consistent encoding from codecs import open from os import path +import runpy here = path.abspath(path.dirname(__file__)) @@ -17,13 +18,15 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() +info = runpy.run_path("quickshear.py") + setup( name='quickshear', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='1.0.1-dev', + version=info['__version__'], description='Quickshear Defacing for Neuroimages', long_description=long_description,