diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 00000000..082d6c25 --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1 @@ +ref-names: $Format:%D$ \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..82bf71c1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst \ No newline at end of file diff --git a/acis_thermal_check/__init__.py b/acis_thermal_check/__init__.py index b85b2558..e1df3936 100644 --- a/acis_thermal_check/__init__.py +++ b/acis_thermal_check/__init__.py @@ -1,4 +1,6 @@ -__version__ = "2.9.0" +import ska_helpers + +__version__ = ska_helpers.get_version(__package__) from acis_thermal_check.main import \ ACISThermalCheck, \ @@ -7,6 +9,7 @@ calc_off_nom_rolls, get_options, \ get_acis_limits, mylog + def test(*args, **kwargs): ''' Run py.test unit tests. diff --git a/setup.py b/setup.py index 6e6e4360..6f38d571 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,8 @@ setup(name='acis_thermal_check', packages=["acis_thermal_check"], - version=__version__, + use_scm_version=True, + setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'], description='ACIS Thermal Model Library', author='John ZuHone', author_email='john.zuhone@cfa.harvard.edu',