-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
205 lines (189 loc) · 6.84 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
[build-system]
requires = ["setuptools>=62.6", "versioneer[toml]==0.29"]
build-backend = "setuptools.build_meta"
[project]
name = "dask"
description = "Parallel PyData with Task Scheduling"
maintainers = [{name = "Matthew Rocklin", email = "[email protected]"}]
license = {text = "BSD-3-Clause"}
keywords = ["task-scheduling parallel numpy pandas pydata"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
]
readme = "README.rst"
urls = {Homepage = "https://github.com/dask/dask/"}
requires-python = ">=3.9"
dependencies = [
# NOTE: These are tested in `continuous_integration/test_imports.sh` If
# you modify these, make sure to change the corresponding line there.
"click >= 8.1",
"cloudpickle >= 1.5.0",
"fsspec >= 2021.09.0",
"packaging >= 20.0",
"partd >= 1.2.0",
"pyyaml >= 5.3.1",
"toolz >= 0.10.0",
# importlib.metadata has the following bugs fixed in 3.10.9 and 3.11.1
# https://github.com/python/cpython/issues/99130
# https://github.com/python/cpython/issues/98706
# TODO: when Python 3.12 is support is added this could be a
# conditional dependency
"importlib_metadata >= 4.13.0",
]
dynamic = ["version"]
[project.optional-dependencies]
# NOTE: These are tested in `continuous_integration/test_imports.sh` If
# you modify these, make sure to change the corresponding line there.
array = ["numpy >= 1.21"]
# keeping for backwards compatibility
bag = []
dataframe = [
"dask[array]",
"pandas >= 1.3",
]
distributed = ["distributed == 2024.2.0"]
diagnostics = [
"bokeh >= 2.4.2",
"jinja2 >= 2.10.3",
]
# keeping for backwards compatibility
delayed = []
complete = [
"dask[array,dataframe,distributed,diagnostics]",
"pyarrow >= 7.0",
# Can be removed once minimal pyarrow version is >14.0.1
# https://lists.apache.org/thread/yhy7tdfjf9hrl9vfrtzo8p2cyjq87v7n
"pyarrow_hotfix",
"lz4 >= 4.3.2",
]
test = [
"pandas[test]",
"pytest",
"pytest-cov",
"pytest-rerunfailures",
"pytest-timeout",
"pytest-xdist",
"pre-commit",
]
[project.entry-points."dask.array.backends"]
cupy = "dask.array.cupy_entry_point:CupyBackendEntrypoint"
[project.scripts]
dask = "dask.__main__:main"
[tool.setuptools]
include-package-data = true
zip-safe = false
license-files = [
"LICENSE.txt",
"dask/array/NUMPY_LICENSE.txt",
]
[tool.setuptools.packages]
find = {namespaces = false}
[tool.setuptools.package-data]
dask = ["py.typed"]
[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DISTRIBUTED", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
skip_gitignore = true
force_to_top = ["true"]
default_section = "THIRDPARTY"
known_first_party = ["dask"]
known_distributed = ["distributed"]
add_imports = ["from __future__ import annotations"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "dask/_version.py"
versionfile_build = "dask/_version.py"
tag_prefix = ""
parentdir_prefix = "dask-"
[tool.pytest.ini_options]
markers = [
"network: Test requires an internet connection",
"slow: Skipped unless --runslow passed",
"gpu: marks tests we want to run on GPUs",
"skip_with_pyarrow_strings: Tests that should be skipped when pyarrow string conversion is turned on",
"xfail_with_pyarrow_strings: Tests that should be xfailed when pyarrow string conversion is turned on",
]
addopts = "-v -rsxfE --durations=10 --color=yes --cov-config=pyproject.toml"
filterwarnings = [
# From Cython-1753
"ignore:can't resolve:ImportWarning",
"error:::dask[.*]",
"error:::pandas[.*]",
"error:::numpy[.*]",
"error:::distributed[.*]",
# From https://github.com/numpy/numpy/issues/20225
'ignore:The distutils\.sysconfig module is deprecated, use sysconfig instead:DeprecationWarning:numpy',
# With no network access, distributed raises a warning when detecting local IP address
"ignore:Couldn't detect a suitable IP address:RuntimeWarning:distributed",
# Ignore FutureWarning for change in group_keys behavior: no changes required on the dask side.
# https://pandas.pydata.org/docs/dev/whatsnew/v1.5.0.html#using-group-keys-with-transformers-in-groupby-apply
"ignore:Not prepending group keys:FutureWarning",
"ignore:.*:dask.tests.warning_aliases.RemovedIn20Warning",
"ignore:When grouping with a length-1 list-like, you will need to pass a length-1 tuple to get_group in a future version of pandas:FutureWarning",
'ignore:Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead:DeprecationWarning', # https://github.com/apache/arrow/issues/35081
'ignore:The previous implementation of stack is deprecated and will be removed in a future version of pandas\.:FutureWarning',
'ignore:The current Dask DataFrame implementation is deprecated.*:DeprecationWarning',
"ignore:Minimal version of pyarrow will soon be increased to 14.0.1",
"ignore:You are using pyarrow version .* pyarrow-hotfix",
]
xfail_strict = true
# pytest-timeout settings
# 'thread' kills off the whole test suite. 'signal' only kills the offending test.
# However, 'signal' doesn't work on Windows (due to lack of SIGALRM).
# The CI script modifies this config file on the fly on Linux and MacOS.
timeout_method = "thread"
# This should not be reduced; Windows CI has been observed to be occasionally
# exceptionally slow.
timeout = 300
[tool.mypy]
# Silence errors about Python 3.9-style delayed type annotations on Python 3.8
python_version = "3.9"
# See https://github.com/python/mypy/issues/12286 for automatic multi-platform support
platform = "linux"
# platform = win32
# platform = darwin
plugins = ["numpy.typing.mypy_plugin"]
allow_untyped_decorators = false
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
[[tool.mypy.overrides]]
# Recent or recently overhauled modules featuring stricter validation
module = [
"dask.order",
]
allow_untyped_defs = false
[tool.codespell]
ignore-words-list = "coo,nd,medias"
skip = "docs/source/changelog.rst"
[tool.coverage.run]
omit = [
"*/test_*.py",
"dask/_version.py",
]
source = ["dask"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]
ignore_errors = true