forked from holoviz/datashader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
111 lines (97 loc) · 2.84 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
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',
]
examples = [
'distributed', # dask
'holoviews >=1.10.0',
'matplotlib',
'pandas >=0.24.1',
]
extras_require = {
'tests': [
'pytest >=3.9.3',
'pytest-benchmark >=3.0.0',
'pytest-cov',
'codecov',
'flake8',
'nbsmoke ==0.2.8', # test pinning to allow hv.extension
'fastparquet >=0.1.6', # optional dependency
'pandas >=0.24.1', # optional ragged array support
],
'examples': examples,
'examples_extra': examples + [
'networkx >=2.0',
'streamz >=0.2.0',
### conda only below here
'cartopy',
'graphviz',
'python-graphviz',
'fastparquet',
'geoviews',
'python-snappy',
'rasterio',
'snappy',
'statsmodels'
]
}
extras_require['doc'] = extras_require['examples_extra'] + [
'nbsite >=0.5.2',
'sphinx_holoviz_theme',
'tornado <6.0',
'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)