spadix-cli 0.7.5__py3-none-any.whl → 0.7.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
spadix_cli/__init__.py CHANGED
@@ -27,7 +27,7 @@ from sys import stderr
27
27
 
28
28
  from lark import Lark, Transformer, v_args
29
29
 
30
- __version__ = '0.7.5'
30
+ __version__ = '0.7.6'
31
31
 
32
32
  ###############################################################################
33
33
  USAGE = """
@@ -40,10 +40,11 @@ spadix [Global options] [command] [command options] ...
40
40
 
41
41
  [Global options]
42
42
  --version : Print spadix\' version and exit`
43
- --no-console : Don't use the default console mode: `--event-handlers console_direct+`
43
+ --no-console : Don't use the default console mode: `--event-handlers console_cohesion+`
44
44
  --no-root-check : Don't check that spadix being started from the root of a git project
45
45
  --dry-run : Don't run `colcon` command, instead print the command line and exit
46
46
  --ninja : Use Ninja during the build. Ignored if it's not a build
47
+ --non-ninja : Do not use Ninja (overrides default on non-Windows)
47
48
 
48
49
  Commands:
49
50
  clean :Clean all packages (`rm -rf log install build`)
@@ -248,7 +249,7 @@ class command_line_parser:
248
249
  self.dry_run = False
249
250
  self.is_test = False
250
251
  self.is_parallel_overridden = False
251
- self.use_ninja = False
252
+ self.use_ninja = not is_windows()
252
253
 
253
254
  ###########################################################################
254
255
  # Extract global options form the provided arguments
@@ -268,6 +269,8 @@ class command_line_parser:
268
269
  self.dry_run = True
269
270
  elif arg == '--ninja':
270
271
  self.use_ninja = True
272
+ elif arg == '--non-ninja':
273
+ self.use_ninja = False
271
274
  else:
272
275
  self.cmd_line.append(arg)
273
276
  else:
@@ -279,7 +282,7 @@ class command_line_parser:
279
282
  self.cmd_line.append('--merge-install')
280
283
  if not self.no_console:
281
284
  self.cmd_line.append('--event-handlers')
282
- self.cmd_line.append('console_direct+')
285
+ self.cmd_line.append('console_cohesion+')
283
286
 
284
287
  ###########################################################################
285
288
  def parse_package_list(self, list_string):
@@ -315,6 +318,7 @@ class command_line_parser:
315
318
  if self.use_ninja:
316
319
  cmake_args.append(" -GNinja")
317
320
 
321
+ user_set_cmake_build_type = False
318
322
  is_debug = False
319
323
  if is_windows():
320
324
  is_debug = True
@@ -333,6 +337,11 @@ class command_line_parser:
333
337
  elif arg == '--cmake-args':
334
338
  expect_cmake_args = True
335
339
  continue
340
+ elif arg.startswith('-D'):
341
+ cmake_args.append(' ' + arg)
342
+ if 'CMAKE_BUILD_TYPE' in arg:
343
+ user_set_cmake_build_type = True
344
+ continue
336
345
  elif arg == '--build-base':
337
346
  self.cmd_line.append(arg)
338
347
  expect_BUILD_BASE = True
@@ -530,10 +539,12 @@ class command_line_parser:
530
539
  self.cmd_line.append(arg)
531
540
 
532
541
  if self.is_build:
533
- if is_debug:
534
- cmake_args.append(' -DCMAKE_BUILD_TYPE=Debug')
535
- else:
536
- cmake_args.append(' -DCMAKE_BUILD_TYPE=Release')
542
+ if not user_set_cmake_build_type and not any(
543
+ 'CMAKE_BUILD_TYPE' in a for a in cmake_args):
544
+ if is_debug:
545
+ cmake_args.append(' -DCMAKE_BUILD_TYPE=Debug')
546
+ else:
547
+ cmake_args.append(' -DCMAKE_BUILD_TYPE=RelWithDebInfo')
537
548
 
538
549
  if len(cmake_args) > 1:
539
550
  self.cmd_line.extend(cmake_args)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spadix-cli
3
- Version: 0.7.5
3
+ Version: 0.7.6
4
4
  Summary: A friendly wrapper for colcon
5
5
  Home-page: https://pronto.ai
6
6
  Author: Serge Nikulin
@@ -34,6 +34,7 @@ Dynamic: summary
34
34
  # Spadix, a friendly wrapper for `colcon`
35
35
 
36
36
  Copyright (C) 2021-2024 SafeAI
37
+
37
38
  Copyright (C) 2025 Pronto.AI
38
39
 
39
40
  ## Why?
@@ -64,9 +65,11 @@ Usage:
64
65
  spadix [Global options] [command] [command options] ...
65
66
 
66
67
  [Global options]
67
- --no-merge : Don't use --merge-install option for colcon
68
- --no-console : Don't use the default console mode: `--event-handlers console_direct+`
69
- --no-root-check : Don't check that spadix being started from the root of a git project
68
+ --no-merge : Do not use --merge-install option for colcon
69
+ --no-console : Do not use the default console mode: `--event-handlers console_cohesion+`
70
+ --no-root-check : Do not check that spadix being started from the root of a git project
71
+ --ninja : Use Ninja for building when available
72
+ --non-ninja : Do not use Ninja for building, even if it is available
70
73
 
71
74
  Commands:
72
75
  clean :Clean all projects (essentially executes `rm -rf log install build`)
@@ -0,0 +1,8 @@
1
+ spadix_cli/__init__.py,sha256=duX95POquKI0o8ZScCQ0dIbhM1ixPPK_MdpO-8lKX18,24699
2
+ spadix_cli/__main__.py,sha256=7uY4Swdt6Tv6oFGnYjpa15qrtmwhSt4d6y-UqNefM2U,759
3
+ spadix_cli-0.7.6.dist-info/licenses/LICENSE,sha256=AU8-aFax2NopH_n1ja1fXDdqCOJWpuASgSgOIm5Z55w,1083
4
+ spadix_cli-0.7.6.dist-info/METADATA,sha256=DkMfMIYahq6OabhcWtx3gWhtX9RiUBFcVKLEL42uis0,3138
5
+ spadix_cli-0.7.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ spadix_cli-0.7.6.dist-info/entry_points.txt,sha256=oUDP6DnZCF5Ynkmodv1uKAoWK_uFmly093arRd7H3f0,52
7
+ spadix_cli-0.7.6.dist-info/top_level.txt,sha256=2nIIYCRacGMBV3v38jf8tNUxx52VlCJSoklnyuF2H5A,11
8
+ spadix_cli-0.7.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- spadix_cli/__init__.py,sha256=UMk1gTnCyZurMxphhbIFtTzCawgwL94i1YIFe4qjPZk,24106
2
- spadix_cli/__main__.py,sha256=7uY4Swdt6Tv6oFGnYjpa15qrtmwhSt4d6y-UqNefM2U,759
3
- spadix_cli-0.7.5.dist-info/licenses/LICENSE,sha256=AU8-aFax2NopH_n1ja1fXDdqCOJWpuASgSgOIm5Z55w,1083
4
- spadix_cli-0.7.5.dist-info/METADATA,sha256=UUBy1_Cs35RF06VEqv-O1zDAXRV9ySeJqcxtPLbHvt4,3010
5
- spadix_cli-0.7.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
- spadix_cli-0.7.5.dist-info/entry_points.txt,sha256=oUDP6DnZCF5Ynkmodv1uKAoWK_uFmly093arRd7H3f0,52
7
- spadix_cli-0.7.5.dist-info/top_level.txt,sha256=2nIIYCRacGMBV3v38jf8tNUxx52VlCJSoklnyuF2H5A,11
8
- spadix_cli-0.7.5.dist-info/RECORD,,