MCPcopy Index your code
hub / github.com/pex-tool/pex / ScriptMetadataApplication

Class ScriptMetadataApplication

pex/resolve/script_metadata.py:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33@attr.s(frozen=True)
34class ScriptMetadataApplication(object):
35 scripts = attr.ib() # type: Tuple[ScriptMetadata, ...]
36 requirement_configuration = attr.ib() # type: RequirementConfiguration
37 target_configuration = attr.ib() # type: TargetConfiguration
38
39 def target_does_not_apply(self, target):
40 # type: (Target) -> Tuple[ScriptMetadata, ...]
41 return tuple(
42 script
43 for script in self.scripts
44 if not target.requires_python_applies(
45 requires_python=script.requires_python, source=script.source
46 )
47 )
48
49
50def apply_script_metadata(

Callers 2

apply_script_metadataFunction · 0.85

Calls

no outgoing calls

Tested by 1