diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 00000000..95cb3eea --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1 @@ +ref-names: $Format:%D$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..00a7b00c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst diff --git a/proseco/__init__.py b/proseco/__init__.py index 80c193a8..5c26ba6b 100644 --- a/proseco/__init__.py +++ b/proseco/__init__.py @@ -1,4 +1,6 @@ -__version__ = "4.7.1" +import ska_helpers + +__version__ = ska_helpers.get_version(__package__) def get_aca_catalog(*args, **kwargs): diff --git a/setup.py b/setup.py index 3da56b55..eb342fa6 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,3 @@ -from proseco import __version__ - from setuptools import setup try: @@ -11,7 +9,8 @@ author='Tom Aldcroft', description='Probabilistic star evaluation and catalog optimization', author_email='taldcroft@cfa.harvard.edu', - version=__version__, + use_scm_version=True, + setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'], zip_safe=False, packages=['proseco', 'proseco.tests'], package_data={'proseco': ['index_template*.html']},