diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 0000000..082d6c2 --- /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 0000000..82bf71c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst \ No newline at end of file diff --git a/psmc_check/__init__.py b/psmc_check/__init__.py index 7328814..18df285 100644 --- a/psmc_check/__init__.py +++ b/psmc_check/__init__.py @@ -1,4 +1,6 @@ -__version__ = "1.2.0" +import ska_helpers + +__version__ = ska_helpers.get_version(__package__) from .psmc_check import \ calc_model diff --git a/setup.py b/setup.py index f84217a..76d7de8 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,8 @@ setup(name='psmc_check', packages=["psmc_check"], - version=__version__, + use_scm_version=True, + setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'], description='ACIS Thermal Model for 1PDEAAT', author='John ZuHone', author_email='jzuhone@gmail.com',