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

Function resolve_current

tests/test_resolver.py:353–362  ·  view source on GitHub ↗
(interpreters=())

Source from the content-addressed store, hash-verified

351def test_resolve_current_platform(p537_resolve_cache):
352 # type: (str) -> None
353 def resolve_current(interpreters=()):
354 # type: (Iterable[PythonInterpreter]) -> List[str]
355
356 # N.B.: None stands in for the "current" platform at higher layers that parse platform
357 # strings to Platform objects.
358 current_platform = (None,)
359 return resolve_p537_wheel_names(
360 cache_dir=p537_resolve_cache,
361 targets=Targets(platforms=current_platform, interpreters=tuple(interpreters)),
362 )
363
364 other_python_version = PY311 if PY_VER == (3, 9) else PY39
365 other_python = PythonInterpreter.from_binary(ensure_python_interpreter(other_python_version))

Callers 1

Calls 2

TargetsClass · 0.90
resolve_p537_wheel_namesFunction · 0.85

Tested by

no test coverage detected