-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
79 lines (69 loc) · 2.91 KB
/
setup.py
File metadata and controls
79 lines (69 loc) · 2.91 KB
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
#! /usr/bin/env python
"""
based heavily on flexible functionality of nilearn `setup.py`
"""
descr = """A python package for cerebellar neuroimaging."""
import sys
import os
from setuptools import setup, find_packages
_SUITPy_INSTALL_MSG = 'See %s for installation information.' % (
'https://suitpy.readthedocs.io/en/latest/install.html#installation')
REQUIRED_MODULE_METADATA = ['numpy>=1.22.0',
'nibabel>=3.2.1',
'neuroimagingtools>=1.1.1',
'requests>=2',
'scipy>=1.9.0',
'matplotlib>=3.5.0',
'plotly>=5.3.1',
'pandas>=2.0.0',
'joblib>=1.2.0',
'antspyx>=0.6.1',]
def is_installing():
# Allow command-lines such as "python setup.py build install"
install_commands = set(['install', 'develop'])
return install_commands.intersection(set(sys.argv))
# Make sources available using relative paths from this file's directory.
os.chdir(os.path.dirname(os.path.abspath(__file__)))
DESCRIPTION = 'Analysis toolbox for cerebellar fMRI data in Python'
with open('README.rst') as fp:
LONG_DESCRIPTION = fp.read()
DOWNLOAD_URL = 'https://github.com/DiedrichsenLab/SUITPy/archive/refs/tags/v.2.0.0.tar.gz'
VERSION = '2.0.1'
if __name__ == "__main__":
setup(name='SUITPy',
maintainer='Jorn Diedrichsen',
maintainer_email='joern.diedrichsen@googlemail.com',
description=DESCRIPTION,
license='MIT',
url='https://github.com/DiedrichsenLab/SUITPy',
version=VERSION,
download_url=DOWNLOAD_URL,
long_description=LONG_DESCRIPTION,
zip_safe=False, # the package can run out of an .egg file
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
],
packages=find_packages(),
package_data={
'SUITPy': ['surfaces/*.surf.gii',
'surfaces/*.C.scene',
'surfaces/*.shape.gii',
'surfaces/*.txt',
'templates/*.nii.gz',
'parameters/*.pkl'],
},
install_requires=REQUIRED_MODULE_METADATA,
python_requires='>=3.10',
)