diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 0000000..95cb3ee --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1 @@ +ref-names: $Format:%D$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..00a7b00 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst diff --git a/Ska/Sun.py b/Ska/Sun.py index d88cc64..99d99ba 100755 --- a/Ska/Sun.py +++ b/Ska/Sun.py @@ -8,8 +8,9 @@ from math import cos, sin, acos, atan2, asin, pi, radians, degrees, ceil import numpy as np import Ska.quatutil +import ska_helpers -__version__ = '3.5' +__version__ = ska_helpers.get_version(__package__) # The position() method is a modification of diff --git a/setup.py b/setup.py index 9652af3..9e51656 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,13 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup -from Ska.Sun import __version__ - setup(name='Ska.Sun', author = 'Jean Connelly', description='Sun position calculator', author_email = 'jeanconn@head.cfa.harvard.edu', py_modules = ['Ska.Sun'], - version=__version__, + use_scm_version=True, + setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'], zip_safe=False, packages=['Ska'], package_dir={'Ska' : 'Ska'},