Debian Codegraph @

pyproject.toml

raw ◀ ▶
4 Debian patches touch this file
1 [build-system]
2 requires = ["setuptools>=62.6", "versioneer[toml]==0.29"]
3 build-backend = "setuptools.build_meta"
4
5 [project]
6 name = "dask"
7 description = "Parallel PyData with Task Scheduling"
8 maintainers = [{name = "Matthew Rocklin", email = "[email protected]"}]
9 license = {text = "BSD-3-Clause"}
10 keywords = ["task-scheduling parallel numpy pandas pydata"]
11 classifiers = [
12 "Development Status :: 5 - Production/Stable",
13 "Intended Audience :: Developers",
14 "Intended Audience :: Science/Research",
15 "License :: OSI Approved :: BSD License",
16 "Operating System :: OS Independent",
17 "Programming Language :: Python",
18 "Programming Language :: Python :: 3",
19 "Programming Language :: Python :: 3 :: Only",
20 "Programming Language :: Python :: 3.10",
21 "Programming Language :: Python :: 3.11",
22 "Programming Language :: Python :: 3.12",
23 "Programming Language :: Python :: 3.13",
24 "Topic :: Scientific/Engineering",
25 "Topic :: System :: Distributed Computing",
26 ]
27 readme = "README.rst"
28 urls = {Homepage = "https://github.com/dask/dask/"}
29 requires-python = ">=3.10"
30 dependencies = [
31 # NOTE: These are tested in `continuous_integration/test_imports.sh` If
32 # you modify these, make sure to change the corresponding line there.
33 "click >= 8.1",
34 "cloudpickle >= 3.0.0",
35 "fsspec >= 2021.09.0",
36 "packaging >= 20.0",
37 "partd >= 1.4.0",
38 "pyyaml >= 5.3.1",
39 "toolz >= 0.10.0",
40 # importlib.metadata has the following bugs fixed in 3.10.9 and 3.11.1
41 # https://github.com/python/cpython/issues/99130
42 # https://github.com/python/cpython/issues/98706
43 "importlib_metadata >= 4.13.0; python_version < '3.12' ",
44 ]
45 dynamic = ["version"]
46
47 [project.optional-dependencies]
48 # NOTE: These are tested in `continuous_integration/test_imports.sh` If
49 # you modify these, make sure to change the corresponding line there.
50 array = ["numpy >= 1.24"]
51 # keeping for backwards compatibility
52 bag = []
53 dataframe = [
54 "dask[array]",
55 "pandas >= 2.0",
56 "dask-expr >= 1.1, <1.2", # dask-expr pins the dask version
57 ]
58 distributed = ["distributed == 2024.12.1"]
59 diagnostics = [
60 "bokeh >= 3.1.0",
61 "jinja2 >= 2.10.3",
62 ]
63 # keeping for backwards compatibility
64 delayed = []
65 complete = [
66 "dask[array,dataframe,distributed,diagnostics]",
67 "pyarrow >= 14.0.1",
68 "lz4 >= 4.3.2",
69 ]
70 test = [
71 "pandas[test]",
72 "pytest",
73 "pytest-cov",
74 "pytest-rerunfailures",
75 "pytest-timeout",
76 "pytest-xdist",
77 "pre-commit",
78 ]
79
80 [project.entry-points."dask.array.backends"]
81 cupy = "dask.array.cupy_entry_point:CupyBackendEntrypoint"
82
83 [project.scripts]
84 dask = "dask.__main__:main"
85
86 [tool.setuptools]
87 include-package-data = true
88 zip-safe = false
89 license-files = [
90 "LICENSE.txt",
91 "dask/array/NUMPY_LICENSE.txt",
92 ]
93
94 [tool.setuptools.packages]
95 find = {namespaces = false}
96
97 [tool.setuptools.package-data]
98 dask = ["py.typed"]
99
100 [tool.isort]
101 sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DISTRIBUTED", "FIRSTPARTY", "LOCALFOLDER"]
102 profile = "black"
103 skip_gitignore = true
104 force_to_top = ["true"]
105 default_section = "THIRDPARTY"
106 known_first_party = ["dask"]
107 known_distributed = ["distributed"]
108 add_imports = ["from __future__ import annotations"]
109
110 [tool.versioneer]
111 VCS = "git"
112 style = "pep440"
113 versionfile_source = "dask/_version.py"
114 versionfile_build = "dask/_version.py"
115 tag_prefix = ""
116 parentdir_prefix = "dask-"
117
118 [tool.pytest.ini_options]
119 markers = [
120 "network: Test requires an internet connection",
121 "slow: Skipped unless --runslow passed",
122 "gpu: marks tests we want to run on GPUs",
123 "skip_with_pyarrow_strings: Tests that should be skipped when pyarrow string conversion is turned on",
124 "xfail_with_pyarrow_strings: Tests that should be xfailed when pyarrow string conversion is turned on",
•125 "flaky: Tests that do not pass reliably",
126 ]
127 addopts = "-v -rsfE --durations=10 --color=yes --cov-config=pyproject.toml"
128 filterwarnings = [
129 "error:::dask[.*]",
130 "error:::pandas[.*]",
131 "error:::numpy[.*]",
132 "error:::distributed[.*]",
133 # From https://github.com/numpy/numpy/issues/20225
134 'ignore:The distutils\.sysconfig module is deprecated, use sysconfig instead:DeprecationWarning:numpy',
135 # With no network access, distributed raises a warning when detecting local IP address
136 "ignore:Couldn't detect a suitable IP address:RuntimeWarning:distributed",
137 # Ignore FutureWarning for change in group_keys behavior: no changes required on the dask side.
138 # https://pandas.pydata.org/docs/dev/whatsnew/v1.5.0.html#using-group-keys-with-transformers-in-groupby-apply
139 "ignore:Not prepending group keys:FutureWarning",
•140 "ignore:Dask dataframe query planning is disabled:FutureWarning",
141 "ignore:.*:dask.tests.warning_aliases.RemovedIn20Warning",
142 "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",
143 '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
144 'ignore:The previous implementation of stack is deprecated and will be removed in a future version of pandas\.:FutureWarning',
145 'ignore:The current Dask DataFrame implementation is deprecated.*:DeprecationWarning',
146 "ignore:Minimal version of pyarrow will soon be increased to 14.0.1",
147 "ignore:You are using pyarrow version .* pyarrow-hotfix",
148 "ignore:The legacy Dask DataFrame implementation is deprecated.*:FutureWarning",
•149 "ignore:Passing more than 2 positional arguments to np.maximum:DeprecationWarning",
•150 "ignore::UserWarning:pandas.io.pytables",
151 ]
152 xfail_strict = true
153 # pytest-timeout settings
154 # 'thread' kills off the whole test suite. 'signal' only kills the offending test.
155 # However, 'signal' doesn't work on Windows (due to lack of SIGALRM).
156 # The CI script modifies this config file on the fly on Linux and MacOS.
157 timeout_method = "thread"
158 # This should not be reduced; Windows CI has been observed to be occasionally
159 # exceptionally slow.
160 timeout = 300
161
162 [tool.mypy]
163 # Silence errors about Python 3.9-style delayed type annotations on Python 3.8
164 python_version = "3.10"
165 # See https://github.com/python/mypy/issues/12286 for automatic multi-platform support
166 platform = "linux"
167 # platform = win32
168 # platform = darwin
169 plugins = ["numpy.typing.mypy_plugin"]
170 allow_untyped_decorators = false
171 ignore_missing_imports = true
172 no_implicit_optional = true
173 show_error_codes = true
174 warn_redundant_casts = true
175 warn_unused_ignores = true
176 warn_unreachable = true
177
178 [[tool.mypy.overrides]]
179
180 # Recent or recently overhauled modules featuring stricter validation
181 module = [
182 "dask.order",
183 ]
184 allow_untyped_defs = false
185
186 [tool.codespell]
187 ignore-words-list = "coo,nd,medias"
188 skip = "docs/source/changelog.rst"
189
190 [tool.coverage.run]
191 omit = [
192 "*/test_*.py",
193 "dask/_version.py",
194 ]
195 source = ["dask"]
196
197 [tool.coverage.report]
198 # Regexes for lines to exclude from consideration
199 exclude_lines = [
200 "pragma: no cover",
201 "raise AssertionError",
202 "raise NotImplementedError",
203 ]
204 ignore_errors = true