Yield every workspace package's directory name paired with its ``pyproject.toml``. Yields: ``(directory_name, pyproject_path)`` for the root package (named ``"reflex"``) and each ``packages/*`` member. The directory name is the publish/CLI identifier.
()
| 182 | |
| 183 | |
| 184 | def _workspace_pyprojects() -> Iterator[tuple[str, Path]]: |
| 185 | """Yield every workspace package's directory name paired with its ``pyproject.toml``. |
| 186 | |
| 187 | Yields: |
| 188 | ``(directory_name, pyproject_path)`` for the root package (named ``"reflex"``) and |
| 189 | each ``packages/*`` member. The directory name is the publish/CLI identifier. |
| 190 | """ |
| 191 | yield "reflex", REPO_ROOT / "pyproject.toml" |
| 192 | for project_file in sorted((REPO_ROOT / "packages").glob("*/pyproject.toml")): |
| 193 | yield project_file.parent.name, project_file |
| 194 | |
| 195 | |
| 196 | def _workspace_package_dirs() -> dict[str, Path]: |
no outgoing calls
no test coverage detected