(
cls,
target, # type: Union[DownloadTarget, Target]
source_path, # type: str
subdirectory=None, # type: Optional[str]
editable=False, # type: bool
)
| 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 |
no test coverage detected