MCPcopy
hub / github.com/reflex-dev/reflex / _workspace_package_dirs

Function _workspace_package_dirs

scripts/check_min_deps.py:196–208  ·  view source on GitHub ↗

Map each workspace package's normalized distribution name to its project directory. Returns: A mapping from canonical distribution name to the directory containing its ``pyproject.toml``, used to resolve a ``*.dev`` dependency pin to a local checkout.

()

Source from the content-addressed store, hash-verified

194
195
196def _workspace_package_dirs() -> dict[str, Path]:
197 """Map each workspace package's normalized distribution name to its project directory.
198
199 Returns:
200 A mapping from canonical distribution name to the directory containing its
201 ``pyproject.toml``, used to resolve a ``*.dev`` dependency pin to a local checkout.
202 """
203 dirs: dict[str, Path] = {}
204 for _, project_file in _workspace_pyprojects():
205 name = _load_pyproject(project_file).get("project", {}).get("name")
206 if name:
207 dirs[canonicalize_name(name)] = project_file.parent
208 return dirs
209
210
211def _published_dependencies(project: dict) -> list[str]:

Callers 1

discover_packagesFunction · 0.85

Calls 3

_workspace_pyprojectsFunction · 0.85
_load_pyprojectFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected