-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
52 lines (46 loc) · 1.32 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
import re
from pathlib import Path
from setuptools import find_packages, setup
# get version from voxelwise_tutorials/__init__.py
with open('voxelwise_tutorials/__init__.py') as f:
infos = f.readlines()
__version__ = ''
for line in infos:
if "__version__" in line:
match = re.search(r"__version__ = '([^']*)'", line)
__version__ = match.groups()[0]
# read the contents of the README file
this_directory = Path(__file__).parent
long_description = (this_directory / "README.rst").read_text()
requirements = [
"numpy",
"scipy",
"h5py",
"scikit-learn>=0.23",
"matplotlib",
"networkx",
"pydot",
"nltk",
"pycortex>=1.2.4",
"himalaya",
"pymoten",
"datalad",
]
extras_require = {
"docs": ["sphinx", "sphinx_gallery", "numpydoc", "nbformat"],
"github": ["pytest"],
}
if __name__ == "__main__":
setup(
name='voxelwise_tutorials',
maintainer="Tom Dupre la Tour",
maintainer_email="[email protected]",
description="Tools and tutorials for voxelwise modeling",
license='BSD (3-clause)',
version=__version__,
packages=find_packages(),
install_requires=requirements,
extras_require=extras_require,
long_description=long_description,
long_description_content_type='text/x-rst',
)