diff --git a/ois.py b/ois.py index 517289e..473718c 100644 --- a/ois.py +++ b/ois.py @@ -26,7 +26,7 @@ University of Texas at San Antonio """ -__version__ = '0.1.2' +__version__ = '0.1.3' import numpy as np from scipy import signal diff --git a/setup.py b/setup.py index ac1511c..8daaca7 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,18 @@ from setuptools import setup, Extension import numpy +# Get the version from astroalign file itself (not imported) +with open('ois.py', 'r') as f: + for line in f: + if line.startswith('__version__'): + _, _, ois_version = line.replace("'", '').split() + break + varconv = Extension('varconv', sources=['src/varconv.c'], extra_compile_args=["-std=c99"]) setup(name='ois', - version='0.1.2', + version=ois_version, description='Optimal Image Subtraction', author='Martin Beroiz', author_email='martinberoiz@gmail.com',