Skip to content

Commit

Permalink
Merge pull request #14 from sot/scm_version
Browse files Browse the repository at this point in the history
Use setuptools_scm for single-source version
  • Loading branch information
jeanconn authored Jan 9, 2020
2 parents 440ca7d + fbb62d0 commit e9914b7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ref-names: $Format:%D$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from setuptools import setup, find_packages

from ska_sync.version import __version__

setup(name='ska_sync',
author='Tom Aldcroft',
description='Synchronize data files for Ska3 runtime environment',
author_email='aldcroft@head.cfa.harvard.edu',
entry_points={'console_scripts': ['ska_sync = ska_sync.main:main']},
version=__version__,
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
license='BSD',
zip_safe=False,
packages=find_packages(),
Expand Down
3 changes: 3 additions & 0 deletions ska_sync/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ska_helpers

__version__ = ska_helpers.get_version(__package__)
1 change: 0 additions & 1 deletion ska_sync/version.py

This file was deleted.

0 comments on commit e9914b7

Please sign in to comment.