Skip to content

Update dependency rules_python to v1.9.0#36

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/rules_python-1.x
Open

Update dependency rules_python to v1.9.0#36
renovate[bot] wants to merge 1 commit intomainfrom
renovate/rules_python-1.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 4, 2026

This PR contains the following updates:

Package Type Update Change
rules_python bazel_dep minor 1.8.51.9.0

Release Notes

bazel-contrib/rules_python (rules_python)

v1.9.0

Compare Source

{#v1-9-0-removed}

Removed
  • Nothing removed.

{#v1-9-0-changed}

Changed
  • DEPRECATED: implicit zipapp support
    • Implicit zipapp output of py_binary/py_test has been deprecated and
      replaced by separate {obj}py_zipapp_binary and {obj}py_zipapp_test
      rules. See
      #​3567
      for a detailed migration guide.
  • (toolchains) stop exposing config settings in python toolchain alias repos.
    Please consider depending on the flags defined in
    //python/config_setting/... and the @platforms package instead.
  • (binaries/tests) The PYTHONBREAKPOINT environment variable is automatically inherited
  • (binaries/tests) The {obj}stamp attribute now transitions the Bazel builtin
    {flag}--stamp flag.
  • (pypi) Now the RECORD file patches will follow the quoted or unquoted filenames convention
    in order to make pytorch and friends easier to patch.
  • (wheel) py_wheel no longer expands the input depset during analysis,
    improving analysis performance for targets with large dependency trees.
  • (binaries/tests) (Windows) --enable_runfiles=true is the default for
    py_binary/py_test. Prior behavior can be restored by adding
    @rules_python//command_line_option:enable_runfiles=false or
    @rules_python//command_line_option:enable_runfiles=INHERIT to the
    config_settings attribute. NOTE: enable_runfiles=true will
    soon become required for Windows.

{#v1-9-0-fixed}

Fixed
  • (tests) No more coverage warnings are being printed if there are no sources.
    (#​2762)
  • (gazelle) Ancestor conftest.py files are added in addition to sibling conftest.py.
    (#​3497) Note
    that this behavior can be reverted to the pre-1.9.0 behavior by setting the new
    python_include_ancestor_conftest directive to false.
  • (binaries/tests) Stamped build data generated by Windows actions is readable

{#v1-9-0-added}

Added
  • (binaries/tests) {obj}--debugger: allows specifying an extra dependency
    to add to binaries/tests for custom debuggers.
  • (binaries/tests) Build information is now included in binaries and tests.
    Use the bazel_binary_info module to access it. The {flag}--stamp flag will
    add {obj}--workspace_status_command information.
  • (gazelle) A new directive python_generate_pyi_srcs has been added. When
    true, a py_* target's pyi_srcs attribute will be set if any .pyi files
    that are associated with the target's srcs are present.
    (#​3354).
  • (zipapp) {obj}py_zipapp_binary and {obj}py_zipapp_test rules added. These
    will replace --build_python_zip and the zip output group of
    py_binary/py_test. The zipapp rules support more functionality, correctness,
    and have better build performance.
  • (toolchains) Added {obj}PyExecToolsInfo.exec_runtime for more easily
    getting an RBE-compatible runtime to use for build actions.
  • (providers) {obj}PyExecutableInfo has several new fields to aid packaging
    of binaries: {obj}PyExecutableInfo.app_runfiles,
    {obj}PyExecutableInfo.interpreter_args,
    {obj}PyExecutableInfo.stage2_bootstrap, and
    {obj}PyExecutableInfo.venv_python_exe.
  • (tools/wheelmaker.py) Added support for URL requirements according to PEP 508
    in Requires-Dist metadata. (#​3569)
  • (gazelle) A new directive python_include_ancestor_conftest has been added.
    When false, ancestor conftest targets are not automatically added to
    {bzl:obj}py_test target dependencies. This false behavior is how things
    were in rules_python before 1.9.0. The default is true, as the prior behavior
    was technically incorrect.
    (#​3596)

{#v1-8-5}


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from snape as a code owner March 4, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants