forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into named-array
- Loading branch information
Showing
25 changed files
with
320 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,61 @@ | ||
[project] | ||
authors = [ | ||
{name = "xarray Developers", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
description = "N-D labeled arrays and datasets in Python" | ||
dynamic = ["version"] | ||
license = {text = "Apache-2.0"} | ||
name = "xarray" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
|
||
dependencies = [ | ||
"numpy>=1.21", | ||
"packaging>=21.3", | ||
"pandas>=1.4", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://docs.xarray.dev" | ||
SciPy2015-talk = "https://www.youtube.com/watch?v=X0pAhJgySxk" | ||
homepage = "https://xarray.dev/" | ||
issue-tracker = "https://github.com/pydata/xarray/issues" | ||
source-code = "https://github.com/pydata/xarray" | ||
|
||
[project.entry-points."xarray.chunkmanagers"] | ||
dask = "xarray.core.daskmanager:DaskManager" | ||
|
||
[project.optional-dependencies] | ||
accel = ["scipy", "bottleneck", "numbagg", "flox"] | ||
complete = ["xarray[accel,io,parallel,viz]"] | ||
io = ["netCDF4", "h5netcdf", "scipy", 'pydap; python_version<"3.10"', "zarr", "fsspec", "cftime", "pooch"] | ||
parallel = ["dask[complete]"] | ||
viz = ["matplotlib", "seaborn", "nc-time-axis"] | ||
|
||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=42", | ||
"setuptools-scm>=7", | ||
] | ||
|
||
[tool.setuptools] | ||
packages = ["xarray"] | ||
|
||
[tool.setuptools_scm] | ||
fallback_version = "999" | ||
fallback_version = "9999" | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
|
@@ -64,40 +113,51 @@ module = [ | |
"sparse.*", | ||
"toolz.*", | ||
"zarr.*", | ||
"numpy.exceptions.*", # remove once support for `numpy<2.0` has been dropped | ||
"numpy.exceptions.*", # remove once support for `numpy<2.0` has been dropped | ||
] | ||
|
||
[[tool.mypy.overrides]] | ||
ignore_errors = true | ||
module = [] | ||
|
||
[tool.ruff] | ||
target-version = "py39" | ||
builtins = ["ellipsis"] | ||
exclude = [ | ||
".eggs", | ||
"doc", | ||
"_typed_ops.pyi", | ||
".eggs", | ||
"doc", | ||
"_typed_ops.pyi", | ||
] | ||
target-version = "py39" | ||
# E402: module level import not at top of file | ||
# E501: line too long - let black worry about that | ||
# E731: do not assign a lambda expression, use a def | ||
ignore = [ | ||
"E402", | ||
"E501", | ||
"E731", | ||
"E402", | ||
"E501", | ||
"E731", | ||
] | ||
select = [ | ||
# Pyflakes | ||
"F", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
# isort | ||
"I", | ||
# Pyupgrade | ||
"UP", | ||
"F", # Pyflakes | ||
"E", # Pycodestyle | ||
"W", | ||
"I", # isort | ||
"UP", # Pyupgrade | ||
] | ||
|
||
[tool.ruff.isort] | ||
known-first-party = ["xarray"] | ||
|
||
[tool.pytest.ini-options] | ||
filterwarnings = [ | ||
"ignore:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning", | ||
] | ||
markers = [ | ||
"flaky: flaky tests", | ||
"network: tests requiring a network connection", | ||
"slow: slow tests", | ||
] | ||
python_files = "test_*.py" | ||
testpaths = ["xarray/tests", "properties"] | ||
|
||
[tool.aliases] | ||
test = "pytest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
setup(use_scm_version={"fallback_version": "999"}) | ||
setup(use_scm_version={"fallback_version": "9999"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.