spl-core 7.6.0rc1.dev1__py3-none-any.whl → 7.6.1__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.
spl_core/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "7.6.0-rc1.dev.1"
1
+ __version__ = "7.6.1"
@@ -1,6 +1,5 @@
1
1
  import locale
2
2
  import subprocess
3
- import sys
4
3
  from pathlib import Path
5
4
  from typing import Dict, List, Optional
6
5
 
@@ -29,7 +28,19 @@ class CommandLineExecutor:
29
28
  Returns:
30
29
  - A subprocess.CompletedProcess object representing the result of the command execution.
31
30
  """
32
- command = " ".join([cmd] if isinstance(cmd, str) else cmd)
31
+ if isinstance(cmd, str):
32
+ command: str | list[str] = cmd
33
+ use_shell = True
34
+ else:
35
+ # Check if any argument contains quotes, which indicates shell processing is needed
36
+ has_quotes = any('"' in arg or "'" in arg for arg in cmd)
37
+ if has_quotes:
38
+ command = " ".join(cmd)
39
+ use_shell = True
40
+ else:
41
+ command = cmd
42
+ use_shell = False
43
+
33
44
  output = ""
34
45
  try:
35
46
  print("=" * 120)
@@ -44,7 +55,9 @@ class CommandLineExecutor:
44
55
  text=True,
45
56
  env=self.env,
46
57
  universal_newlines=True,
47
- encoding="cp850" if (locale.getlocale()[0] == "de_DE" and sys.platform == "win32") else "utf-8",
58
+ encoding=locale.getpreferredencoding(False),
59
+ errors="replace",
60
+ shell=use_shell,
48
61
  ) as process:
49
62
  if process.stdout:
50
63
  for line in process.stdout:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: spl-core
3
- Version: 7.6.0rc1.dev1
3
+ Version: 7.6.1
4
4
  Summary: Software Product Line Support for CMake
5
5
  License: MIT
6
6
  Author: Avengineers
@@ -1,7 +1,7 @@
1
- spl_core/__init__.py,sha256=2gY838g6_bBYT-OoraqhFcJpeqoshHodwrzyOoAVO1Q,32
1
+ spl_core/__init__.py,sha256=LhyfBkEBbOgB0Jk4g3WaFpdYuMxHYgQiZOy-lA4hMwE,22
2
2
  spl_core/__run.py,sha256=DphnN7_Bjiw_mOOztsHxTDHS8snz1g2MMWAaJpZxPKM,361
3
3
  spl_core/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- spl_core/common/command_line_executor.py,sha256=GHIMpNiMD_eP44vq7L_HiC08aKt7lgW_wn_omU6REwQ,2217
4
+ spl_core/common/command_line_executor.py,sha256=fvrzZRFmxgY9pMf2byr3ufyQoT7zMd4hzruqObMgRs0,2622
5
5
  spl_core/common/path.py,sha256=sDujd3n4XP1XGjHc7ImXEdjihO6A8BOIDbKCf7HgQ0Y,462
6
6
  spl_core/common.cmake,sha256=sRWqQeK04iUpeM3beQZXIi5mpEQNyO751O-yBoFCrqk,35160
7
7
  spl_core/conan.cmake,sha256=i1AuyN-e8cczX7TI1nl6e3Y8N-EP-QXPVY7LG6NUyJY,41958
@@ -63,8 +63,8 @@ spl_core/spl.cmake,sha256=W8h-Zj-N302qxMrRG8MhoEkJ0io92bWGp4Y5r8LBQnc,4535
63
63
  spl_core/test_utils/archive_artifacts_collection.py,sha256=x7LH5dGIvssyhXsTFzB6rjgb5D2efKvHVpnjId3MNDk,5126
64
64
  spl_core/test_utils/base_variant_test_runner.py,sha256=Oq27lkJlpB_y-p2_8S23F5zjn1438HW148q-hQNz3EY,3795
65
65
  spl_core/test_utils/spl_build.py,sha256=o3MCWYRb769bXut_9EM_ZEweRKH7SSAuajh9277mKuI,8233
66
- spl_core-7.6.0rc1.dev1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
67
- spl_core-7.6.0rc1.dev1.dist-info/METADATA,sha256=XENTS2NI5WpHV4m70zXtMb4b3ZbEqNMrqgT22NDZe7o,5165
68
- spl_core-7.6.0rc1.dev1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
69
- spl_core-7.6.0rc1.dev1.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
70
- spl_core-7.6.0rc1.dev1.dist-info/RECORD,,
66
+ spl_core-7.6.1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
67
+ spl_core-7.6.1.dist-info/METADATA,sha256=xbBF90UeFv1q1v6GxZiHpH1Rcj4naz6v6CLWMZh_SZI,5157
68
+ spl_core-7.6.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
69
+ spl_core-7.6.1.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
70
+ spl_core-7.6.1.dist-info/RECORD,,