-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
48 lines (39 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
import os
import sys
def main():
from setuptools import setup, find_packages
if sys.version_info < (3, 6):
raise SystemError('You need Python >=3.6 or above to use abagen.')
# get package information
ldict = locals()
curr_path = os.path.dirname(__file__)
with open(os.path.join(curr_path, 'afnihelp', 'info.py')) as infofile:
exec(infofile.read(), globals(), ldict)
# get long description from README
with open(os.path.join(curr_path, ldict['LONG_DESCRIPTION'])) as src:
ldict['LONG_DESCRIPTION'] = src.read()
setup(
classifiers=ldict['CLASSIFIERS'],
description=ldict['DESCRIPTION'],
download_url=ldict['DOWNLOAD_URL'],
extras_require=ldict['EXTRAS_REQUIRES'],
install_requires=ldict['INSTALL_REQUIRES'],
license=ldict['LICENSE'],
long_description=ldict['LONG_DESCRIPTION'],
long_description_content_type=ldict['LONG_DESCRIPTION_CONTENT_TYPE'],
maintainer=ldict['MAINTAINER'],
maintainer_email=ldict['EMAIL'],
name=ldict['NAME'],
packages=find_packages(exclude=['abagen/tests']),
package_data=ldict['PACKAGE_DATA'],
tests_require=ldict['TESTS_REQUIRES'],
url=ldict['URL'],
version=ldict['VERSION'],
entry_points={'console_scripts': [
'boutify=afnihelp.cli:boutify',
'descriptify=afnihelp.cli:descriptify'
]},
)
if __name__ == '__main__':
main()