Skip to content

Commit

Permalink
Remove setup.cfg in favor of pyproject.toml (#8183)
Browse files Browse the repository at this point in the history
* Remove `setup.cfg` in favor of `pyproject.toml`
  • Loading branch information
max-sixty authored Sep 14, 2023
1 parent 5007e5f commit 64660b6
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 155 deletions.
64 changes: 64 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
[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.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"]

[tool.setuptools]
packages = ["xarray"]

[project.entry-points."xarray.chunkmanagers"]
dask = "xarray.core.daskmanager:DaskManager"

[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"

[build-system]
build-backend = "setuptools.build_meta"
requires = [
Expand Down Expand Up @@ -97,3 +146,18 @@ select = [

[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"
154 changes: 0 additions & 154 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion xarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
except Exception:
# Local copy or not installed with setuptools.
# Disable minimum version checks on downstream libraries.
__version__ = "999"
__version__ = "9999"

# A hardcoded __all__ variable is necessary to appease
# `mypy --strict` running in projects that import xarray.
Expand Down

0 comments on commit 64660b6

Please sign in to comment.