Skip to content

Commit 64660b6

Browse files
authored
Remove setup.cfg in favor of pyproject.toml (#8183)
* Remove `setup.cfg` in favor of `pyproject.toml`
1 parent 5007e5f commit 64660b6

File tree

3 files changed

+65
-155
lines changed

3 files changed

+65
-155
lines changed

pyproject.toml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
[project]
2+
authors = [
3+
{name = "xarray Developers", email = "[email protected]"},
4+
]
5+
classifiers = [
6+
"Development Status :: 5 - Production/Stable",
7+
"License :: OSI Approved :: Apache Software License",
8+
"Operating System :: OS Independent",
9+
"Intended Audience :: Science/Research",
10+
"Programming Language :: Python",
11+
"Programming Language :: Python :: 3",
12+
"Programming Language :: Python :: 3.9",
13+
"Programming Language :: Python :: 3.10",
14+
"Programming Language :: Python :: 3.11",
15+
"Topic :: Scientific/Engineering",
16+
]
17+
description = "N-D labeled arrays and datasets in Python"
18+
dynamic = ["version"]
19+
license = {text = "Apache-2.0"}
20+
name = "xarray"
21+
readme = "README.md"
22+
requires-python = ">=3.9"
23+
24+
dependencies = [
25+
"numpy>=1.21",
26+
"packaging>=21.3",
27+
"pandas>=1.4",
28+
]
29+
30+
[project.optional-dependencies]
31+
accel = ["scipy", "bottleneck", "numbagg", "flox"]
32+
complete = ["xarray[accel,io,parallel,viz]"]
33+
io = ["netCDF4", "h5netcdf", "scipy", 'pydap; python_version<"3.10"', "zarr", "fsspec", "cftime", "pooch"]
34+
parallel = ["dask[complete]"]
35+
viz = ["matplotlib", "seaborn", "nc-time-axis"]
36+
37+
[tool.setuptools]
38+
packages = ["xarray"]
39+
40+
[project.entry-points."xarray.chunkmanagers"]
41+
dask = "xarray.core.daskmanager:DaskManager"
42+
43+
[project.urls]
44+
Documentation = "https://docs.xarray.dev"
45+
SciPy2015-talk = "https://www.youtube.com/watch?v=X0pAhJgySxk"
46+
homepage = "https://xarray.dev/"
47+
issue-tracker = "https://github.com/pydata/xarray/issues"
48+
source-code = "https://github.com/pydata/xarray"
49+
150
[build-system]
251
build-backend = "setuptools.build_meta"
352
requires = [
@@ -97,3 +146,18 @@ select = [
97146

98147
[tool.ruff.isort]
99148
known-first-party = ["xarray"]
149+
150+
[tool.pytest.ini-options]
151+
filterwarnings = [
152+
"ignore:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning",
153+
]
154+
markers = [
155+
"flaky: flaky tests",
156+
"network: tests requiring a network connection",
157+
"slow: slow tests",
158+
]
159+
python_files = "test_*.py"
160+
testpaths = ["xarray/tests", "properties"]
161+
162+
[tool.aliases]
163+
test = "pytest"

setup.cfg

Lines changed: 0 additions & 154 deletions
This file was deleted.

xarray/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
except Exception:
5353
# Local copy or not installed with setuptools.
5454
# Disable minimum version checks on downstream libraries.
55-
__version__ = "999"
55+
__version__ = "9999"
5656

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

0 commit comments

Comments
 (0)