MCPcopy Index your code
hub / github.com/reactive-python/reactpy / install_poetry_project

Function install_poetry_project

tasks.py:444–451  ·  view source on GitHub ↗
(context: Context, path: Path)

Source from the content-addressed store, hash-verified

442
443
444def 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
454def ensure_result(context: Context, *args: Any, **kwargs: Any) -> Result:

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected