Skip to content

Update dependency rules_python to v2.5.1 - #68

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rules_python-2.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rules_python-2.x

Conversation

@renovate

@renovate renovate Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rules_python bazel_dep minor 2.4.5 → 2.5.1

Release Notes

bazel-contrib/rules_python (rules_python)

v2.5.1

Compare Source

{#v2-5-1-fixed}

Fixed
  • (binaries/tests) The {obj}stamp attribute no longer transitions the
    {flag}--stamp flag for the whole target, so dependencies of executables with
    stamp = 0 or stamp = 1 are no longer built in a separate configuration.

{#v2-5-0}

v2.5.0

Compare Source

{#v2-5-0-changed}

Changed
  • (gazelle) Migrated the Python AST parser from smacker/go-tree-sitter to the
    official tree-sitter/go-tree-sitter and tree-sitter/tree-sitter-python
    packages, adding support for Python 3.14 PEP 758 unparenthesized exception
    clauses (#​3416).
  • (pypi) Downloaded wheels are removed after extraction when their original
    archive can be fetched independently. The existing whl and whl_file targets
    fetch the archive from a separate repository on demand. Matching patches are
    applied in the separate wheel-file repository, which also supplies the patched
    archive for extraction. Wheels built from source retain their existing archive
    behavior.
  • (rules) {obj}py_console_script_binary now creates the main script only for the exec
    configuration.
  • (toolchains) Added install_only_stripped python-build-standalone runtime
    archives for releases from 20240726 onward. They can be used by setting
    {obj}--@rules_python//python/config_settings:py_pbs_distribution to
    install_only_stripped to reduce runtime download size.
    (#​4163)
  • (toolchains) Downloaded runtimes cache pyc files under $HOME/.cache
    (LOCALAPPDATA on Windows) instead of a temporary directory when
    XDG_CACHE_HOME is unset
    (#​4198).
  • (uv) The default uv version has been bumped from 0.11.2 to 0.13.1. This
    lets the {obj}lock rule use scoped override-dependencies from a
    pyproject.toml in [tool.uv], which require uv 0.11.25 or newer.
    (#​2992)

{#v2-5-0-fixed}

Fixed
  • (uv) Support executable wrappers with multiple outputs and preserve their
    runfiles in lock actions and runnable targets. Export downloaded uv binaries
    so wrappers can declare them as dependencies.
    (#​4181)
  • (bzlmod) Fixed configuring and using Python patch versions newer than the
    built-in MINOR_MAPPING in the {obj}python and {obj}pip extensions,
    including add_runtime_manifest_files download URLs and host interpreter
    resolution (#​4358).
  • (gazelle) Check in a default standard library module list (stdlib_list/default.txt)
    alongside the Bazel-selected list (stdlib_list/selected.txt) so
    github.com/bazel-contrib/rules_python/gazelle/python can be built and tested
    directly with standard Go tooling (go build, go test, go list) outside
    Bazel (#​3821).
  • (gazelle) Fixed Python targets with an imports attribute not being deleted
    when their source files are removed
    (#​4282).
  • (pypi) A {obj}pip.parse call for a Python version that has no interpreter for
    the host platform is now skipped, like a version with no registered toolchain,
    instead of failing the whole {obj}pip extension. A dependency that lists,
    say, Python 3.9 no longer breaks every other hub on hosts that have no CPython
    3.9 build, such as Windows on ARM64
    (#​4184).
  • (pypi) Respect dependency-edge platform markers in uv.lock when selecting
    packages and artifacts in {obj}pip.parse
    (#​4287).
  • (pypi) Wheel namespace package initializers no longer require a shell or cp on the execution platform.
  • (pypi) pip.parse(uv_lock = ...) now builds packages with a git source with
    pip, from a name @ git+<url>@<commit> direct reference pinned to the commit
    uv resolved, instead of passing the uv.lock source string to the Bazel
    downloader as a URL.
    (#​4139)
  • (rules) Fixed stage 1 bootstrap script failing when the executable path,
    runfiles root, or RULES_PYTHON_EXTRACT_ROOT contains spaces
    (#​4386).
  • (rules) Fixed {obj}py_library.pyi_deps being included in runtime output and
    bloating output. Type-checking only information is now in
    {obj}PyInfo.type_checking_info. Added the
    {obj}--//python/config_settings:pyi_deps_to_runfiles flag to configure or
    restore legacy runfile propagation if needed
    (#​4178).
  • (sphinxdocs) Fixed sphinx_docs .run targets failing to locate the sphinx
    binary when defined in the root package
    (#​4201).
  • (toolchains) Evaluating the {obj}python module extension and @pythons_hub
    repository no longer materializes the @rules_python repository when using
    --experimental_remote_repo_contents_cache
    (#​4294).
  • (toolchains) Fixed build tools, such as the precompiler, running with the
    default Python version instead of the target's Python version under Bazel 10
    (#​3566).
  • (toolchains) The python extension is re-evaluated when the host OS or CPU
    changes, so an output base shared between hosts no longer fails to fetch the
    *_host interpreter repo.
  • (toolchains) __pycache__ symlinks in downloaded runtimes no longer end up in
    runfiles, and a runtime no longer loads pyc files compiled from another
    version's sources
    (#​4198).
  • (uv) Fixed {obj}lock's .run target for uv.lock outputs to read and write
    the lock file in the workspace source tree instead of the runfiles tree
    (#​4339).
  • (uv) The {obj}lock macro's .run target uses the uv cache and honors
    UV_CACHE_DIR and UV_NO_CACHE. Pass --refresh to refresh cached data or
    --no-cache to disable caching. Lock build actions, including those used by
    .update, disable the uv cache.
    (#​4179)
  • (zipapp) Forwarded termination signals to the application, preserved inherited
    ignored signals and exit status, and cleaned up temporary extraction directories.
    (#​3809)

{#v2-5-0-added}

Added
  • (coverage) Added bundled coverage.py wheels for Python 3.15 on Linux and macOS,
    including free-threaded interpreters. Existing Python versions retain their
    current coverage.py wheels.
  • (packaging) {obj}py_wheel now expands Python toolchain make variables by
    default and in platform and python_requires. {obj}py_runtime_pair and
    {obj}current_py_toolchain now provide version and wheel tag make variables.
  • (pypi) Added pip.default(unified_hub_requirements_bzl = True), which makes the
    unified @pypi hub generate a requirements.bzl with the per-package macros of
    a concrete hub's (requirement, whl_requirement, data_requirement and
    dist_info_requirement). A repo that renames its hub away from the reserved
    pypi name keeps its load("@pypi//:requirements.bzl", "requirement") users
    working, and the returned labels route through
    {obj}--@rules_python//python/config_settings:venv. The all_* lists are not
    provided, since they could only list one hub's packages; load them from a
    concrete hub.
  • (pypi) Added {attr}pip.default.envsubst to expand environment variables in
    {attr}pip.default.index_url
    (#​4123).
  • (rules) Added {obj}PyInfo.direct_implicit_pyc_files and
    {obj}PyExecutableInfo.venv_runfiles.
  • (rules) Added {obj}pytest_test, which facilitates running of pytest tests.
    It supports generating multiple test targets for more than one Python version
    and uses pytest-randomly and pytest-shard.
    (#​3594)
  • (toolchains) Added the
    {obj}--@rules_python//python/config_settings:py_pbs_distribution
    flag to select which python-build-standalone archive the hermetic toolchains
    use. Setting it to install_only_stripped uses runtimes without debug symbols,
    which reduces runtime and zipapp size.
    (#​4163)
  • (uv) Added @uv//:uv, {obj}//python/uv/bin:uv, and public visibility on
    {obj}//python/uv:current_toolchain (along with the $(UV) make variable) to
    run the configured uv binary directly (e.g.
    bazel run @rules_python//python/uv/bin:uv -- --help or
    bazel run @uv -- --help)
    (#​4371).
  • (uv) The {obj}lock macro now works in WORKSPACE builds; set up the uv
    toolchains with the new {obj}uv_toolchains_manifest repository rule and
    {obj}uv_register_toolchains macro.
    (#​1975)

{#v2-4-6}

v2.4.6

Compare Source

{#v2-4-6-changed}

Changed
  • (toolchains) Updated default Python toolchains to 3.10.22, 3.11.18,
    3.12.16, 3.13.18, 3.14.10, and 3.15.2, and removed 3.15.0 pre-release
    toolchains (#​4358).

{#v2-4-5}


Configuration

📅 Schedule: (UTC)

  • 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 October 30, 2026 05:03
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ec1f52f4-7ee7-4d35-b2fa-96c6e82b1827

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@renovate renovate Bot changed the title Update dependency rules_python to v2.4.6 Update dependency rules_python to v2.5.0 Nov 12, 2026
@renovate
renovate Bot force-pushed the renovate/rules_python-2.x branch from ed20cfb to d9048fb Compare November 12, 2026 16:45
@renovate renovate Bot changed the title Update dependency rules_python to v2.5.0 Update dependency rules_python to v2.5.1 Nov 13, 2026
@renovate
renovate Bot force-pushed the renovate/rules_python-2.x branch from d9048fb to 638e499 Compare November 13, 2026 22:58

This branch has not been deployed

No deployments
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