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

Function install_hatch_project

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

Source from the content-addressed store, hash-verified

433
434
435def 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
444def install_poetry_project(context: Context, path: Path) -> None:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected