forked from MODFLOW-ORG/modflow6
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
197 lines (173 loc) · 6.31 KB
/
pixi.toml
File metadata and controls
197 lines (173 loc) · 6.31 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
[workspace]
name = "modflow6"
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "linux-aarch64", "osx-arm64", "osx-64"]
version = "6.8.0.dev0"
[dependencies]
appdirs = "*"
cffconvert = "*"
codespell = "*"
filelock = "*"
flaky = "*"
fortran-language-server = "*"
fprettify = "*"
geopandas = "*"
gitpython = "*"
jinja2 = ">=3.1.5,<4"
jupytext = "*"
matplotlib = "*"
meson = ">=1.7.0"
netCDF4 = "*"
networkx = "*"
ninja = "*"
numpy = ">=2.2.6,<3" # pinned for random reasons
pandas = "*"
pip = "*"
pooch = "*"
pydotplus = "*"
pyshp = "*"
pytest = "!=8.1.0"
pytest-benchmark = "*"
pytest-dotenv = "*"
pytest-order = "*"
pytest-xdist = "*"
python = "3.10.*"
rasterio = "*"
rasterstats = "*"
requests = "*"
ruff = "*"
scipy = "*"
shapely = "*"
syrupy = "<5"
test-drive = "*"
xarray = "*"
xugrid = "*"
xmipy = ">=1.4.0"
[pypi-dependencies]
modflow-devtools = { version = "==1.8.0", extras = ["test", "dfn", "models"] }
# os-specific dependencies
[target.win-64.dependencies]
test-drive = "!=0.6.0"
[tasks]
# install
install-flopy = "pip install --disable-pip-version-check git+https://github.com/modflowpy/flopy.git"
install-pymake = "pip install --disable-pip-version-check git+https://github.com/modflowpy/pymake.git"
install-modflowapi = "pip install --disable-pip-version-check git+https://github.com/MODFLOW-ORG/modflowapi.git"
install = { depends-on = [
"install-flopy",
"install-pymake",
"install-modflowapi",
] }
# check format
check-format = "python .github/common/check_format.py"
check-vfproj = "python .github/common/check_vfproj.py"
check-spelling = "codespell"
check-python-lint = { cmd = "ruff check ." }
check-python-format = { cmd = "pixi run fix-python-format --check" }
# fix format
fix-style = { cmd = "pixi run check-format --write-changes; pixi run check-spelling --write-changes" }
fix-python-format = { cmd = "ruff format ." }
fix-python-style = { cmd = "pixi run check-python-lint --fix; pixi run fix-python-format" }
# meson build/test for mf6 and zbud6
builddir = "echo _builddir"
setup = { cmd = "meson setup --prefix=$(pwd) --libdir=bin --bindir=bin", env = { PKG_CONFIG_PATH = "$CONDA_PREFIX/lib/pkgconfig" } }
build = "meson install -C"
test = "meson test --verbose --no-rebuild -C"
# meson build mf5to6
setup-mf5to6 = { cmd = "meson setup --prefix=$PIXI_PROJECT_ROOT", cwd = "utils/mf5to6" }
build-mf5to6 = { cmd = "meson install -C", cwd = "utils/mf5to6" }
# pytest tasks
get-exes = { cmd = "pytest -v --durations 0 get_exes.py", cwd = "autotest" }
autotest = { cmd = "pytest -v -n auto --durations 0 --keep-failed .failed", cwd = "autotest" }
# common developer tasks
update-fortran-definitions = { cmd = "cat dfns.txt | xargs python scripts/dfn2f90.py", cwd = "utils/idmloader" }
update-flopy = "python -m flopy.mf6.utils.generate_classes --dfnpath doc/mf6io/mf6ivar/dfn"
build-makefiles = { cmd = "python build_makefiles.py", cwd = "distribution" }
run-mf6ivar = { cmd = "python mf6ivar.py", cwd = "doc/mf6io/mf6ivar" }
prepare-pull-request = { depends-on = [
"fix-style",
"fix-python-style",
"build-makefiles",
"run-mf6ivar",
"update-fortran-definitions",
] }
# dist/docs
benchmark = { cmd = "python benchmark.py", cwd = "distribution" }
build-docs = { cmd = "python build_docs.py", cwd = "distribution" }
build-dist = { cmd = "python build_dist.py", cwd = "distribution" }
check-dist = { cmd = "pytest -v -s check_dist.py", cwd = "distribution" }
test-dist-scripts = { cmd = "pytest -v --durations 0", cwd = "distribution" }
update-version = { cmd = "python update_version.py", cwd = "distribution" }
collect-deprecations = { cmd = "python deprecations.py", cwd = "doc/mf6io/mf6ivar" }
check-citations = "cffconvert --validate -i CITATION.cff"
make-release-notes = { cmd = "python mk_releasenotes.py", cwd = "doc/ReleaseNotes" }
# os-specific default tasks
[target.linux-64.tasks]
builddir = "echo _builddir_linux-64"
[target.linux-aarch64.tasks]
builddir = "echo _builddir_linux-aarch64"
[target.osx-64.tasks]
builddir = "echo _builddir_osx-64"
[target.osx-arm64.tasks]
builddir = "echo _builddir_osx-arm64"
[target.win-64.tasks]
builddir = "echo _builddir_win-64"
# environments for documentation and extended build testing
[environments]
rtd = { features = ["rtd"], solve-group = "default" }
gcc-extended-build = { features = ["gcc-extended-build"] }
# Features
[feature.rtd.dependencies]
numpy = ">=2.2.6,<3"
bmipy = "*"
sphinx = ">=4"
ipython = "*"
ipykernel = "*"
myst-parser = "*"
sphinx_rtd_theme = ">=1"
sphinxcontrib-mermaid = "*"
pymetis = "*"
pytest = "*"
filelock = "*"
[feature.rtd.pypi-dependencies]
# These dependencies are added as pypi dependencies because an osx-arm64 version of them doesn't exist on conda
sphinx_markdown_tables = "*"
nbsphinx = "*"
nbsphinx_link = "*"
rtds_action = "*"
[feature.rtd.tasks]
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }
[feature.gcc-extended-build]
platforms = ["linux-64", "osx-arm64"]
[feature.gcc-extended-build.dependencies]
git = "*"
meson = "*"
ninja = "*"
gcc = "*"
gfortran = "*"
pkg-config = "*"
libnetcdf = "*"
netcdf-fortran = "*"
openmpi = "*"
petsc = "<3.23.0"
[feature.gcc-extended-build.target.linux-64.dependencies]
gcc = "13.*"
gfortran = "13.*"
[feature.gcc-extended-build.tasks]
gcc-extended-build-update-pc-files = { cmd = "echo updating netcdf pc files && python gcc-extended-build-update-pc-files.py", cwd = "distribution" }
gcc-extended-build-test-drive-clone = { cmd = "rm -rf .test-drive/ && git clone https://github.com/fortran-lang/test-drive.git .test-drive" }
gcc-extended-build-test-drive-setup = { cmd = "meson setup _build --libdir=lib --warnlevel=0 --default-library=shared --prefix=$CONDA_PREFIX", cwd = ".test-drive" }
gcc-extended-build-test-drive-compile = { cmd = "meson compile -C _build", cwd = ".test-drive" }
gcc-extended-build-test-drive-test = { cmd = "meson test -C _build --no-rebuild --print-errorlogs", cwd = ".test-drive" }
gcc-extended-build-test-drive-install = { cmd = "meson install -C _build --no-rebuild", cwd = ".test-drive" }
gcc-extended-build-test-drive-rebuild = { depends-on = [
"gcc-extended-build-test-drive-clone",
"gcc-extended-build-test-drive-setup",
"gcc-extended-build-test-drive-compile",
"gcc-extended-build-test-drive-test",
"gcc-extended-build-test-drive-install",
] }
gcc-extended-build-update = { depends-on = [
"gcc-extended-build-update-pc-files",
"gcc-extended-build-test-drive-rebuild",
] }