-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
103 lines (95 loc) · 2.31 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
[project]
name = "xattree"
description = "attrs + xarray data tree = xattree"
readme = "README.md"
authors = [
{ name = "Wes Bonelli", email = "[email protected]" },
{ name = "Michael Reno", email = "[email protected]" },
{ name = "Marnix Kraus", email = "[email protected]" },
]
maintainers = [
{ name = "Wes Bonelli", email = "[email protected]" },
{ name = "Michael Reno", email = "[email protected]" },
{ name = "Marnix Kraus", email = "[email protected]" },
]
keywords = ["attrs", "cattrs", "xarray"]
license = { text = "Apache-2.0" }
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.11"
dependencies = [
"attrs",
"cattrs",
"numpy",
"pandas>=2.0.0",
"xarray>=2024.11.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = ["xattree[lint,test]"]
lint = ["ruff", "mypy"]
test = [
"xattree[lint]",
"coverage",
"pytest!=8.1.0",
"pytest-xdist",
"pytest-benchmark",
"pytest-cov",
"jupyter",
"jupytext",
"ipython"
]
docs = [
"sphinx",
"sphinx-rtd-theme",
"myst-parser",
"jupyter",
"jupytext",
"nbsphinx",
"ipython",
]
[project.scripts]
xattree = "xattree:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = [
"README.md",
"docs",
"xattree",
]
[tool.hatch.build.targets.wheel]
packages = ["xattree"]
[tool.hatch.version]
path = "xattree/version.py"
[tool.ruff]
line-length = 100
target-version = "py311"
include = ["pyproject.toml", "xattree/**/*.py", "test/**/*.py"]
[tool.ruff.lint]
select = [
"D409", # pydocstyle - section-underline-matches-section-length
"E", # pycodestyle error
"F", # Pyflakes
"I001", # isort - unsorted-imports
]
ignore = [
"E701", # multiple-statements-on-one-line-colon
"E731", # lambda-assignment
]
[tool.mypy]
mypy_path = "xattree"
plugins = [
"attrs_mypy.py",
]
ignore_missing_imports = true
warn_unreachable = true