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.
()
| 194 | |
| 195 | |
| 196 | def _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 | |
| 211 | def _published_dependencies(project: dict) -> list[str]: |
no test coverage detected