forked from holoviz/hvplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
194 lines (171 loc) · 5.05 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
import json
import os
import sys
import shutil
from setuptools import setup, find_packages
import pyct.build
def get_setup_version(reponame):
"""
Helper to get the current version from either git describe or the
.version file (if available).
"""
basepath = os.path.split(__file__)[0]
version_file_path = os.path.join(basepath, reponame, '.version')
try:
from param import version
except:
version = None
if version is not None:
return version.Version.setup_version(basepath, reponame, archive_commit="$Format:%h$")
else:
print("WARNING: param>=1.6.0 unavailable. If you are installing a package, this warning can safely be ignored. If you are creating a package or otherwise operating in a git repository, you should install param>=1.6.0.")
return json.load(open(version_file_path))['version_string']
########## dependencies ##########
install_requires = [
'bokeh >=1.0.0',
'colorcet >=2',
'holoviews >=1.11.0',
'pandas',
'numpy >=1.15',
'packaging',
'panel >=0.11.0',
'param >=1.12.0,<3.0',
]
extras_require = {}
# Tests packages required to run the examples tests
extras_require['tests_nb'] = [
'pytest-xdist',
'nbval',
]
# Test requirements
extras_require['tests_core'] = [
'codecov',
'flake8',
'pre-commit',
'parameterized',
'pytest',
'pytest-cov',
'matplotlib',
'plotly',
'xarray',
'pooch',
'scipy',
'ipywidgets',
'dask',
]
# Optional tests dependencies, i.e. one should be able
# to run and pass the test suite without installing any
# of those.
extras_require['tests'] = extras_require['tests_core'] + [
'polars',
'fugue',
'ibis-framework', # ibis-duckdb on conda
]
extras_require['geo'] = [
'cartopy',
'fiona',
'geopandas',
'geoviews >=1.9.0',
'pyproj',
'rasterio',
'rioxarray',
'spatialpandas >=0.4.3',
]
# graphviz is difficult to install with pip, ok with conda.
extras_require['graphviz'] = [
'pygraphviz',
]
# Dependencies required to run the notebooks
extras_require['examples'] = [
'xarray >=0.18.2',
'networkx >=2.6.3',
'streamz >=0.3.0',
'intake >=0.6.5,<2.0.0',
'intake-parquet >=0.2.3',
'intake-xarray >=0.5.0',
'dask >=2021.3.0',
'notebook >=5.4',
's3fs >=2022.1.0',
'scipy >=1.5.3',
'pillow >=8.2.0',
'selenium >=3.141.0',
'scikit-image >=0.17.2',
'pooch >=1.6.0',
'matplotlib',
'plotly',
'ipywidgets',
'numba >=0.51.0',
'datashader >=0.6.5',
'polars',
'fugue',
'ibis-framework[duckdb]', # ibis-duckdb on conda
]
# Run the example tests by installing examples_tests together with tests
extras_require["examples_tests"] = extras_require["examples"] + extras_require['tests_nb']
# Additional packages required to build the docs
extras_require['doc'] = extras_require['examples'] + [
'nbsite >=0.8.4',
'sphinxext-rediraffe',
]
extras_require['hvdev'] = [
'panel >=0.0.1a1',
'param >=0.0.1a1',
'holoviews >=0.0.1a1',
'datashader >=0.0.1a1',
'colorcet >=0.0.1a1',
'pyviz_comms >=0.0.1a1',
]
extras_require['hvdev_geo'] = [
'geoviews >=0.0.1a1',
]
# until pyproject.toml/equivalent is widely supported (setup_requires
# doesn't work well with pip)
extras_require['build'] = [
'param >=1.7.0',
'pyct >=0.4.4',
'setuptools >=30.3.0' # should make this pip now
]
extras_require['all'] = sorted(set(sum(extras_require.values(), [])))
########## metadata for setuptools ##########
setup_args = dict(
name='hvplot',
version=get_setup_version("hvplot"),
description='A high-level plotting API for the PyData ecosystem built on HoloViews.',
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
author= "Philipp Rudiger",
author_email= "[email protected]",
maintainer="HoloViz developers",
maintainer_email="[email protected]",
packages=find_packages(),
include_package_data=True,
platforms=['Windows', 'Mac OS X', 'Linux'],
license='BSD',
url='https://hvplot.holoviz.org',
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries"],
python_requires=">=3.8",
install_requires=install_requires,
extras_require=extras_require,
tests_require=extras_require['tests'],
entry_points={
'console_scripts': [],
'pandas_plotting_backends': [
'holoviews = hvplot:plotting',
],
},
)
if __name__ == '__main__':
setup(**setup_args)