-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathpyproject.toml
More file actions
271 lines (245 loc) · 6.71 KB
/
Copy pathpyproject.toml
File metadata and controls
271 lines (245 loc) · 6.71 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
[build-system]
requires = ["hatchling>=1.27.0,<1.28", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "earthaccess/__init__.py"
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "earthaccess/_version.py"
[project]
name = "earthaccess"
dynamic = ["version"]
description = "Client library for NASA Earthdata APIs"
authors = [{ name = "earthaccess contributors" }]
maintainers = [
{ name = "Luis Lopez", email = "betolin@gmail.com" },
{ name = "Joseph H. Kennedy", email = "jhkennedy@alaska.edu" },
{ name = "James Bourbeau", email = "james@coiled.io" },
{ name = "Matt Fisher", email = "mfisher87@gmail.com" },
{ name = "Chuck Daniels", email = "chuck@developmentseed.org" },
]
license = "MIT"
readme = "README.md"
classifiers = [
"Environment :: Console",
"Framework :: IPython",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
]
requires-python = ">=3.12"
dependencies = [
"python-cmr >=0.10.0",
"pqdm >=0.1",
"requests >=2.26",
"s3fs >=2025.2",
"fsspec >=2025.2",
"tinynetrc >=1.3.1",
"tenacity >=8.0",
"multimethod >=1.8",
"importlib-resources >=6.3.2",
"typing_extensions >=4.10.0",
]
[project.urls]
Repository = "https://github.com/earthaccess-dev/earthaccess"
Documentation = "https://earthaccess.readthedocs.io"
"Bug Tracker" = "https://github.com/earthaccess-dev/earthaccess/issues"
Changelog = "https://github.com/earthaccess-dev/earthaccess/blob/main/CHANGELOG.md"
[project.optional-dependencies]
# IMPORTANT: When adding a new optional dependencies group, include it in this
# "all" optional dependencies group.
all = [
"earthaccess[kerchunk]",
"earthaccess[virtualizarr]",
]
kerchunk = [
"kerchunk>=0.2.9",
"dask",
"h5py >=3.14.0",
"h5netcdf",
"xarray >=2025.04.0",
"zarr >=3.1.1",
]
virtualizarr = [
"numpy >=1.26.4",
"zarr >=3.1.1",
"virtualizarr >=2.1.2",
"kerchunk>=0.2.9",
"dask",
"h5py >=3.14.0",
"obstore >= 0.8.0",
"fastparquet >= 2023.4.0",
"numcodecs >= 0.16.2",
"xarray",
]
[dependency-groups]
dev = [
"bump-my-version >=1.3.0",
"nox",
"pre-commit >=2.4",
"ruff >=0.6.3",
]
test = [
"zarr >=3.1.1",
"numpy >=1.26.4",
"mypy >=1.11.2",
"pytest >=8.3",
"pytest-cov >=5.0",
"pytest-watch >=4.2",
"python-magic >=0.4; platform_system != 'Windows'",
"python-magic-bin >=0.4; platform_system == 'Windows'",
"responses >=0.14",
"types-requests >=0.1",
"types-setuptools >=0.1",
"types-geopandas",
"vcrpy >=8.2.0",
"dask[distributed]>=2025.7.0",
"xarray",
"h5netcdf",
"geopandas",
]
docs = [
"jupyterlab >=3",
"ipywidgets >=7.7.0",
"widgetsnbextension >=3.6.0",
# Prevent install of 1.6.0 because the module mkdocs.tests
# is no longer exported, which causes mkdocs-jupyter to
# break with a ModuleNotFoundError.
# for notebook integrations and documentation examples
"mkdocs >=1.2,!=1.6.0,<2.0",
"mkdocs-material >=9.7.1,<10.0",
"mkdocs-redirects >=1.2.1",
"markdown-callouts >=0.2.0",
"markdown-include >=0.6",
"mkdocs-jupyter >=0.19.0",
"mkdocs-mermaid2-plugin >=1.2.1",
"mkdocs-pandoc >=0.2.0",
"mkdocstrings[python] >=0.19.0",
"pymdown-extensions >=9.2",
"pygments >=2.11.1",
"xarray",
"h5netcdf",
"matplotlib >=3.3",
"h5netcdf >=0.11",
"pyproj >=3.5.0; python_version < '3.12'",
"pyproj >=3.6.1; python_version >= '3.12'",
# The following error occurs when building the docs, so we must explicitly
# include lxml-html-clean as a dev dependency until mkdocs-jupyter is updated:
#
# ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
# Install lxml[html_clean] or lxml_html_clean directly.
#
# See https://github.com/danielfrg/mkdocs-jupyter/issues/200
# See https://github.com/danielfrg/mkdocs-jupyter/issues/197
"lxml-html-clean >=0.1.1",
"dask>=2024.8.0",
"earthaccess[virtualizarr]",
"cftime>=1.6.4",
"cartopy>=0.24.1",
"mkdocs-awesome-nav>=3.3.0",
]
[tool.pytest.ini_options]
filterwarnings = ["error::UserWarning"]
[tool.mypy]
python_version = "3.12"
files = ["earthaccess", "tests"]
mypy_path = ["earthaccess", "tests", "stubs"]
disallow_untyped_defs = true
# TODO: incrementally work towards strict mode (currently too many errors)
# strict = true
pretty = true # Show additional context in error messages
enable_error_code = "redundant-self"
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"fsspec.*",
"h5netcdf.*",
"dask.*",
"pqdm.*",
"s3fs",
"tinynetrc.*",
"vcr.unittest",
"obspec_utils.*",
]
ignore_missing_imports = true
[tool.pyright]
include = ["earthaccess"]
stubPath = "./stubs"
[tool.ruff]
line-length = 88
src = ["earthaccess", "stubs", "tests"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN001",
"ANN002",
"ANN003",
"ANN201",
"ANN202",
"ANN204",
"ANN401",
"COM812",
"D1",
"D205",
"E501",
"FIX002",
"PT006",
"PT007",
"PT009",
"PT011",
"PT012",
"PT017",
"PT027",
"S113",
"TD002",
"TD003",
"TD004"
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
# Allow `print` and `pprint` in notebooks
"*.ipynb" = ["T201", "T203", "N803", "RET504", "ERA001", "PLR2004", "PD002", "PD010", "PD011", "EM", "ARG001", "BLE001", "FBT","TRY003"]
"tests/**/*.py" = ["PLR2004", "FBT", "INP001", "SLF001", "S101", "S108", "S301", "S603", "S607"]
"scripts/**/*.py" = ["INP001"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.bumpversion]
current_version = "0.19.0"
commit = false
tag = true
allow_dirty = false
tag_name = "v{new_version}"
tag_message = "v{new_version}"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
regex = true
search = "^## \\[Unreleased\\]"
replace = "## [Unreleased]\n\n## [v{new_version}] - {now:%Y-%m-%d}"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
regex = true
search = "\\[Unreleased\\]: (https://.+?)v{current_version}\\.\\.\\.HEAD"
replace = "[v{new_version}]: \\1v{current_version}...v{new_version}\n[Unreleased]: \\1v{new_version}...HEAD"
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'
[[tool.bumpversion.files]]
filename = "CITATION.cff"
regex = true
search = 'date-released: "\d{{4}}-\d{{2}}-\d{{2}}"'
replace = 'date-released: "{now:%Y-%m-%d}"'
[tool.codespell]
skip = 'uv.lock,*.ipynb,*.yml,*.yaml,./tests'
ignore-words = ".codespellignore"