| 442 | |
| 443 | |
| 444 | def install_poetry_project(context: Context, path: Path) -> None: |
| 445 | # install dependencies from poetry into the current environment - not in Poetry's venv |
| 446 | poetry_lock = toml.load(path / "poetry.lock") |
| 447 | packages_to_install = [ |
| 448 | f"{package['name']}=={package['version']}" for package in poetry_lock["package"] |
| 449 | ] |
| 450 | context.run("pip install -e .") |
| 451 | context.run(f"pip install {' '.join(packages_to_install)}") |
| 452 | |
| 453 | |
| 454 | def ensure_result(context: Context, *args: Any, **kwargs: Any) -> Result: |