-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
225 lines (206 loc) · 4.78 KB
/
pyproject.toml
File metadata and controls
225 lines (206 loc) · 4.78 KB
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
[build-system]
requires = ["flit-core >=3.11.0,<4.0"]
build-backend = "flit_core.buildapi"
[project]
name = "daops"
authors = [
{name = "Elle Smith", email = "[email protected]"}
]
maintainers = [
{name = "Trevor James Smith", email = "[email protected]"},
{name = "Carsten Ehbrecht", email = "[email protected]"}
]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
readme = {file = "README.rst", content-type = "text/x-rst"}
keywords = ["daops"]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Internet",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Systems Administration :: Authentication/Directory",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dynamic = ["description", "version"]
dependencies = [
"cftime",
"clisops >=0.17.0",
"h5netcdf",
"dask[complete] >=2024.12.0",
"elasticsearch >=8.0.1,<9.0",
"numpy >=1.26.0",
"roocs_grids >=0.1.2",
"xarray >=2025.6.0",
"xesmf >=0.9.2",
# logging
"loguru >=0.5.3",
# catalog
"intake >=0.7.0,<2.0",
"pandas >=2.1",
# to support kerchunk
"aiohttp",
"fsspec",
"zarr >=2.13.3",
"zstandard"
]
[project.optional-dependencies]
dev = [
"black >=25.12.0",
"bump-my-version >=1.2.0",
"coverage[toml] >=7.6.0",
"h5netcdf >=1.5.0",
"jinja2",
"packaging >=24.2",
"pip >=25.2",
"pre-commit >=3.5.0",
"pytest-loguru >=0.3.0",
"pytest >=8.0.0",
"pytest-cov >=6.0.0",
"pytest-timeout >=2.4.0",
"ruff >=0.14.9",
"tox >=4.18.1",
"watchdog >=4.0",
]
docs = [
"ipykernel",
"ipython >=8.5.0",
"jupyter_client",
"matplotlib >=3.5.0",
"nbconvert",
"nbsphinx",
"netcdf4",
"sphinx >=7.1.0,<8.2",
"sphinx-rtd-theme >=1.0"
]
[project.scripts]
daops = "daops.cli:main"
[project.urls]
"Changelog" = "https://daops.readthedocs.io/en/stable/history.html"
"Homepage" = "https://daops.readthedocs.io/"
"Issue tracker" = "https://github.com/roocs/daops/issues"
"Source" = "https://github.com/roocs/daops"
[tool]
[tool.black]
target-version = [
"py311",
"py312",
"py313"
]
[tool.bumpversion]
current_version = "0.16.0"
commit = true
commit_args = "--no-verify"
tag = false
allow_dirty = false
[[tool.bumpversion.files]]
filename = "src/daops/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "docs/conf.py"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[tool.coverage.run]
relative_files = true
omit = ["tests/*.py"]
[tool.deptry]
extend_exclude = ["docs"]
ignore_notebooks = true
pep621_dev_dependency_groups = ["dev", "docs"]
[tool.flit.module]
name = "daops"
[tool.flit.sdist]
include = [
"AUTHORS.rst",
"HISTORY.rst",
"LICENSE",
"Makefile",
"README.rst",
"docs/Makefile",
"docs/make.bat",
"docs/*.rst",
"docs/*.py",
"docs/_static/*.png",
"etc/*",
"src/daops",
"tox.ini"
]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = [
"--verbose",
"--color=yes",
"--timeout=300",
"--strict-config",
"--strict-markers"
]
log_cli_level = "INFO"
filterwarnings = ["ignore::UserWarning"]
testpaths = [
"tests"
]
markers = [
"online: mark tests that require internet access (deselect with '-m \"not requires_internet\"')",
"slow: mark tests that run quite long."
]
xfail_strict = false
[tool.ruff]
src = ["src/daops"]
exclude = [
".eggs",
".git",
"build",
"docs",
"tests",
]
line-length = 180
extend-include = [
"*.ipynb" # Include notebooks
]
[tool.ruff.format]
line-ending = "auto"
[tool.ruff.lint]
extend-select = [
"RUF022" # unsorted-dunder-all
]
ignore = [
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D211", # no-blank-line-before-class
]
preview = true
select = [
"B", # bugbear
"C90", # mccabe-complexity
"D", # docstrings
"E", # pycodestyle errors
"F", # pyflakes
"I", # imports
"N802", # invalid-function-name
"S", # bandit
"UP", # pyupgrade
"W" # pycodestyle warnings
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.pycodestyle]
max-doc-length = 180
[tool.ruff.lint.pydocstyle]
convention = "numpy"