Open
Conversation
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.8.5→1.9.0Release Notes
bazel-contrib/rules_python (rules_python)
v1.9.0Compare Source
{#v1-9-0-removed}
Removed
{#v1-9-0-changed}
Changed
py_binary/py_testhas been deprecated andreplaced by separate {obj}
py_zipapp_binaryand {obj}py_zipapp_testrules. See
#3567
for a detailed migration guide.
Please consider depending on the flags defined in
//python/config_setting/...and the@platformspackage instead.PYTHONBREAKPOINTenvironment variable is automatically inheritedstampattribute now transitions the Bazel builtin{flag}
--stampflag.in order to make
pytorchand friends easier to patch.py_wheelno longer expands the input depset during analysis,improving analysis performance for targets with large dependency trees.
--enable_runfiles=trueis the default forpy_binary/py_test. Prior behavior can be restored by adding@rules_python//command_line_option:enable_runfiles=falseor@rules_python//command_line_option:enable_runfiles=INHERITto theconfig_settingsattribute. NOTE:enable_runfiles=truewillsoon become required for Windows.
{#v1-9-0-fixed}
Fixed
(#2762)
conftest.pyfiles are added in addition to siblingconftest.py.(#3497) Note
that this behavior can be reverted to the pre-1.9.0 behavior by setting the new
python_include_ancestor_conftestdirective tofalse.{#v1-9-0-added}
Added
--debugger: allows specifying an extra dependencyto add to binaries/tests for custom debuggers.
Use the
bazel_binary_infomodule to access it. The {flag}--stampflag willadd {obj}
--workspace_status_commandinformation.python_generate_pyi_srcshas been added. Whentrue, apy_*target'spyi_srcsattribute will be set if any.pyifilesthat are associated with the target's
srcsare present.(#3354).
py_zipapp_binaryand {obj}py_zipapp_testrules added. Thesewill replace
--build_python_zipand the zip output group ofpy_binary/py_test. The zipapp rules support more functionality, correctness,and have better build performance.
PyExecToolsInfo.exec_runtimefor more easilygetting an RBE-compatible runtime to use for build actions.
PyExecutableInfohas several new fields to aid packagingof binaries: {obj}
PyExecutableInfo.app_runfiles,{obj}
PyExecutableInfo.interpreter_args,{obj}
PyExecutableInfo.stage2_bootstrap, and{obj}
PyExecutableInfo.venv_python_exe.in Requires-Dist metadata. (#3569)
python_include_ancestor_conftesthas been added.When
false, ancestorconftesttargets are not automatically added to{bzl:obj}
py_testtarget dependencies. Thisfalsebehavior is how thingswere in
rules_pythonbefore 1.9.0. The default istrue, as the prior behaviorwas 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.
This PR was generated by Mend Renovate. View the repository job log.