-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpixi.toml
More file actions
228 lines (183 loc) · 5.96 KB
/
Copy pathpixi.toml
File metadata and controls
228 lines (183 loc) · 5.96 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
[workspace]
authors = [
"Albert Steppi <albert.steppi@gmail.com>",
"Irwin Zaid <irwin.zaid@gmail.com>",
"Florian Bourgey <bourgeyflorian@gmail.com>",
"Lucas Colley <lucas.colley8@gmail.com>",
"Daniel Schmitz <danielschmitzsiegen@googlemail.com>",
]
channels = ["https://prefix.dev/conda-forge"]
description = "Special function implementations."
name = "xsf"
platforms = ["win-64", "linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
version = "0.2.2"
requires-pixi = ">=0.68.0"
preview = ["pixi-build"]
# environments
[environments.default]
features = ["build", "tests", "tests-debug"]
solve-group = "default"
[environments.coverage]
features = ["build", "tests", "cov"]
solve-group = "default"
[environments.lint]
features = ["clang-format"]
no-default-feature = true
solve-group = "default"
[environments.cupy-tests]
features = ["cupy-tests"]
solve-group = "default"
# default feature
[dependencies]
python = "*"
xsref = { git = "https://github.com/scipy/xsref", rev = "1a5bb3d39efe4e9f26dc4da9c04ebf5d9d518331" }
# non-default features
[feature.build.dependencies]
cmake = "*"
ninja = "*"
ccache = "*"
[feature.build.target.unix.dependencies]
cxx-compiler = "*"
[feature.build.target.win-64.dependencies]
vs2026_win-64 = "*"
[feature.build.tasks.configure]
description = "Configure CMake in the build directory for a release build."
cmd = [
"cmake",
# The source is in the root directory
"-S .",
# We want to build in the build directory
"-B build",
# use ninja
"-G Ninja",
# release build
"-DCMAKE_BUILD_TYPE=Release",
]
[feature.build.tasks.build-only]
description = "Build the release CMake configuration in the build directory."
cmd = ["cmake", "--build", "build"]
[feature.build.tasks.build]
description = "Run configure, then build the project with default settings."
depends-on = ["configure", "build-only"]
[feature.tests.dependencies]
catch2 = "*"
libarrow-all = "*"
[feature.tests.tasks.configure-tests]
description = "Configure CMake with BUILD_TESTS enabled in build/."
cmd = [
"cmake",
# Enable building tests
"-DBUILD_TESTS=ON",
# The source is in the root directory
"-S .",
# We want to build in the build directory
"-B build",
# use ninja
"-G Ninja",
# release build
"-DCMAKE_BUILD_TYPE=Release",
]
[feature.tests.tasks.build-tests]
description = "Configure and build the project for test execution."
depends-on = ["configure-tests", "build-only"]
[feature.tests.tasks.tests-only]
description = "Run CTest test suite from build/tests with verbose failures."
args = [{ arg = "parallel", default = "2" }]
cmd = ["ctest", "--output-on-failure", "--test-dir", "build/tests", "-j{{ parallel }}"]
[feature.tests.tasks.tests]
description = "Build and run CTest test suite from build/tests with verbose failures."
args = [{ arg = "parallel", default = "2" }]
depends-on = [
"build-tests",
{ task = "tests-only", args = ["{{ parallel }}"] },
]
[feature.tests-debug.tasks.configure-tests-debug]
description = "Configure CMake with BUILD_TESTS enabled in Debug mode (catches asserts that can cause program to abort)."
cmd = [
"cmake",
# Enable building tests
"-DBUILD_TESTS=ON",
# set as debug build
"-DCMAKE_BUILD_TYPE=Debug",
# The source is in the root directory
"-S .",
# use build-debug directory to avoid overwriting build directory.
"-B build-debug",
# use ninja
"-G Ninja",
# debug build
"-DCMAKE_BUILD_TYPE=Debug",
]
[feature.tests-debug.tasks.build-debug-only]
description = "Build the debug CMake configuration in build-debug/."
cmd = ["cmake", "--build", "build-debug"]
[feature.tests.tasks.build-tests-debug]
description = "Configure and build the project for test execution in Debug mode."
depends-on = ["configure-tests-debug", "build-debug-only"]
[feature.tests-debug.tasks.tests-debug]
description = "Run debug-mode CTest suite from build-debug/tests."
args = [{ arg = "parallel", default = "2" }]
depends-on = ["build-tests-debug"]
cmd = ["ctest", "--output-on-failure", "--test-dir", "build-debug/tests", "-j{{ parallel }}"]
[feature.clang-format.dependencies]
git = "*"
clang-format = "*"
[feature.clang-format.tasks.format]
description = "Format tracked C++ source and header files in place."
cmd = "git ls-files '*.cpp' '*.h' | xargs clang-format -i --style=file"
[feature.clang-format.tasks.format-dry-error]
description = "Check C++ formatting and fail if any file needs changes."
cmd = "git ls-files '*.cpp' '*.h' | xargs clang-format --style=file --Werror --dry-run"
[feature.cov]
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
[feature.cov.dependencies]
lcov = "*"
[feature.cov.tasks.configure-coverage]
description = "Configure CMake for coverage instrumentation and tests."
cmd = [
"cmake",
# Enable building tests
"-DBUILD_TESTS=ON",
# Enable Coverage
"-DCMAKE_BUILD_TYPE=Coverage",
# The source is in the root directory
"-S .",
# We want to build in the build directory
"-B build",
# use ninja
"-G Ninja",
]
[feature.cov.tasks.open-coverage]
description = "Open the generated HTML coverage report index page."
cwd = "build/coverage_report"
cmd = ["open", "index.html"]
[feature.cov.tasks.build-tests-cov]
description = "Build release test binaries with coverage enabled."
depends-on = ["configure-coverage", "build-only"]
[feature.cov.tasks.tests-cov]
description = "Run release CTest suite configured for coverage."
args = [{ arg = "parallel", default = "2" }]
depends-on = [
"build-tests-cov",
{ task = "tests-only", args = ["{{ parallel }}"] },
]
[feature.cov.tasks.coverage]
description = "Build and generate the HTML coverage report target."
args = [{ arg = "parallel", default = "2" }]
depends-on = [{ task = "tests-cov", args = ["{{ parallel }}"] }]
cmd = [
"cmake",
"--build",
"build",
"--target",
"coverage_html",
]
[feature.cupy-tests]
platforms = ["linux-64"]
[feature.cupy-tests.dependencies]
cupy = "*"
pytest = "*"
pytest-forked = "*"
[feature.cupy-tests.tasks.test-cupy]
description = "Run CuPy integration tests."
cmd = "pytest --forked python_tests/test_cupy.py"