Skip to content

Commit

Permalink
ADD: __version__ + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marionleborgne committed Sep 6, 2017
1 parent 7562cea commit 44db530
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ visualization.

.. figure:: https://raw.githubusercontent.com/cloudbrain/cloudbrain/master/docs/images/features.png
:alt: features
:width: 600 px
:width: 100 %

Using CloudBrain
================
Expand Down
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
from setuptools import setup, find_packages
from pip.download import PipSession
from pip.req import parse_requirements
import os

VERSION = '0.0.10'
# Get __version__ and set other constants.
exec(open(os.path.join('src', 'cloudbrain',
'version.py')).read())
URL = 'https://github.com/cloudbrain/cloudbrain'
DOWNLOAD_URL='%s/archive/%s.tar.gz' % (URL, VERSION)
DOWNLOAD_URL='%s/archive/%s.tar.gz' % (URL, __version__)
DESCRIPTION = open('README.rst').read()

# Requirements
install_reqs = parse_requirements('requirements.txt', session=PipSession())
reqs = [str(ir.req) for ir in install_reqs]

setup(name='cloudbrain',
version=VERSION,
version=__version__,
description='Platform for wearable data analysis.',
author='Marion Le Borgne',
author_email='[email protected]',
Expand All @@ -34,6 +37,6 @@
},
entry_points = {
'console_scripts':
['cloudbrain = cloudbrain.run']
['cloudbrain=cloudbrain.run:main']
}
)
1 change: 1 addition & 0 deletions src/cloudbrain/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .version import __version__
7 changes: 7 additions & 0 deletions src/cloudbrain/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
#
# Source: https://stackoverflow.com/a/16084844
__version__ = '0.0.11'

0 comments on commit 44db530

Please sign in to comment.