Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
added __version__ attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kosack committed May 9, 2017
1 parent 2e41f16 commit 35725e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ctapipe_resources/VERSION.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.2.2'
1 change: 1 addition & 0 deletions ctapipe_resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pkg_resources
from .VERSION import __version__


__all__ = ['resource_filename', 'gamma_test_file']
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from setuptools import setup, find_packages

version = {}
with open("./ctapipe_resources/VERSION.py") as fp:
exec(fp.read(), version)

setup(
name='ctapipe-extra',
version='0.2.1',
version=version['__version__'],
packages=find_packages(),
package_data={'ctapipe_resources': '*'},
)

0 comments on commit 35725e6

Please sign in to comment.