-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
152 lines (127 loc) · 4.51 KB
/
Copy pathpixi.toml
File metadata and controls
152 lines (127 loc) · 4.51 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
[workspace]
name = "voids"
version = "0.1.11"
description = "Scientific Python package for digital porous media research"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "win-64"]
##########################################
########## Core dependencies #############
##########################################
[dependencies]
python = ">=3.11,<3.13"
[feature.core.dependencies]
numpy = "*"
scipy = "*"
edt = ">=3.0"
numba = ">=0.60"
scikit-image = ">=0.22"
tifffile = ">=2023.8"
h5py = ">=3.10"
typing_extensions = ">=4.10"
ipykernel = ">=7.2.0,<8"
tqdm = ">=4.67.3,<5"
plotly = ">=5.0"
[feature.core.pypi-dependencies]
voids = { path = ".", editable = true }
porespy = ">=2.4"
openpnm = ">=3.6,<3.7"
pyvista = ">=0.43"
kaleido = ">=0.2.1"
meshio = ">=5.3"
##########################################
####### Platform dependencies ############
##########################################
[target.linux-64.dependencies]
mkl = ">=2023"
[target.linux-64.pypi-dependencies]
pypardiso = ">=0.4"
[target.linux-64.activation.env]
UCX_TLS = "tcp,self"
##########################################
####### Features dependencies ############
##########################################
[feature.dev.dependencies]
ruff = ">=0.6"
mypy = ">=1.10"
pre-commit = ">=3.7"
ipython = ">=8.0"
jupyterlab = ">=4.0"
jupytext = ">=1.19.1,<2"
pandas = ">=3.0.1,<4"
zlib = ">=1.3.2,<2"
[feature.notebooks.dependencies]
ipython = ">=8.0"
jupyterlab = ">=4.0"
jupytext = ">=1.19.1,<2"
[feature.viz.dependencies]
vtk = "9.*"
trame = "3.*"
matplotlib-base = "*"
[feature.test.dependencies]
pytest = ">=8.0"
pytest-cov = ">=5.0"
pytest-regressions = ">=2.8"
networkx = ">=3.2"
diff-cover = "*"
[feature.lbm.pypi-dependencies]
xlb = ">=0.3,<0.4"
jax = ">=0.8,<0.10"
[feature.fem.dependencies]
fenics-dolfinx = ">=0.9,<0.11"
[feature.solvers.dependencies]
suitesparse = "*"
libumfpack = "*"
scikit-umfpack = "*"
[feature.solvers.pypi-dependencies]
pyamg = ">=5.3"
[feature.docs.dependencies]
ruff = ">=0.6"
[feature.docs.pypi-dependencies]
mkdocs = ">=1.5,<2.0"
mkdocs-material = ">=9.5"
mkdocstrings = {version = ">=0.25", extras = ["python"]}
[feature.thermo.pypi-dependencies]
coolprop = ">=6.6"
thermo = ">=0.6.0, <0.7"
[target.unix.activation.env]
PYTHONPATH = "$PIXI_PROJECT_ROOT/src${PYTHONPATH:+:$PYTHONPATH}"
VOIDS_PROJECT_ROOT = "$PIXI_PROJECT_ROOT"
VOIDS_NOTEBOOKS_PATH = "$PIXI_PROJECT_ROOT/notebooks"
VOIDS_EXAMPLES_PATH = "$PIXI_PROJECT_ROOT/examples"
VOIDS_DATA_PATH = "$PIXI_PROJECT_ROOT/examples/data"
[target.win.activation.env]
PYTHONPATH = "%PIXI_PROJECT_ROOT%\\src;%PYTHONPATH%"
VOIDS_PROJECT_ROOT = "%PIXI_PROJECT_ROOT%"
VOIDS_NOTEBOOKS_PATH = "%PIXI_PROJECT_ROOT%\\notebooks"
VOIDS_EXAMPLES_PATH = "%PIXI_PROJECT_ROOT%\\examples"
VOIDS_DATA_PATH = "%PIXI_PROJECT_ROOT%\\examples\\data"
[target.osx-arm64.activation.env]
FI_PROVIDER = "tcp"
[tasks]
lint = "ruff check src tests"
format-check = "ruff format --check src tests"
typecheck = "mypy"
test = "pytest -q -v"
test-lbm = "pytest -q tests/test_benchmark_xlb.py"
test-cov = "pytest --cov=voids --cov-report=term-missing"
test-cov-report = "pytest --cov=voids --cov-report=term-missing --cov-report=xml:coverage.xml"
spec-check = "pytest -q tests/test_schema_network.py"
examples-singlephase = "python -m voids.simulators.run_singlephase"
precommit = "pre-commit run --all-files"
crosscheck-roundtrip = "pytest -q tests/test_crosscheck_roundtrip.py"
notebooks-smoke = "python -c 'from pathlib import Path; n=sorted(Path(\"notebooks\").glob(\"*.ipynb\")); print(len(n), [p.name for p in n])'"
register-kernels = "pixi run -e default python -m ipykernel install --user --name voids-default --display-name 'voids (default)' && pixi run -e test python -m ipykernel install --user --name voids-test --display-name 'voids (test)'"
unregister-kernels = "python -m jupyter kernelspec uninstall -f voids-default voids-test"
bump-version = "python scripts/bump_version.py"
sync-deps = "python scripts/sync_deps.py"
sync-deps-check = "python scripts/sync_deps.py --check"
notebooks-sync = "python scripts/sync_notebooks.py"
precommit-sync = "python scripts/sync_notebooks.py && pre-commit run --all-files"
docs-build = "pixi run -e docs mkdocs build"
docs-serve = "pixi run -e docs mkdocs serve"
[feature.docs.activation.env]
NO_MKDOCS_2_WARNING = "1"
[environments]
default = { features = ["core", "dev", "viz", "notebooks", "thermo", "lbm", "fem", "solvers"], solve-group = "default" }
test = { features = ["core", "dev", "viz", "thermo", "lbm", "fem", "solvers", "test"], solve-group = "default" }
docs = { features = ["docs"], solve-group = "docs" }