-
Notifications
You must be signed in to change notification settings - Fork 157
/
setup.py
executable file
·96 lines (88 loc) · 3.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
from setuptools import setup, find_packages
from setuptools.command.install import install
import os.path
import sys
VERSION='2.3.3'
here = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.md')
try:
from m2r import parse_from_file
readme = parse_from_file(readme_file)
except ImportError:
# m2r may not be installed in user environment
with open(readme_file) as f:
readme = f.read()
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
git_tag = os.getenv('GIT_TAG')
if git_tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
git_tag, VERSION
)
sys.exit(info)
setup(
name='ciftify',
version=VERSION,
description='The tools of the Human Connectome Project (HCP) '\
'adapted for working with non-HCP datasets',
long_description=readme,
url='https://github.com/edickie/ciftify',
author='Erin W.E. Dickie',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3'],
keywords='PINT neuroimaging fMRI cifti gifti nifti HCP',
packages=find_packages(exclude=['tests']),
data_files=[('', ['LICENSE', 'README.md'])],
entry_points={
'console_scripts': [
'cifti_vis_fmri=ciftify.bin.cifti_vis_fmri:main',
'cifti_vis_PINT=ciftify.bin.cifti_vis_PINT:main',
'cifti_vis_recon_all=ciftify.bin.cifti_vis_recon_all:main',
'cifti_vis_map=ciftify.bin.cifti_vis_map:main',
'ciftify_groupmask=ciftify.bin.ciftify_groupmask:main',
'ciftify_meants=ciftify.bin.ciftify_meants:main',
'ciftify_peaktable=ciftify.bin.ciftify_statclust_report:main',
'ciftify_dlabel_report=ciftify.bin.ciftify_dlabel_report:main',
'ciftify_PINT_vertices=ciftify.bin.ciftify_PINT_vertices:main',
'ciftify_clean_img=ciftify.bin.ciftify_clean_img:main',
'ciftify_postPINT1_concat=ciftify.bin.ciftify_postPINT1_concat:main',
'ciftify_postPINT2_sub2sub=ciftify.bin.ciftify_postPINT2_sub2sub:main',
'ciftify_recon_all=ciftify.bin.ciftify_recon_all:main',
'ciftify_surface_rois=ciftify.bin.ciftify_surface_rois:main',
'ciftify_vol_result=ciftify.bin.ciftify_vol_result:main',
'ciftify_seed_corr=ciftify.bin.ciftify_seed_corr:main',
'ciftify_subject_fmri=ciftify.bin.ciftify_subject_fmri:main',
'ciftify_falff=ciftify.bin.ciftify_falff:main',
'ciftify_dlabel_to_vol=ciftify.bin.ciftify_dlabel_to_vol:main',
'ciftify_statclust_report=ciftify.bin.ciftify_statclust_report:main',
'extract_nuisance_regressors=ciftify.bin.extract_nuisance_regressors:main'
],
},
scripts=['ciftify/bin/filter_hcp.sh','ciftify/bin/cifti_vis_RSN'],
install_requires=[
'docopt',
'matplotlib',
'nibabel',
'numpy',
'pandas',
'PyYaml',
'seaborn',
'scipy',
'pillow',
'nilearn',
'scikit-learn',
'pybids>=0.7.0'],
include_package_data=True,
cmdclass={
'verify': VerifyVersionCommand,
}
)