Skip to content

Force loading Python rules from rules_python repo #8893

@brandjon

Description

@brandjon

Similar to #8741 and #7643, force users to load bazelbuild/rules_python in order to access the built-in Python rules. This allows us to migrate these rules from native to Starlark without necessarily forcing users to migrate every step of the way. The incompatible change flag will be --incompatible_load_python_rules_from_bzl.

Checklist:

  • Re-export or copy bundled symbols to bazelbuild/rules_python
  • Fix rules_python's workflows for precompiled binaries and documentation generation
  • Rename its canonical workspace to @rules_python
  • Give the Bazel source tree an internal-only mechanism for replicating rules_python's behavior without loading it
  • Update all uses of Python in the Bazel source tree (possibly excluding tests and examples) to use the internal mechanism, including the third_party/ tree
  • Update help and error strings in Bazel to reference @rules_python instead of @bazel_tools
  • Add the incompatible change flag
  • Add automated buildifier fixes
  • Migrate bazelbuild/rules_python and google/subpar for flag flip
  • Update Bazel tests for flag flip
  • Flip default at head

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)team-Rules-PythonNative rules for Pythontype: feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions