MCPcopy Create free account
hub / github.com/FastLED/FastLED / get_platformio_version

Function get_platformio_version

ci/docker_utils/build_image.py:24–44  ·  view source on GitHub ↗

Get the installed PlatformIO version. Returns: Version string (e.g., '6.1.15')

()

Source from the content-addressed store, hash-verified

22
23
24def get_platformio_version() -> str:
25 """Get the installed PlatformIO version.
26
27 Returns:
28 Version string (e.g., '6.1.15')
29 """
30 try:
31 result = RunningProcess.run(
32 ["pio", "--version"],
33 cwd=None,
34 check=False,
35 timeout=10,
36 )
37 # Output format: "PlatformIO Core, version 6.1.15"
38 version_line = result.stdout.strip()
39 if "version" in version_line:
40 return version_line.split("version")[-1].strip()
41 return version_line
42 except (RuntimeError, FileNotFoundError):
43 # If PlatformIO is not installed, return a default version
44 return "unknown"
45
46
47def generate_config_hash(board_name: str, framework: Optional[str] = None) -> str:

Callers 1

generate_config_hashFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected