Skip to content

Commit

Permalink
Define __version__ in __init__ and read it in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Aug 19, 2015
1 parent 378e707 commit b11ee94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions scot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from . import config

backends = ['backend_builtin', 'backend_sklearn']

# default backend
# TODO: set default backend in config
from . import backend_builtin
Expand All @@ -22,3 +20,6 @@
from . import datatools

__all__ = ['Workspace', 'Connectivity', 'datatools']
__version__ = "0.1.0"

backends = ['backend_builtin', 'backend_sklearn']
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

from setuptools import setup
from codecs import open
from scot import __version__ as ver


with open('VERSION', encoding='utf-8') as version:
ver = version.read().strip()

with open('README.md', encoding='utf-8') as readme:
long_description = readme.read()

Expand Down

0 comments on commit b11ee94

Please sign in to comment.