-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7562cea
commit 44db530
Showing
4 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]', | ||
|
@@ -34,6 +37,6 @@ | |
}, | ||
entry_points = { | ||
'console_scripts': | ||
['cloudbrain = cloudbrain.run'] | ||
['cloudbrain=cloudbrain.run:main'] | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .version import __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |