| 433 | |
| 434 | |
| 435 | def install_hatch_project(context: Context, path: Path) -> None: |
| 436 | py_proj_toml = toml.load(path / "pyproject.toml") |
| 437 | hatch_default_env = py_proj_toml["tool"]["hatch"]["envs"].get("default", {}) |
| 438 | hatch_default_features = hatch_default_env.get("features", []) |
| 439 | hatch_default_deps = hatch_default_env.get("dependencies", []) |
| 440 | context.run(f"pip install -e '.[{','.join(hatch_default_features)}]'") |
| 441 | context.run(f"pip install {' '.join(map(repr, hatch_default_deps))}") |
| 442 | |
| 443 | |
| 444 | def install_poetry_project(context: Context, path: Path) -> None: |