-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpixi.toml
173 lines (159 loc) Β· 4.28 KB
/
pixi.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
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
[project]
name = "imod-python"
version = "1.0.0rc1"
description = "Make massive MODFLOW models"
authors = ["Deltares <[email protected]>"]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"]
license = "MIT"
license-file = "LICENSE"
readme = "README.rst"
homepage = "https://github.com/Deltares/imod-python"
documentation = "https://deltares.github.io/imod-python/"
repository = "https://github.com/Deltares/imod-python.git"
[tasks]
# General tasks
docs = { cmd = "make html", depends-on = ["install"], cwd = "docs" }
install = "python -m pip install --no-deps --editable ."
pypi-publish = { cmd = "rm --recursive --force dist && python -m build && twine check dist/* && twine upload dist/*" }
# Lint and format tasks
format = "ruff check --fix .; ruff format ."
lint = "ruff check . ; ruff format --check ."
mypy_lint = { cmd ="mypy", depends-on = ["install"]}
mypy_report = { cmd ="mypy | mypy2junit > mypy-report.xml", depends-on = ["install"]}
# Tests tasks
tests = { depends-on = ["unittests", "examples"] }
unittests = { depends-on = ["unittests_njit", "unittests_jit"] }
unittests_njit = { cmd = [
"NUMBA_DISABLE_JIT=1",
"pytest",
"-n", "auto",
"-m", "not example and not user_acceptance and not unittest_jit",
"--cache-clear",
"--verbose",
"--junitxml=unittest_report.xml",
"--cov=imod",
"--cov-report=term",
"--cov-report=html:coverage",
"--cov-config=.coveragerc"
], depends-on = ["install"], cwd = "imod/tests" }
unittests_jit = { cmd = [
"pytest",
"-n", "auto",
"-m", "unittest_jit",
"--cache-clear",
"--verbose",
"--junitxml=unittest_jit_report.xml",
], depends-on = ["install"], cwd = "imod/tests" }
# User acceptance tests, only works when paths to models are located on local
# drive and are specified in a .env file.
user_acceptance = { cmd = [
"pytest",
"-m", "user_acceptance",
"--cache-clear",
"--verbose",
"--junitxml=user_acceptance_report.xml",
], depends-on = ["install"], cwd = "imod/tests", env = { IMOD_DATA_DIR = ".imod_data" } }
examples = { cmd = [
"pytest",
"-n", "auto",
"-m", "example",
"--cache-clear",
"--verbose",
"--junitxml=examples_report.xml",
], depends-on = ["install"], cwd = "imod/tests", env = { IMOD_DATA_DIR = ".imod_data" } }
[dependencies]
affine = "*"
black = "*"
bottleneck = "*"
cftime = ">=1"
contextily = ">=1"
cytoolz = "*"
dask = "*"
fastcore = "*"
filelock = "*"
flopy = "*"
gdal = ">=3.9.2"
geopandas = "*"
gh = "*"
graphviz = "*"
hatchling = "*"
hypothesis = "*"
jinja2 = "*"
libgdal-hdf5 = "*"
loguru = "*"
matplotlib = "*"
mypy = "*"
netcdf4 = "*"
numba = ">=0.50"
numpy = "*"
pandamesh = "*"
pandas = "*"
pip = "*"
pooch = "*"
pydantic = "*"
pydata-sphinx-theme = "*"
pymetis = "*"
pyproj = "*"
pytest = "*"
pytest-benchmark = "*"
pytest-cases = "*"
pytest-cov = "*"
pytest-dotenv = "*"
pytest-xdist = "*"
python = "3.11.*"
python-build = "*"
python-graphviz = "*"
pyvista = "*"
rasterio = "*"
rioxarray = "*"
ruff = "*"
scipy = "*"
scooby = "*"
setuptools_scm = "*"
shapely = ">=2.0"
sphinx = "*"
sphinx-gallery = "*"
tomli = ">=1.1.0"
tomli-w = "*"
toolz = "*"
tqdm = "*"
twine = "*"
vtk = { version = ">=9.0", build = "*qt*" }
xarray = ">=2023.08.0"
xugrid = ">=0.11.0"
zarr = "*"
[pypi-dependencies]
mypy2junit = "*"
[feature.interactive.dependencies]
ipykernel = "*"
ipython = "*"
jupyter = "*"
[feature.pixi-update.dependencies]
pip = "*"
pixi-diff-to-markdown = "*"
[feature.py310.dependencies]
python = "3.10.12"
pip = "*"
[feature.py311.dependencies]
python = "3.11"
pip = "*"
[feature.py312.dependencies]
python = "3.12"
pip = "*"
[feature.pixi-update.tasks]
update = "pixi update --json | pixi-diff-to-markdown > diff.md"
[feature.py_common.tasks]
test_import = { cmd = [
"python",
"-c",
"import imod"
], depends-on = ["install_with_deps"]}
install_with_deps = "python -m pip install --editable ."
[environments]
default = { features = [], solve-group = "conda-deps" }
interactive = { features = ["interactive"], solve-group = "conda-deps" }
py310 = { features = ["py310", "py_common"], no-default-feature = true }
py311 = { features = ["py311", "py_common"], no-default-feature = true }
py312 = { features = ["py312", "py_common"], no-default-feature = true }
pixi-update = { features = ["pixi-update"], no-default-feature = true }