Debian Codegraph @

.vscode/tasks.json

raw
1 {
2 // See https://go.microsoft.com/fwlink/?LinkId=733558
3 // for the documentation about the tasks.json format
4 "version": "2.0.0",
5 "tasks": [
6 {
7 "label": "Compile linux debug (single, jack)",
8 "type": "shell",
9 "command": "${config:activate_venv}; ${config:build_linux_debug}; ${config:install_linux}",
10 "problemMatcher": [],
11 "options": {
12 "cwd": "${workspaceFolder}"
13 },
14 "presentation": {
15 "echo": true,
16 "reveal": "always",
17 "focus": true,
18 "panel": "shared",
19 "showReuseMessage": true,
20 "clear": false
21 }
22 },
23 {
24 "label": "Compile linux (single, jack)",
25 "type": "shell",
26 "command": "${config:activate_venv}; ${config:build_linux_single}; ${config:install_linux}",
27 "problemMatcher": [],
28 "options": {
29 "cwd": "${workspaceFolder}"
30 },
31 "presentation": {
32 "echo": true,
33 "reveal": "always",
34 "focus": true,
35 "panel": "shared",
36 "showReuseMessage": true,
37 "clear": false
38 }
39 },
40 {
41 "label": "Compile linux (double, jack)",
42 "type": "shell",
43 "command": "${config:activate_venv}; ${config:build_linux_double}; ${config:install_linux}",
44 "problemMatcher": [],
45 "options": {
46 "cwd": "${workspaceFolder}"
47 },
48 "presentation": {
49 "echo": true,
50 "reveal": "always",
51 "focus": true,
52 "panel": "shared",
53 "showReuseMessage": true,
54 "clear": false
55 }
56 },
57 {
58 "label": "Compile Windows (single)",
59 "type": "shell",
60 "command": "py -3.${input:pyMinVersion} -m build & py -3.${input:pyMinVersion} -m pip install --user --force-reinstall dist\\pyo-${config:pyo_version}-cp3${input:pyMinVersion}-cp3${input:pyMinVersion}-win_amd64.whl",
61 "problemMatcher": [],
62 "options": {
63 "cwd": "${workspaceFolder}"
64 },
65 "presentation": {
66 "echo": true,
67 "reveal": "always",
68 "focus": true,
69 "panel": "shared",
70 "showReuseMessage": true,
71 "clear": false
72 }
73 },
74 {
75 "label": "Compile Windows (double)",
76 "type": "shell",
77 "command": "py -3.${input:pyMinVersion} -m build --config-setting=\"--build-option=--use-double\" & py -3.${input:pyMinVersion} -m pip install --user --force-reinstall dist\\pyo-${config:pyo_version}-cp3${input:pyMinVersion}-cp3${input:pyMinVersion}-win_amd64.whl",
78 "problemMatcher": [],
79 "options": {
80 "cwd": "${workspaceFolder}"
81 },
82 "presentation": {
83 "echo": true,
84 "reveal": "always",
85 "focus": true,
86 "panel": "shared",
87 "showReuseMessage": true,
88 "clear": false
89 }
90 },
91 {
92 "label": "Compile MacOS arm64 (single)",
93 "type": "shell",
94 "command": "/usr/local/bin/python3.${input:pyMinVersion} -m build --config-setting=\"--build-option=--use-coreaudio\" --config-setting=\"--build-option=--plat-name=macosx_13_0_arm64\" && /usr/local/bin/python3.${input:pyMinVersion} -m pip install --user --force-reinstall dist/pyo-*-cp3${input:pyMinVersion}-cp3${input:pyMinVersion}-*_arm64.whl",
95 "problemMatcher": [],
96 "options": {
97 "cwd": "${workspaceFolder}"
98 },
99 "presentation": {
100 "echo": true,
101 "reveal": "always",
102 "focus": true,
103 "panel": "shared",
104 "showReuseMessage": true,
105 "clear": false
106 }
107 },
108 {
109 "label": "Compile MacOS arm64 (double)",
110 "type": "shell",
111 "command": "/usr/local/bin/python3.${input:pyMinVersion} -m build --config-setting=\"--build-option=--use-coreaudio\" --config-setting=\"--build-option=--use-double\" --config-setting=\"--build-option=--plat-name=macosx_13_0_arm64\" && /usr/local/bin/python3.${input:pyMinVersion} -m pip install --user --force-reinstall dist/pyo-*-cp3${input:pyMinVersion}-cp3${input:pyMinVersion}-*_arm64.whl",
112 "problemMatcher": [],
113 "options": {
114 "cwd": "${workspaceFolder}"
115 },
116 "presentation": {
117 "echo": true,
118 "reveal": "always",
119 "focus": true,
120 "panel": "shared",
121 "showReuseMessage": true,
122 "clear": false
123 }
124 },
125 {
126 "label": "Compile MacOS x86_64 (single)",
127 "type": "shell",
128 "command": "/usr/local/bin/python3.${input:pyMinVersion} -m build --config-setting=\"--build-option=--use-coreaudio\" --config-setting=\"--build-option=--plat-name=macosx_12_0_x86_64\" && /usr/local/bin/python3.${input:pyMinVersion} -m pip install --user --force-reinstall dist/pyo-*-cp3${input:pyMinVersion}-cp3${input:pyMinVersion}-*_x86_64.whl",
129 "problemMatcher": [],
130 "options": {
131 "cwd": "${workspaceFolder}"
132 },
133 "presentation": {
134 "echo": true,
135 "reveal": "always",
136 "focus": true,
137 "panel": "shared",
138 "showReuseMessage": true,
139 "clear": false
140 }
141 },
142 {
143 "label": "Compile MacOS x86_64 (double)",
144 "type": "shell",
145 "command": "/usr/local/bin/python3.${input:pyMinVersion} -m build --config-setting=\"--build-option=--use-coreaudio\" --config-setting=\"--build-option=--use-double\" --config-setting=\"--build-option=--plat-name=macosx_12_0_x86_64\" && /usr/local/bin/python3.${input:pyMinVersion} -m pip install --user --force-reinstall dist/pyo-*-cp3${input:pyMinVersion}-cp3${input:pyMinVersion}-*_x86_64.whl",
146 "problemMatcher": [],
147 "options": {
148 "cwd": "${workspaceFolder}"
149 },
150 "presentation": {
151 "echo": true,
152 "reveal": "always",
153 "focus": true,
154 "panel": "shared",
155 "showReuseMessage": true,
156 "clear": false
157 }
158 },
159 {
160 "label": "Clean up linux",
161 "type": "shell",
162 "command": "rm -rf build dist",
163 "problemMatcher": [],
164 "options": {
165 "cwd": "${workspaceFolder}"
166 },
167 "presentation": {
168 "echo": true,
169 "reveal": "always",
170 "focus": true,
171 "panel": "shared",
172 "showReuseMessage": true,
173 "clear": false
174 }
175 },
176 {
177 "label": "Clean up Windows",
178 "type": "shell",
179 "command": "rd /s /q build dist",
180 "problemMatcher": [],
181 "options": {
182 "cwd": "${workspaceFolder}"
183 },
184 "presentation": {
185 "echo": true,
186 "reveal": "always",
187 "focus": true,
188 "panel": "shared",
189 "showReuseMessage": true,
190 "clear": false
191 }
192 },
193 {
194 "label": "Clean up MacOS",
195 "type": "shell",
196 "command": "rm -rf build dist",
197 "problemMatcher": [],
198 "options": {
199 "cwd": "${workspaceFolder}"
200 },
201 "presentation": {
202 "echo": true,
203 "reveal": "always",
204 "focus": true,
205 "panel": "shared",
206 "showReuseMessage": true,
207 "clear": false
208 }
209 },
210 {
211 "label": "Run unit tests linux",
212 "type": "shell",
213 "command": "${config:activate_venv}; jack_control stop; export -n PYO_SERVER_AUDIO; cd tests/pytests; python3 -m pytest -vv",
214 "problemMatcher": [],
215 "options": {
216 "cwd": "${workspaceFolder}"
217 },
218 "presentation": {
219 "echo": true,
220 "reveal": "always",
221 "focus": true,
222 "panel": "shared",
223 "showReuseMessage": true,
224 "clear": false
225 }
226 },
227 {
228 "label": "Run current file linux",
229 "type": "shell",
230 "command": "source ${workspaceFolder}/.venv/bin/activate; ${workspaceFolder}/.venv/bin/python ${file}",
231 "problemMatcher": [],
232 "options": {
233 "cwd": "${fileDirname}"
234 },
235 "presentation": {
236 "echo": true,
237 "reveal": "always",
238 "focus": true,
239 "panel": "shared",
240 "showReuseMessage": true,
241 "clear": false
242 }
243 },
244 {
245 "label": "Run unit tests Windows",
246 "type": "shell",
247 "command": "cd tests/pytests & py -3.${input:pyMinVersion} -m pytest",
248 "problemMatcher": [],
249 "options": {
250 "cwd": "${workspaceFolder}"
251 },
252 "presentation": {
253 "echo": true,
254 "reveal": "always",
255 "focus": true,
256 "panel": "shared",
257 "showReuseMessage": true,
258 "clear": false
259 }
260 },
261 {
262 "label": "Run unit tests MacOS",
263 "type": "shell",
264 "command": "cd tests/pytests; /usr/local/bin/python3.${input:pyMinVersion} -m pytest",
265 "problemMatcher": [],
266 "options": {
267 "cwd": "${workspaceFolder}"
268 },
269 "presentation": {
270 "echo": true,
271 "reveal": "always",
272 "focus": true,
273 "panel": "shared",
274 "showReuseMessage": true,
275 "clear": false
276 }
277 },
278 {
279 "label": "Run unit tests with coverage (linux)",
280 "type": "shell",
281 "command": "${config:activate_venv}; cd tests/pytests; coverage run --source=pyo --omit=*/examples/*,*/editor/* -m pytest; coverage html",
282 "problemMatcher": [],
283 "options": {
284 "cwd": "${workspaceFolder}"
285 },
286 "presentation": {
287 "echo": true,
288 "reveal": "always",
289 "focus": true,
290 "panel": "shared",
291 "showReuseMessage": true,
292 "clear": false
293 }
294 },
295 {
296 "label": "Run EPyo",
297 "type": "shell",
298 "command": "cd ~; source ${workspaceFolder}/.venv/bin/activate; epyo",
299 "problemMatcher": [],
300 "presentation": {
301 "echo": true,
302 "reveal": "always",
303 "focus": true,
304 "panel": "shared",
305 "showReuseMessage": true,
306 "clear": false
307 }
308 },
309 {
310 "label": "Build Documentation",
311 "type": "shell",
312 "command": "python3 build.py --${input:docFormat}",
313 "problemMatcher": [],
314 "options": {
315 "cwd": "${workspaceFolder}/documentation"
316 },
317 "presentation": {
318 "echo": true,
319 "reveal": "always",
320 "focus": true,
321 "panel": "shared",
322 "showReuseMessage": true,
323 "clear": false
324 }
325 }
326 ],
327 "inputs": [
328 {
329 "type": "pickString",
330 "id": "pyMinVersion",
331 "description": "Choose your python minor version...",
332 "options": ["9", "10", "11", "12", "13"],
333 "default": "9"
334 },
335 {
336 "type": "pickString",
337 "id": "docFormat",
338 "description": "Choose the documentation format...",
339 "options": ["html", "latex", "man"],
340 "default": "html"
341 }
342 ]
343 }