-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpixi.toml
More file actions
77 lines (62 loc) · 1.93 KB
/
pixi.toml
File metadata and controls
77 lines (62 loc) · 1.93 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
[workspace]
channels = ["conda-forge"]
name = "FANS"
platforms = ["linux-64", "linux-aarch64", "osx-arm64", "osx-64"]
preview = ["pixi-build"]
[dependencies]
fans = { path = "." }
[feature.dashboard.dependencies]
python = ">=3.14.3,<3.15"
pytest = ">=9.0.2,<10"
pre-commit = ">=4.5.1,<5"
ipykernel = ">=7.2.0,<8"
time = ">=1.9,<2"
MSUtils = ">=0.1.0,<0.2"
[feature.dashboard.tasks]
pytest = "pytest -v -s"
precommit = "pre-commit run --all-files"
[feature.dashboard.tasks.h52xdmf]
args = ["file", { arg = "extra", default = "" }]
cmd = "cd \"$INIT_CWD\" && python -m MSUtils.general.h52xdmf {{ extra }} {{ file }}"
[feature.dev.dependencies]
cmake = ">=4.2.3,<5"
openmpi-mpicxx = ">=5.0.10,<6"
hdf5 = { version = ">=1.14.6,<2", build = "mpi_openmpi_*" }
fftw = { version = ">=3.3.10,<4", build = "mpi_openmpi_*" }
eigen = ">=3.4.0,<4"
nlohmann_json = ">=3.12.0,<4"
time = ">=1.9,<2"
[tasks]
test = { cmd = "pytest -v -s --from-pixi", cwd = "test/pytest", depends-on = ["test-fans"] }
test-fans = { cmd = "./run_tests.sh -n {{n}}", args = [
{ arg = "n", default = "2" }, # Number of threads
], cwd = "test" }
[environments]
default = { features = ["dashboard"]}
dashboard = { features = ["dashboard"], no-default-feature = true }
dev = { features = ["dev"], no-default-feature = true }
################## Pixi build part ##################
[package]
name = "fans"
version = "0.6.1"
[package.build]
backend = { name = "pixi-build-cmake", version = "*" }
[package.build.config]
extra-args = [
"-DFANS_LIBRARY_FOR_MICRO_MANAGER=ON",
]
[workspace.target.osx-arm64.build-variants]
cxx_compiler = ["clangxx"]
[workspace.target.linux-64.build-variants]
cxx_compiler = ["clangxx"]
[package.build-dependencies]
cmake = "*"
pybind11 = "*"
pkg-config = "*"
ninja = "*"
[package.host-dependencies]
hdf5 = { version = "*", build = "* mpi_openmpi*" }
fftw = { version = "*", build = "* mpi_openmpi*" }
openmpi-mpicxx = "*"
eigen = "*"
nlohmann_json = "*"