-
Notifications
You must be signed in to change notification settings - Fork 84
/
pyproject.toml
205 lines (183 loc) · 5.44 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 = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "earthaccess"
version = "0.11.0"
description = "Client library for NASA Earthdata APIs"
authors = [
{name = "earthaccess contributors"}
]
maintainers = [
{name = "Luis Lopez", email = "[email protected]"},
{name = "Joseph H. Kennedy", email = "[email protected]"},
{name = "James Bourbeau", email = "[email protected]"},
{name = "Matt Fisher", email = "[email protected]"},
{name = "Chuck Daniels", email = "[email protected]"},
]
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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
]
requires-python = ">=3.9"
dependencies = [
"python-cmr >=0.10.0",
"pqdm >=0.1",
"requests >=2.26",
"s3fs >=2022.11",
"fsspec >=2022.11",
"tinynetrc >=1.3.1",
"multimethod >=1.8",
"importlib-resources >=6.3.2",
"typing_extensions >=4.10.0",
]
[project.urls]
Repository = "https://github.com/nsidc/earthaccess"
Documentation = "https://earthaccess.readthedocs.io"
"Bug Tracker" = "https://github.com/nsidc/earthaccess/issues"
Changelog = "https://github.com/nsidc/earthaccess/blob/main/CHANGELOG.md"
[project.optional-dependencies]
kerchunk = [
"kerchunk",
"dask",
"h5py >=3.0",
"h5netcdf",
"xarray",
# kerchunk requires numpy, but numpy >=1.26.0 is required for Python 3.12
"numpy >=1.24.0; python_version < '3.12'",
"numpy >=1.26.0; python_version >= '3.12'",
]
dev = [
"bump-my-version >=0.10.0",
"nox",
"pre-commit >=2.4",
"ruff >=0.6.3",
"uv >=0.4.7",
]
test = [
"mypy >=1.11.2",
"pytest >=8.3",
"pytest-cov >=5.0",
"pytest-watch >=4.2",
"python-magic >=0.4",
"responses >=0.14",
"types-requests >=0.1",
"types-setuptools >=0.1",
"vcrpy >=6.0.1",
"earthaccess[kerchunk]",
]
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",
"mkdocs-material >=7.1,<10.0",
"mkdocs-redirects >=1.2.1",
"markdown-callouts >=0.2.0",
"markdown-include >=0.6",
"mkdocs-jupyter >=0.19.0",
"mkdocstrings[python] >=0.19.0",
"pymdown-extensions >=9.2",
"pygments >=2.11.1",
"xarray >=2023.01",
"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",
"cftime>=1.6.4",
]
[tool.pytest]
filterwarnings = ["error::UserWarning"]
[tool.mypy]
python_version = "3.9"
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.*",
"dask.*",
"kerchunk.*",
"pqdm.*",
"s3fs",
"tinynetrc.*", # TODO: generate stubs for tinynetrc and remove this line
"vcr.unittest", # TODO: generate stubs for vcr and remove this line
]
ignore_missing_imports = true
[tool.pyright]
include = ["earthaccess"]
stubPath = "./stubs"
[tool.ruff]
line-length = 88
src = ["earthaccess", "stubs", "tests"]
[tool.ruff.lint]
extend-select = ["I", "T20", "D", "G"]
ignore = ["D1", "D205", "D401", "D417", "G004"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
# Allow `print` and `pprint` in notebooks
"*.ipynb" = ["T201", "T203"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.bumpversion]
current_version = "0.11.0"
commit = false
tag = false
regex = true
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = '^version = "{current_version}"$'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "^## Unreleased$"
replace = "## [v{new_version}] {now:%Y-%m-%d}"
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'
[[tool.bumpversion.files]]
filename = "CITATION.cff"
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"