forked from aestrivex/bctpy
-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
34 lines (30 loc) · 1.22 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
from setuptools import setup, find_packages
# For Python 3: use a locals dictionary
# http://stackoverflow.com/a/1463370/6820620
ldict = locals()
# Get version and release info, which is all stored in brainconn/version.py
ver_file = os.path.join('brainconn', 'version.py')
with open(ver_file) as infofile:
pythoncode = [line for line in infofile.readlines() if not
line.strip().startswith('#')]
exec('\n'.join(pythoncode), globals(), ldict)
opts = dict(name=ldict['NAME'],
maintainer=ldict['MAINTAINER'],
description=ldict['DESCRIPTION'],
long_description=ldict['LONG_DESCRIPTION'],
url=ldict['URL'],
download_url=ldict['DOWNLOAD_URL'],
license=ldict['LICENSE'],
classifiers=ldict['CLASSIFIERS'],
author=ldict['AUTHOR'],
author_email=ldict['AUTHOR_EMAIL'],
platforms=ldict['PLATFORMS'],
version=ldict['VERSION'],
packages=find_packages(exclude=("tests",)),
install_requires=ldict['REQUIRES'],
tests_require=ldict['TESTS_REQUIRES'],
extras_require=ldict['EXTRA_REQUIRES'],
)
if __name__ == '__main__':
setup(**opts)