forked from nipreps/niworkflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (43 loc) · 1.59 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
49
50
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: oesteban
# @Date: 2015-11-19 16:44:27
# @Last Modified by: oesteban
""" niworkflows setup script """
PACKAGE_NAME = 'niworkflows'
def main():
""" Install entry-point """
from os import path as op
from setuptools import setup, find_packages
import runpy
ldict = runpy.run_path(op.join(op.abspath(op.dirname(__file__)),
'niworkflows', 'info.py'))
setup(
name=PACKAGE_NAME,
version=ldict['__version__'],
description=ldict['__description__'],
long_description=ldict['__longdesc__'],
author=ldict['__author__'],
author_email=ldict['__email__'],
maintainer=ldict['__maintainer__'],
maintainer_email=ldict['__email__'],
license=ldict['__license__'],
url=ldict['URL'],
download_url=ldict['DOWNLOAD_URL'],
classifiers=ldict['CLASSIFIERS'],
packages=find_packages(exclude=['*.tests']),
zip_safe=False,
# Dependencies handling
setup_requires=ldict['SETUP_REQUIRES'],
install_requires=list(set(ldict['REQUIRES'])),
dependency_links=ldict['LINKS_REQUIRES'],
tests_require=ldict['TESTS_REQUIRES'],
extras_require=ldict['EXTRA_REQUIRES'],
# Data
package_data={'niworkflows': ['data/t1-mni_registration*.json',
'nipype/pipeline/engine/report_template.html',
'nipype/external/d3.js']},
include_package_data=True,
)
if __name__ == '__main__':
main()