-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
128 lines (112 loc) · 2.76 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
[build-system]
requires = [
"setuptools>=41.2",
"setuptools-scm",
"cython>=3",
"numpy>=2",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "ciso"
dynamic = ["version"]
description = "Create isosurfaces from 2D or 3D arrays"
readme = "README.md"
authors = [
{email = "hetland@tamu.edu"},
{name = "Robert Hetland"}
]
requires-python = ">=3.10"
license = {text = "BSD-2-Clause"}
dependencies = [
"numpy",
]
[project.optional-dependencies]
extras = [
"gridgeo",
"cartopy",
"xarray",
]
[project.urls]
homepage = "https://github.com/ioos/ciso"
documentation = "https://ioos.github.io/ciso"
repository = "https://github.com/ioos/ciso"
[tool.setuptools]
license-files = ["LICENSE.txt"]
zip-safe = true
platforms = ["any"]
packages = ["ciso"]
[tool.setuptools_scm]
write_to = "ciso/_version.py"
write_to_template = "__version__ = '{version}'"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::UserWarning",
]
addopts = "-s -rxs -v"
[check-manifest]
ignore = [
"*.yml",
".coveragerc",
"docs",
"docs/*",
"notebooks",
"notebooks/*",
"tests",
"tests/*",
]
[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-module = false
fail-under = 85
exclude = ["setup.py", "docs", "tests"]
verbose = 1
quiet = false
color = true
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64"]
[tool.pixi.environments]
default = { features = ["py313"], solve-group = "py313" }
py313 = { features = ["py313"], solve-group = "py313" }
py312 = ["py312"]
py311 = ["py311"]
py310 = ["py310"]
[tool.pixi.tasks]
install-pre-commit = "pre-commit install"
pre-commit = "pre-commit run --all-files"
test = "pip install -e . --no-deps --force-reinstall && pytest -rxs ciso/tests"
docs = """\
pip install -e . --no-deps --force-reinstall
&& jupyter nbconvert --to notebook --execute notebooks/ciso_unstructure.ipynb --output=ciso_unstructure-output.ipynb
&& jupyter nbconvert --to notebook --execute notebooks/ciso_c_grid.ipynb --output=ciso_c_grid-output.ipynb
&& mv notebooks/*output.ipynb docs/source/
&& cd docs
&& make clean html linkcheck
"""
[tool.pixi.feature.py313.dependencies]
python = "3.13.*"
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"
[tool.pixi.feature.py310.dependencies]
python = "3.10.*"
[tool.pixi.dependencies]
cython = ">=3.0.11,<4"
numpy = ">1.19"
pytest = ">=8.3.3,<9"
pre-commit = ">=3.8.0,<4"
gridgeo = ">=1.5.2,<2"
jupyter = ">=1.1.1,<2"
nbsphinx = ">=0.9.5,<0.10"
sphinx = ">=8.0.2,<9"
pip = ">=24.2,<25"
scitools-iris = ">=3.9.0,<4"
nbclassic = ">=1.1.0,<2"