-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsetup.py
60 lines (53 loc) · 1.8 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from setuptools import setup, find_packages
BASE_REQUIREMENTS = ["numpy==1.19.5", "scipy", "trimesh", "nibabel==2.1", "networkx"]
TEST_REQUIREMENTS = ["flake8", "autopep8", "pytest", "pytest-cov", "coveralls"]
DOC_REQUIREMENTS = ['sphinx',
'sphinx-gallery',
'sphinx_bootstrap_theme',
'numpydoc',
'six',
'python-dateutil',
'sphinxcontrib-fulltoc',
'matplotlib']
DIST = ["tvb-gdist"]
TRIMESH_FULL = ["rtree", "shapely"]
# grab version
verstr = "unknown"
try:
verstrline = open('slam/_version.py', "rt").read()
except EnvironmentError:
pass # Okay, there is no version file.
else:
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("unable to find version in yourpackage/_version.py")
setup(
name="brain-slam",
version=verstr,
packages=find_packages(),
author="Guillaume Auzias",
description="Surface anaLysis And Modeling",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url="https://github.com/brain-slam/slam",
license="MIT",
python_requires=">=3.6", # enforce Python 3.6 as minimum
install_requires=BASE_REQUIREMENTS,
extras_require={
"full": DIST + TRIMESH_FULL,
"dev": DIST + TEST_REQUIREMENTS + TRIMESH_FULL,
"doc": DIST + TEST_REQUIREMENTS + TRIMESH_FULL + DOC_REQUIREMENTS,
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
],
)