refactor(deps): one modernizer facade with data-driven tool tables, pyproject conform family (flext-5fxu6.4.15)

Merged
MA
3mo ago
+4279-5348

Summary by cubic

Refactors the deps modernizer into one facade with a data-driven tool-table phase, replacing seven per-tool pyproject phases, and removes the obsolete per-tool phase classes from the public API. Also fixes codegen so workspace-root projects render internal flext-* dependencies as bare names instead of direct Git requirements, which was breaking the fleet gen fixed point.

Refactors

  • FlextInfraToolTablesPhase renders every config-owned tool table as a direct projection of config.Infra.tooling.
  • The modernizer implementation lives in deps/_modernizer; FlextInfraPyprojectModernizer stays as the public facade.
  • pyproject_conform.py becomes a facade over _utilities/_pyproject, and TOML phase application is now u.Infra.apply_toml_phases.
  • ProjectRenderContext now carries workspace_context_root; bare names render at the root and standalone members keep direct Git requirements.
  • Gates share one parse-result finalization helper, and markdown format command builders avoid tuple unpacking.
  • Tests use public facades and the new tool-table phase instead of removed per-tool classes.

Migration

  • Replace imports of the removed deps.phases.ensure_* classes with FlextInfraToolTablesPhase.
  • If you used FlextInfraTomlPhaseService, switch to u.Infra.apply_toml_phases.