-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathpixi.toml
More file actions
162 lines (132 loc) · 4.49 KB
/
pixi.toml
File metadata and controls
162 lines (132 loc) · 4.49 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[workspace]
name = "Parcels"
exclude-newer = "5d" # security pre-caution against compromised packages
preview = ["pixi-build"]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
requires-pixi = ">=0.67.0"
[package]
name = "parcels"
version = "dynamic" # dynamic versioning needs better support in pixi https://github.com/prefix-dev/pixi/issues/2923#issuecomment-2598460666 . Putting `version = "dynamic"` here for now until pixi recommends something else.
[package.build]
backend = { name = "pixi-build-python", version = "0.4.*" }
[package.host-dependencies]
setuptools = "*"
setuptools_scm = "*"
[package.run-dependencies] # keep section in sync with pyproject.toml dependencies
python = ">=3.11"
netcdf4 = ">=1.6.0"
numpy = ">=2.1.0"
tqdm = ">=4.50.0"
xarray = ">=2024.5.0,<2026.4.0" # TODO: remove upper pin when https://github.com/UXARRAY/uxarray/issues/1490 is resolved
holoviews = ">=1.22.0" # https://github.com/prefix-dev/rattler-build/issues/2326
uxarray = ">=2025.3.0"
dask = ">=2024.5.1"
zarr = ">=2.15.0,!=2.18.0,<3"
xgcm = { git = "https://github.com/xgcm/xgcm", rev = "master" } # TODO: Switch to release version after release is cut
cf_xarray = ">=0.8.6"
cftime = ">=1.6.3"
pooch = ">=1.8.0"
py-triangle = ">=20250106,<20250107"
[dependencies]
parcels = { path = "." }
[feature.rattler-build.dependencies]
python = "*"
git = "*"
rattler-build = "*"
[feature.rattler-build.tasks]
get-parcels-alpha-version = { cmd = "python tools/get-parcels-alpha-version.py" }
build-parcels = { cmd = "rattler-build build --recipe .github/ci/recipe.yaml", description = "Build the Parcels conda package" }
[feature.minimum.dependencies]
python = "3.11.*"
netcdf4 = "1.6.*"
numpy = "2.1.*"
tqdm = "4.50.*"
xarray = "2025.8.*"
uxarray = "2025.3.*"
dask = "2024.6.*"
zarr = "2.18.*"
xgcm = { version = "0.9.*", channel = "conda-forge" }
cf_xarray = "0.10.*"
cftime = "1.6.*"
pooch = "1.8.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py313.dependencies]
python = "3.13.*"
[feature.test.dependencies]
nbval = "*"
pytest = "*"
hypothesis = "*"
pytest-html = "*"
pytest-cov = "*"
[feature.test.tasks]
tests = { cmd = "pytest", description = "Run the test suite." }
tests-notebooks = { cmd = "pytest --nbval-lax docs/user_guide/examples", description = "Run the user guide example notebooks as tests." }
[feature.notebooks.dependencies]
jupyter = "*"
trajan = "*"
matplotlib-base = ">=2.0.2"
gsw = "*"
[feature.devtools.dependencies]
pdbpp = "*"
line_profiler = "*"
memory_profiler = "*"
snakeviz = "*"
icecream = "*"
ipykernel = "*"
snoop = "*"
pyinstrument = "*"
[feature.devtools.target.linux-64.dependencies]
memray = "*"
[feature.devtools.target.osx-64.dependencies]
memray = "*"
[feature.devtools.target.osx-arm64.dependencies]
memray = "*"
[feature.devtools.pypi-dependencies]
tuna = ">=0.5.11"
[feature.docs.dependencies]
parcels = { path = "." }
numpydoc = "*"
myst-nb = "*"
ipython = "*"
sphinx = "*"
pandoc = "*"
pydata-sphinx-theme = "*"
sphinx-autobuild = "*"
sphinxcontrib-mermaid = "*"
sphinx-design = "*"
sphinx-autoapi = "*"
[feature.docs.tasks]
docs = { cmd = "sphinx-build docs docs/_build", description = "Build the documentation." }
docs-watch = { cmd = "sphinx-autobuild docs docs/_build", description = "Build and auto-rebuild the documentation on changes." }
docs-linkcheck = { cmd = "sphinx-build -b linkcheck docs/ docs/_build/linkcheck", description = "Verify all links in documentation don't 404." }
[feature.pre-commit.dependencies]
pre_commit = "*"
[feature.pre-commit.tasks]
lint = { cmd = "pre-commit run --all-files", description = "Run all pre-commit linting hooks." }
[feature.numpydoc.dependencies]
numpydoc = "*"
[feature.numpydoc.tasks]
numpydoc-lint = { cmd = "python tools/numpydoc-public-api.py", description = "Lint public API docstrings with numpydoc." }
[feature.typing.dependencies]
ty = "*"
[feature.typing.tasks]
typing = { cmd = "ty check", description = "Run static type checking with ty." }
[environments]
default = { features = [
"test",
"notebooks",
"typing",
"pre-commit",
"numpydoc",
"devtools",
], solve-group = "main" }
test = { features = ["test"], solve-group = "main" }
test-minimum = { features = ["test", "minimum"] }
test-py311 = { features = ["test", "py311"] }
test-py313 = { features = ["test", "py313"] }
test-notebooks = { features = ["test", "notebooks"], solve-group = "main" }
docs = { features = ["docs", "notebooks"], solve-group = "docs" }
typing = { features = ["typing"], solve-group = "main" }
build = { features = ["rattler-build"] }