Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use setuptools_scm for single-source version #9

Merged
merged 2 commits into from
Jan 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 3 additions & 1 deletion pyyaks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function

import ska_helpers


def test(*args, **kwargs):
'''
Expand All @@ -9,4 +11,4 @@ def test(*args, **kwargs):
import testr
return testr.test(*args, **kwargs)

__version__ = '4.4'
__version__ = ska_helpers.get_version(__package__)
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pyyaks

try:
from testr.setup_helper import cmdclass
Expand All @@ -9,7 +8,8 @@
from setuptools import setup
setup(name='pyyaks',
url='http://cxc.harvard.edu/contrib/pyyaks',
version=pyyaks.__version__,
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
description='Pipeline processing toolkit',
author='Tom Aldcroft',
author_email='aldcroft@head.cfa.harvard.edu',
Expand Down