Skip to content

python: moves to families/python #6515

Closed as not planned
Closed as not planned

Description

@TrapsterDK

Blocked on: #6514

Goal: move python to its own module under families/, so consumers that don't use it stop resolving and fetching its deps.

Plan (agent): size M, sonnet
Family: Dir python; dep aspect_rules_py; 2 extensions; 1 toolchain; 1 aspect; //gazelle/python. Core keeps rules_python (owner decision: yamllint and djlint run by default). Check that core's py tools still get a hermetic interpreter when the python family is absent: rules_python registers its default toolchain from its own module.

Shared rules for every move:

  • Follow the checklist from android: moves to families/android #6053 (android).
  • The root MODULE.bazel depends on each family module with dev_dependency = True plus local_path_override. A non-dev dep would put the family back in every consumer's graph.
  • A family module depends only on core (rules_dx) and upstream rule sets, never on another family module.
  • Before moving, grep core and every other family for labels into the moving dirs. Fix each one in the same PR: move the test to the owning family, or move a shared helper into core.
  • Update the family's entry in modules/families.json, plus docs and examples, in the same PR. Labels change. No forwarding stubs and no migration (owner decision on modules: languages a consumer does not use are not fetched or registered #6032).
  • Keep shard names and # floor: lines unchanged (move a # floor: line with its dep).

Tests: tools/dx test //modules:all //tools/testing/hermetic:python, the family module's own tests as the #6053 checklist says, then tools/dx test --affected.
Host: none
Upstream: none

Do after #6514
Part of #6054

Activity

  1. added
    P2
    blocked
    model:sonnet
    on Nov 4, 2026
  2. TrapsterDK commented on Nov 5, 2026

    @TrapsterDK
    CollaboratorAuthor

    Still blocked: the issue says to do this after #6514, which is open and unmerged, and only families/android exists on main. No code changed.

  3. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    This issue has the blocked label but no Blocked on: line in its body. Add one naming the blocking issue (#N), a pull request URL, or the owner action. See CONTRIBUTING.md.

  4. TrapsterDK commented on Nov 6, 2026

    @TrapsterDK
    CollaboratorAuthor

    Rule for this move: the same PR moves the family's register_toolchains from root MODULE.bazel to families/<family>/MODULE.bazel, drops the hub repos from core's use_repo, and moves the patterns to the family entry in modules/families.json (see #8203 for beam). Otherwise consumers still fetch the toolchains and a second PR is needed. Assisted by Claude.

  5. removed
    blocked
    on Nov 9, 2026
  6. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    Blocked on #6514 (open, no PR), as the body says. Not started. Also noting for whoever picks this up: python/tests fixtures are referenced from core (cli/depcheck, tools/testing/hermetic, libs/starlark/tests/thin_compare.bzl, modules/python.bzl, cc/tests/fixtures/msvc_layout, tools/docs/support_matrix), and the root dx_pypi uv hub mixes fixture locks with core's quality/tools/python locks, so those need to be split in the same PR. Assisted by Claude.

  7. added
    blocked
    and removed
    blocked
    on Nov 9, 2026
  8. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    Upstream rules_py issue for the local pytest_main patch: aspect-build/rules_py#1679 (PR with regression test still to come).

  9. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    Superseded by #10084: one module, no family modules.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2model:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions