chore(deps): update dependency rules_python to v2.3.1 - #164
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/rules_python-2.x
branch
from
June 29, 2026 02:57
1d5aa86 to
e5aea00
Compare
renovate
Bot
force-pushed
the
renovate/rules_python-2.x
branch
from
July 4, 2026 09:26
e5aea00 to
02957ae
Compare
renovate
Bot
force-pushed
the
renovate/rules_python-2.x
branch
from
August 14, 2026 18:36
02957ae to
0dbd9c4
Compare
renovate
Bot
force-pushed
the
renovate/rules_python-2.x
branch
from
August 15, 2026 00:03
0dbd9c4 to
ebedbdc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.2→2.3.1Release Notes
bazel-contrib/rules_python (rules_python)
v2.3.1Compare Source
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.bazelfile:Using WORKSPACE
Paste this snippet into your
WORKSPACEfile:Gazelle plugin
Paste this snippet into your
WORKSPACEfile:Full Changelog: bazel-contrib/rules_python@2.3.0...2.3.1
v2.3.0Compare Source
{#v2-3-0-changed}
Changed
extension selects its standard library list on
is_python_3.14, which earlierversions do not define.
{#v2-3-0-fixed}
Fixed
py_binary_rule_builder()/py_test_rule_builder()(frompython/api/executables.bzl)failing at analysis time with a visibility error when used to construct a custom rule from an
external module.
dataattribute and forward itdirectly to the generated
py_binary, so files passed viadatacan bereferenced from
extra_argsusing$(location ...).coverage.pywheel is no longeremitted as we are now falling back to a pure python wheel
(#3950).
python_version3.13 and 3.14; previously both fell back to the 3.11 list, so modulesadded or removed since then (e.g.
compression.zstd,telnetlib) were misclassified. Thefallback list for unrecognized versions is now the newest available one rather than 3.11
(#3978).
uv_lockto be specified inpip.parsewithout requiringrequirements_lock(or other os-specific requirement file attributes) to beset.
--hash=<algo>:<digest>pins and Simple API#<algo>=<digest>URL fragments are now parsed for all hash algorithmsinstead of silently dropping everything except
sha256. Non-sha256 pins arematched against the digests advertised by the index and downloads are verified
using the corresponding Subresource Integrity value, and the pins are kept in
the requirement line when falling back to
pip(#3972).
As part of this,
whl_libraryrepos created bypip.parsenow always passthe digest via the
integrityattribute (SRI format) instead ofsha256,and the lock file facts store digests as
<algo>:<digest>values (the factsversion was bumped, so cached index information is refreshed once).
pip.parse(uv_lock = ...)no longer exposes uv workspace/root membersthat resolve to no wheel or sdist (e.g.
source = { virtual = "." }or editableinstalls). Previously these source-less packages were added to the hub's
all_requirements/all_whl_requirementswith an alias to a subpackage thatdoes not exist, breaking analysis for anything enumerating the full set such as
modules_mapping(wheels = all_whl_requirements)(#3934).
index_urlfor each wheel so that the source registry is forwarded tothe {obj}
whl_library. This is so that thepurlforpackage_metadatacan be correctlyconstructed.
enabling wheel sources files to point to an absolute path. Currently it supports
the
file://<absolute_path>for linux and windows like paths. We also supportenvsubst for the said paths from now on.
{#v2-3-0-added}
Added
build_python_zip,incompatible_default_to_explicit_init_py,python_path, andexperimental_python_import_all_repositories.py_extensionmacro for creating C/C++ Pythonextension modules
(#3283).
(cc) Added
libc,platform_machine,platform_tag,soabi, andsys_platformattributes and info fields to {obj}py_cc_toolchain/{obj}
PyCcToolchainInfo.pyproject_tomlattribute to {obj}pip.default, {obj}pip.parseand {obj}python.defaultsto read the default Python version from therequires-pythonfield ofpyproject.toml.py_testtargets that silentlypass without running any tests. Set
{obj}
--@rules_python//python/config_settings:validate_test_main=enabledtofail the build when a test's main module only contains inert top-level
statements (definitions, imports, assignments) and never invokes a test
runner (#3824).
{#v2-2-0}
v2.2.0Compare Source
{#v2-2-0-changed}
Changed
{foo}_bzlto{foo}to followgazelle naming conventions. Deprecated aliases are left for backwards
compatibility.
__init__.pycreation.{#v2-2-0-fixed}
Fixed
site initialization by retrying the lookup
(#3721).
using a hermetic tool instead of host
cat.standard library modules.
experimental_index_urlchecking truthiness before envsubstexpansion.
py_binaryandpy_testtargets whosenames contain path separators so distinct targets with the same basename no
longer share the same venv output directory.
{#v2-2-0-added}
Added
features.loadable_symbolsto allow detecting public symbolsexported by bzl files.
VenvSymlinkEntryand {bzl:obj}VenvSymlinkKindin{bzl:target}
//python:py_info.bzl.@pypirepo: a unified hub ofpip.parsehubs.deptag class to thepipbzlmod extension. This allowsmodules to declare abstract PyPI dependencies, ensuring target structures
exist in the unified hub, while allowing other modules to provide the
concrete implementation via
pip.parse.uv.lockgeneration via thelockruleand basic support for importing the
uv.lockfile itself. Since thismay have bugs, please report this by creating new tickets.
Work towards #2787
and #1975.
{#v2-1-0}
v2.1.0Compare Source
{#v2-1-0-removed}
Removed
(#3793).
coverage.pywheel set, since coverage.py 7.6.2 dropped it.{#v2-1-0-changed}
Changed
of SHAs and URLs.
TOOL_VERSIONSinpython/versions.bzlis now empty underbzlmod.
The go version was also bumped from 1.21.13 to 1.22.9.
python_generate_pyi_depsandpython_generate_pyi_srcsnowdefault to
true.as a library's data dependencies.
configure_coverage_tool = Trueis set but the bundledcoverage.pywheel set has no entry for the requested python version andplatform, a warning is now printed instead of silently producing an empty
coverage report.
{#v2-1-0-fixed}
Fixed
py_libraryandpy_testtargets with missing source files can now beremoved by Gazelle (#3375).
However
map_kindandalias_kindwill not be removed unless people are running agazelle version that includes
bazel-gazelle#2362
startup.
__init__.pyfiles when generatingpy_binarytargets (#3729).
mypytype checking will be skipped on the generatedfiles (#3126).
--experimental_isolated_extension_usages(#3668).
with github.com as a fallback; for uv >= 0.11.0, read the checksums directly
from the dist-manifest contents.
importlib.metadata.filesby ensuringRECORDis included ininstalled wheel targets, except when built from sdist
(#3024).
python installations which may not set
sys._base_executable(#3774).
py_test/py_binaryfailure when the target name containspath separators; the bootstrap stub is now declared as a sibling of the
.exelauncher(#3789).
target_compatible_withfromcompile_pip_requirementstowards the underlying
*.updatetarget.(#3787)
--action_envto allowsetting authentication for the index URL.
(#3405)
uv pip compilein the sandbox. Worktowards better supporting
uvout of the box on our platforms.(#1975)
--projectparameter based on the source files.(#3087)
(#3823)
{#v2-1-0-added}
Added
PyRuntimeInfo.interpreter_files_to_runso actionconsumers can execute an in-build runtime interpreter with its runfiles.
from a python-build-standalone manifest file using
python.override(add_runtime_manifest_urls = ..., runtime_manifest_sha = ...).python.override.toolchain_target_settingsto allowadding
config_settinglabels to all registered toolchains.{obj}
--venvs_site_packages=yesto enable.--venv_site_packages=yesis enabled,wheel
data,bin, andincludefiles are populated into the venv.Runfiles.root()Fixes #3296.
Fixes #3183.
package_metadatasupport, fixes#2054.
coverage.pyto 7.10.7.{#v2-0-3}
v2.0.3Compare Source
{#v2-0-3-fixed}
Fixed
there is only a single PyPI compatible index to be used. This saves us an expensive
PyPI download and supports PyPI mirror implementations that do not support the root
index functionality. Fixes #3769.
{#v2-0-2}
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.