forked from miykael/atlasreader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (32 loc) · 1.1 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
35
36
37
38
import os
def main():
from setuptools import setup, find_packages
# from nipype setup.py file
ldict = locals()
curr_path = os.path.dirname(__file__)
ver_file = os.path.join(curr_path, 'atlasreader', 'info.py')
with open(ver_file) as infofile:
exec(infofile.read(), globals(), ldict)
setup(
name=ldict['NAME'],
version=ldict['VERSION'],
description=ldict['DESCRIPTION'],
long_description=ldict['LONG_DESCRIPTION'],
maintainer=ldict['MAINTAINER'],
maintainer_email=ldict['EMAIL'],
url=ldict['URL'],
download_url=ldict['DOWNLOAD_URL'],
install_requires=ldict['INSTALL_REQUIRES'],
packages=find_packages(exclude=['atlasreader/tests']),
package_data=ldict['PACKAGE_DATA'],
tests_require=ldict['TESTS_REQUIRE'],
license=ldict['LICENSE'],
entry_points={
'console_scripts': [
'atlasreader=atlasreader.cli:atlasreader_main',
'queryatlas=atlasreader.cli:queryatlas_main'
]
}
)
if __name__ == '__main__':
main()