From cc60678f7d86206b5c40cc7ec79c8b3cf47ced4d Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 7 Mar 2017 11:18:02 -0500 Subject: [PATCH] Use __version__ from quickshear.py --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,