fix: stop rules_python from warning about its own implicit __init__.py creation (#4451) When rules_python is used as a Bzlmod dependency without --incompatible_default_to_explicit_init_py (which is deprecated in Bazel 10), rules_python emits implicit __init__.py deprecation warnings for its own internal targets (//tools:wheelmaker, //python/private:py_wheel_dist, //python/private:py_console_script_gen_py, and //tools/publish:twine). Enable rules_python_config.explicit_init_py(default = True) in MODULE.bazel so all targets in rules_python default to explicit __init__.py behavior. Closes #4448
diff --git a/MODULE.bazel b/MODULE.bazel index df1326d..704c90d 100644 --- a/MODULE.bazel +++ b/MODULE.bazel
@@ -23,6 +23,9 @@ rules_python_config.internal_configure( tool_deps_dev_only = TOOL_DEPS_DEV_ONLY, ) +rules_python_config.explicit_init_py( + default = True, +) use_repo( rules_python_config, "pypi__build",