forked from holoviz/datashader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
131 lines (118 loc) · 3.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import os,sys
import shutil
from setuptools import find_packages, setup
# build dependencies
import param
import pyct.build
########## dependencies ##########
install_requires = [
# `conda install dask[complete]` happily gives you dask...which is
# happily like pip's dask[complete]. (conda's dask-core is more
# like pip's dask.)
'dask[complete] >=0.18.0',
'toolz >=0.7.4', # ? for some dask issue (dasks does only >=0.7.3)
'datashape >=0.5.1',
'numba >=0.37.0',
'numpy >=1.7',
'pandas >=0.20.3',
'pillow >=3.1.1',
'xarray >=0.9.6',
'colorcet >=0.9.0',
'param >=1.6.0',
'pyct[cmd]',
'scikit-image',
'bokeh',
'scipy',
'testpath<0.4' # temporary due to pip issue?
]
extras_require = {
'tests': [
'pytest ==3.9.3',
'pytest-benchmark ==3.0.0',
'flake8',
'nbsmoke >=0.2.6',
'fastparquet >=0.1.6', # optional dependency
'pandas >=0.24.1', # optional ragged array support
'nbconvert ==5.4.1',
],
'examples': [],
'examples_extra':[
'attrs',
'beautifulsoup4',
'bokeh',
#'cachey', # TODO: investigate (no conda package
'colorcet',
'dill',
'distributed', # dask
'fastparquet >=0.2.1',
'holoviews >=1.10.0',
'hvplot >=0.4.0',
'intake >=0.4.1',
'intake-parquet',
'jupyter',
'jupyter_dashboards',
'matplotlib',
'networkx >=2.0',
'pandas >=0.24.1',
'panel ==0.4.0',
'paramnb',
'requests',
'tblib',
'xarray',
'pyyaml <5.1',
'streamz ==0.2.0',
'webargs',
### conda only below here
'cartopy',
'graphviz',
'python-graphviz',
'fastparquet',
'geoviews',
'iris',
'krb5',
'pyproj',
'pytables',
'python-snappy',
'rasterio',
'snappy',
'shapely',
'statsmodels'
]
}
extras_require['doc'] = extras_require['examples_extra'] + [
'nbsite >=0.5.2',
'sphinx_ioam_theme',
'numpydoc'
]
extras_require['all'] = sorted(set(sum(extras_require.values(), [])))
########## metadata for setuptools ##########
setup_args = dict(
name='datashader',
version=param.version.get_setup_version(__file__,"datashader",archive_commit="$Format:%h$"),
description='Data visualization toolchain based on aggregating into a grid',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url='http://datashader.org',
maintainer='Datashader developers',
maintainer_email='[email protected]',
python_requires=">=2.7",
install_requires=install_requires,
extras_require=extras_require,
tests_require=extras_require['tests'],
license='New BSD',
packages=find_packages(),
include_package_data = True,
entry_points={
'console_scripts': [
'datashader = datashader.__main__:main'
]
},
)
if __name__ == '__main__':
example_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'datashader','examples')
if 'develop' not in sys.argv:
pyct.build.examples(example_path, __file__, force=True)
setup(**setup_args)
if os.path.isdir(example_path):
shutil.rmtree(example_path)