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

Method for_directory

pex/resolver.py:656–671  ·  view source on GitHub ↗
(
        cls,
        target,  # type: Union[DownloadTarget, Target]
        source_path,  # type: str
        subdirectory=None,  # type: Optional[str]
        editable=False,  # type: bool
    )

Source from the content-addressed store, hash-verified

654
655 @classmethod
656 def for_directory(
657 cls,
658 target, # type: Union[DownloadTarget, Target]
659 source_path, # type: str
660 subdirectory=None, # type: Optional[str]
661 editable=False, # type: bool
662 ):
663 # type: (...) -> BuildRequest
664 download_target = _as_download_target(target)
665 return cls(
666 download_target=download_target,
667 source_path=source_path,
668 fingerprint=None,
669 subdirectory=subdirectory,
670 editable=editable,
671 )
672
673 download_target = attr.ib(converter=_as_download_target) # type: DownloadTarget
674 source_path = attr.ib() # type: str

Callers 5

iter_local_projectsMethod · 0.80
runMethod · 0.80
resolve_from_distsFunction · 0.80
lockMethod · 0.80

Calls 1

_as_download_targetFunction · 0.85

Tested by

no test coverage detected