diff --git a/chandra_aca/__init__.py b/chandra_aca/__init__.py index 297c3e0..1ebe4b3 100644 --- a/chandra_aca/__init__.py +++ b/chandra_aca/__init__.py @@ -1,7 +1,9 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst from .transform import * # noqa -__version__ = '4.28' +import ska_helpers + +__version__ = ska_helpers.get_version(__package__) def test(*args, **kwargs): diff --git a/setup.py b/setup.py index 3e8fb8a..b81bd21 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,4 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst -from chandra_aca import __version__ - from setuptools import setup try: @@ -12,7 +10,8 @@ author='Jean Connelly, Tom Aldcroft', description='Chandra Aspect Camera Tools', author_email='jconnelly@cfa.harvard.edu', - version=__version__, + use_scm_version=True, + setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'], zip_safe=False, packages=['chandra_aca', 'chandra_aca.tests'], package_data={'chandra_aca.tests': ['data/*.txt', 'data/*.dat',