chore(deps): update dependency rules_python to v2#16221
Open
renovate-bot wants to merge 1 commit into
Open
Conversation
Collaborator
|
/gcbrun |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16221 +/- ##
=======================================
Coverage 92.23% 92.24%
=======================================
Files 2265 2265
Lines 210205 210205
=======================================
+ Hits 193888 193896 +8
+ Misses 16317 16309 -8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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:
1.9.1→2.1.0Release Notes
bazel-contrib/rules_python (rules_python)
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}
v2.0.2Compare Source
{#v2-0-2-added}
Added
3.13.12,3.14.3Python toolchain from 20260325 release.3.10.20,3.11.15,3.12.13,3.13.133.14.4,3.15.0a8{#v2-0-1}
v2.0.1Compare Source
{#v2-0-1-fixed}
Fixed
MODULE.bazel.lockfilefacts by passing all of the versions to the
get_indexfunction.Fixes #3756.
(#3749).
{#v2-0-0}
v2.0.0Compare Source
{#v2-0-0-removed}
Removed
{#v2-0-0-changed}
Changed
Breaking
--windows_enable_symlinksis required. Addstartup --windows_enable_symlinksto your.bazelrcto enable Bazel using fullsymlink support on Windows.
--bootstrap_impl=system_python)on supported platforms (Linux/Mac with Bazel 8+, or Windows).
--build_python_zipon Windows is ignored. Use {obj}py_zipapp_binaryto createzips of Python programs.
experimental_index_urlusers would not need to specifytarget platforms if cross-building is required. From now we will only pull
wheels for the host OS to better align with how the rules work with the legacy
pipimplementation. Use {obj}pip.parse.target_platformsto customize thebehavior.
Related to #260.
Other changes:
compile_pip_requirements, buildingsdists in the
whl_libraryrule and fetching wheels usingpip.we will from now on fetch the lists of available packages on each index. The
used package mappings will be written as facts to the
MODULE.bazel.lockfileon supported bazel versions and it should be done at most once. As a result,
per-package {obj}
experimental_index_url_overridesis no longer needed, butif specified, it needs to be provided for all packages not on the default index. What
is more, the flags for
--index_urland--extra-index-urlnow behave in thesame way as in
uvorpip, i.e. we default to--index-urlif the packageis not found in
--extra-index-url. Fixes(#3260 and
#2632).
uv'sdist_manifest.jsonfile. If you have redirects or blocking rules as part ofyour downloader setup, you may need to adjust them. What is more, the default
uv version has been bumped
0.11.2.symlink-based runfiles tree is created, as on unix-like platforms.
{#v2-0-0-fixed}
Fixed
py_zippapp_binarytargets(#3646).
cause the Python runtime repository to be invalidated. The stdlib pyc files
may be reused in between invocations, depending upon the sandboxing
configuration. See the {any}
RULES_PYTHON_PYCACHE_DIRenvironment variablefor more information.
(#3643).
scripts when binary is defined in another bazel module
(#3563).
RUNFILES_DIRinheritance issues, which lead to a childPython binary incorrectly using it's parent's Python binary environment
(#3518).
>=0.10work again. In order to fix this we haddrop support for
powerpc64platform. People interested in the platform canbring it back via the
uv.defaultAPI. Like:Fixes #3712.
{#v2-0-0-added}
Added
MODULE.bazel.lockfile if using{obj}
experimental_index_urlwhich should speed up consecutiveinitializations and should no longer require the network access if the cache is
hydrated. Implements
#2731.
--index-urland--extra-index-urlis now parsed from the lockfile and the {obj}
pip.parse.experimental_index_urland{obj}
pip.parse.experimental_extra_index_urlsisno longer mandatory to leverage the bazel downloader.
Implements
#1357,
#2951.
pip.parse.target_platformsto specify exactly which platforms should be supported.
Implements
#260.
/as a destination indata_fileswill now install file(s) to a folder, preserving their basename.
py_runtime.venv_bin_filesand {obj}PyRuntime.venv_binfilesfield added to specify additional Python runtime files Windows needs for
venvs.
PyExecutableInfo.venv_interpreter_runfiles, and{obj}
PyExecutableInfo.venv_interpreter_symlinksaddeadd_path_prefixargument inpy_wheelwhich can beused to prepend a prefix to the files in the wheel.
{#v1-9-1}
Configuration
📅 Schedule: (UTC)
* * * * 1-5)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.