Skip to content

Commit

Permalink
implemented __version__ in version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkooij committed Feb 9, 2015
1 parent 0bd09e4 commit c902c15
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions sapphire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
commonly used functions such as a progressbar
"""

# version number in version.py
from .version import __version__


from . import analysis
from . import api
from . import clusters
Expand Down
3 changes: 3 additions & 0 deletions sapphire/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# define __version__ so it can be imported in __init__.py
# and read in setup.py
__version__ = '0.9.30.version_info'
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from setuptools import setup, find_packages

#read __version from sapphire/version.py
exec(open('sapphire/version.py').read())

setup(name='hisparc-sapphire',
version='0.9.30',
version=__version__, # definined in saphhire/version.py
packages=find_packages(),
url='http://github.com/hisparc/sapphire/',
bugtrack_url='http://github.com/HiSPARC/sapphire/issues',
Expand Down

0 comments on commit c902c15

Please sign in to comment.