-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
pyproject.toml
237 lines (222 loc) · 6.25 KB
/
pyproject.toml
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
[build-system]
requires = [
"setuptools >=30.3.0",
"setuptools_scm >=6",
]
build-backend = "setuptools.build_meta"
[project]
name = "hvplot"
dynamic = ["version"]
description = "A high-level plotting API for the PyData ecosystem built on HoloViews."
readme = "README.md"
license = { text = "BSD" }
requires-python = ">=3.9"
authors = [
{ name = "Philipp Rudiger", email = "[email protected]" },
]
maintainers = [
{ name = "HoloViz developers", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"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",
]
dependencies = [
"bokeh >=3.1",
"colorcet >=2",
"holoviews >=1.19.0",
"numpy >=1.21",
"packaging",
"pandas >=1.3",
"panel >=1.0",
"param >=1.12.0,<3.0",
]
[project.entry-points."pandas_plotting_backends"]
holoviews = "hvplot:plotting"
[project.urls]
Homepage = "https://hvplot.holoviz.org"
Source = "http://github.com/holoviz/hvplot"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
tests-core = [
"dask[dataframe]",
"ipywidgets",
"matplotlib",
"parameterized",
"plotly",
"pooch",
"pre-commit",
"pytest-cov",
"pytest",
"ruff",
"scipy",
"xarray",
"bokeh_sampledata; python_version >= '3.10'",
"psutil",
]
# Optional tests dependencies, i.e. one should be able
# to run and pass the test suite without installing any
# of those.
tests = [
"hvplot[tests-core]",
"fugue[sql]",
"hvplot[fugue-sql]",
# end fugue
"ibis-framework[duckdb]", # ibis-duckdb on conda
"polars",
"dask",
"spatialpandas",
"duckdb",
]
# In 0.9 fugue added the sql extra but didn't add a fugue-sql package, removing the sql deps from fugue
# Adding them manually here
fugue-sql = [
"qpd >=0.4.4",
"fugue-sql-antlr >=0.2.0",
"sqlglot",
"jinja2",
]
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.
graphviz = [
"pygraphviz",
]
# Dependencies required to run the notebooks
examples = [
"dask[dataframe] >=2021.3.0",
"datashader >=0.6.5",
"duckdb",
"fugue[sql]",
"hvplot[fugue-sql]",
"ibis-framework[duckdb]", # ibis-duckdb on conda
"intake-parquet >=0.2.3",
"intake-xarray >=0.5.0",
"intake >=0.6.5,<2.0.0",
"ipywidgets",
"networkx >=2.6.3",
"matplotlib",
"notebook >=5.4",
"numba >=0.51.0",
"pillow >=8.2.0",
"plotly",
"polars",
"pooch >=1.6.0",
"s3fs >=2022.1.0",
"scikit-image >=0.17.2",
"scipy >=1.5.3",
"selenium >=3.141.0",
"streamz >=0.3.0",
"xarray >=0.18.2",
"xyzservices >=2022.9.0",
"geodatasets >=2023.12.0",
"bokeh_sampledata; python_version >= '3.10'",
]
tests-nb = [
"pytest-xdist",
"nbval",
]
# Run the example tests by installing examples_tests together with tests
examples-tests = [
"hvplot[examples]",
"hvplot[tests-nb]",
]
# Additional packages required to build the docs
doc = [
"hvplot[examples]",
"nbsite >=0.8.6",
"sphinxext-rediraffe",
]
# Trick to let pip know we want to install dev dependencies
hvdev = [
"colorcet >=0.0.1a1",
"datashader >=0.0.1a1",
"holoviews >=0.0.1a1",
"panel >=0.0.1a1",
"param >=0.0.1a1",
"pyviz_comms >=0.0.1a1",
]
hvdev-geo = [
"geoviews >=0.0.1a1",
]
dev-extras = [
# To keep __version__ up-to-date in editable installs
"setuptools_scm >= 6"
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["hvplot"]
[tool.setuptools_scm]
version_file = "hvplot/_version.py"
[tool.pytest.ini_options]
addopts = "-v --pyargs"
norecursedirs = "*.egg dist build _build jupyter_execute .*"
# The test suite used to be run with nosetests which collected
# by default files like `testgeo.py` while pytest's default is
# to collect files like `test_geo.py`. This setting allows
# to avoid renaming all the test files.
python_files = "test*.py"
filterwarnings = [
# 2023-09: See https://github.com/matplotlib/matplotlib/issues/25244
"ignore:Deprecated call to `pkg_resources.+?'mpl_toolkits:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.+?'sphinxcontrib:DeprecationWarning",
# 2023-09: See https://github.com/ibis-project/ibis/pull/6973
"ignore:.+? is deprecated and will be removed in a future version:FutureWarning:ibis.formats.pandas",
# 2023-09: See https://github.com/Unidata/MetPy/pull/3117
"ignore: 'xdrlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:metpy.io.nexrad",
# 2023-09: See https://github.com/python-streamz/streamz/issues/460
"ignore: pkg_resources is deprecated as an API:DeprecationWarning:streamz.plugins",
]
[tool.codespell]
ignore-words-list = "ser,assertIn"
skip = "doc/generate_modules.py"
write-changes = true
[tool.ruff]
line-length = 99
[tool.ruff.lint]
extend-select = [
"UP",
]
[tool.ruff.format]
quote-style = "single"
[tool.pyproject2conda.dependencies]
geoviews = { skip = true, packages = "geoviews-core >=1.9.0" }
# It should be ibis-framework[duckdb], but it works anyway.
ibis-framework = { skip = true, packages = "ibis-duckdb" }
[tool.pyproject2conda.envs."tests"]
channels = ["nodefaults", "pyviz/label/dev", "conda-forge"]
python = ["3.9", "3.10", "3.11", "3.12"]
extras = ["tests", "examples-tests", "geo", "graphviz", "dev-extras"]
name = "hvplottests"
# reqs = ["-e .."] # Doesn't work
[tool.pyproject2conda.envs."docs"]
channels = [
"nodefaults",
# To get dev HoloViews, not always needed.
"pyviz/label/dev",
# To get dev nbsite, not always needed.
"pyviz/label/tooling_dev",
"conda-forge"
]
python = ["3.11"]
extras = ["doc", "examples", "geo", "graphviz", "dev-extras"]
name = "hvplotdocs"