MCPcopy
hub / github.com/pex-tool/pex / get_fabric_versions

Function get_fabric_versions

tests/integration/test_issue_1218.py:28–35  ·  view source on GitHub ↗
(pex)

Source from the content-addressed store, hash-verified

26 # type: (Any) -> None
27
28 def get_fabric_versions(pex):
29 # type: (str) -> Dict[str, str]
30 output, returncode = run_simple_pex(pex, args=["--version"])
31 assert 0 == returncode, output.decode("utf-8")
32 return dict(
33 cast("Tuple[str, str]", line.split(" ", 1))
34 for line in output.decode("utf-8").splitlines()
35 )
36
37 # The only difference in these two PEX files is their entrypoint. Ensure venv execution takes
38 # that into account and disambiguates the otherwise identical PEX files.

Calls 3

run_simple_pexFunction · 0.90
castFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected