Skip to content

Bump rules_python from 2.4.6 to 2.5.1 - #78

Merged
helly25 merged 1 commit into
mainfrom
dependabot/bazel/rules_python-2.5.1
Nov 20, 2026
Merged

helly25 merged 1 commit into
mainfrom
dependabot/bazel/rules_python-2.5.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps rules_python from 2.4.6 to 2.5.1.

Release notes

Sourced from rules_python's releases.

2.5.1

For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html

For the user-facing changelog see here

Using Bzlmod

Add to your MODULE.bazel file:

bazel_dep(name = "rules_python", version = "2.5.1")
python = use_extension("@​rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.14",
)
pip = use_extension("@​rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.14",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pypi")

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "693759df31e7cd2efa44378207a7d487c40145d32a54878005af47dee27bef72",
strip_prefix = "rules_python-2.5.1",
url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.1/rules_python-2.5.1.tar.gz",
)
load("@​rules_python//python:repositories.bzl", "py_repositories")
py_repositories()

Gazelle plugin

Paste this snippet into your WORKSPACE file:

... (truncated)

Changelog

Sourced from rules_python's changelog.

2.5.1 - 2026-11-13

{#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}

2.5.0 - 2026-10-31

{#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)

... (truncated)

Commits
  • 4dc287f fix: transition --stamp only for the build data dependency (#4484)
  • 19d13bc fix(pypi): respect uv.lock dependency platform markers (#4286)
  • bc6232f fix: stop rules_python from warning about its own implicit init.py creati...
  • 8bc4c1d fix(pypi): enable pip.default.envsubst for pip.default.index_url (#4438)
  • 50ea0d6 fix(coverage): bundle Python 3.15 coverage wheels (#4401)
  • 6fee02b Prepare release v2.5.0 (#4389)
  • 9485832 fix(pypi): generate namespace package initializers without a shell (#4385)
  • e9734b5 fix: quote paths in stage1_bootstrap_template.sh (#4386)
  • 6b85867 fix: tolerate absolute interpreter paths for lock update (#4384)
  • 674ce07 fix: don't materialize rules_python when reading the artifacts manifest (#4370)
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested review from Fab-Cat and helly25 as code owners November 19, 2026 18:44
@dependabot dependabot Bot added bazel Pull requests that update bazel code dependencies Pull requests that update a dependency file labels Nov 19, 2026
@helly25

helly25 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@helly25
helly25 enabled auto-merge (squash) November 19, 2026 23:45
Bumps [rules_python](https://github.com/bazel-contrib/rules_python) from 2.4.6 to 2.5.1.
- [Release notes](https://github.com/bazel-contrib/rules_python/releases)
- [Changelog](https://github.com/bazel-contrib/rules_python/blob/main/CHANGELOG.md)
- [Commits](bazel-contrib/rules_python@2.4.6...2.5.1)

---
updated-dependencies:
- dependency-name: rules_python
  dependency-version: 2.5.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/bazel/rules_python-2.5.1 branch from 634c186 to 3ec4eb3 Compare November 19, 2026 23:46
@helly25
helly25 merged commit ac1f14c into main Nov 20, 2026
22 of 24 checks passed
@helly25
helly25 deleted the dependabot/bazel/rules_python-2.5.1 branch November 20, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel Pull requests that update bazel code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant