Conditions | 2 |
Total Lines | 8 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
27 | def create(self, context: Context, path: Path) -> Sequence[str]: |
||
28 | deps = self._get_deps(context) |
||
29 | logger.info(f"Writing environment with {len(deps)} dependencies to {path} ...") |
||
30 | lines = EnvHelper().process(self.name, deps, self.extras) |
||
31 | if not context.dry_run: |
||
32 | path.parent.mkdir(parents=True, exist_ok=True) |
||
33 | path.write_text("\n".join(lines), encoding="utf8") |
||
34 | return lines |
||
35 | |||
47 |