Skip to content

Commit e0e08a2

Browse files
authored
Merge pull request #16 from jzuhone/scm
Code changes necessary for SCM versioning
2 parents ce9a1ba + 5a4e251 commit e0e08a2

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.git_archival.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ref-names: $Format:%D$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

psmc_check/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
__version__ = "1.2.0"
1+
import ska_helpers
2+
3+
__version__ = ska_helpers.get_version(__package__)
24

35
from .psmc_check import \
46
calc_model

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
setup(name='psmc_check',
1010
packages=["psmc_check"],
11-
version=__version__,
11+
use_scm_version=True,
12+
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
1213
description='ACIS Thermal Model for 1PDEAAT',
1314
author='John ZuHone',
1415
author_email='jzuhone@gmail.com',

0 commit comments

Comments
 (0)