fix(deps): Update dependency rules_python to v0.40.0#55
Closed
Conversation
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
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:
0.35.0->0.40.0Release Notes
bazel-contrib/rules_python (rules_python)
v0.40.0Compare Source
{#v0-40-changed}
Changed
{#v0-40-fixed}
Fixed
(2414).
{#v0-40-added}
Added
{#v0-40-removed}
Removed
requirements.txtfor thetwinedependencies.Please use
requirements_linux.txtinstead.zstdsupport and remove attributesfor customizing the
zstdbinary to be used forzstdarchives in the{bzl:obj}
python_repositoryrepository_rule. This affects the{bzl:obj}
python_register_toolchainsand{bzl:obj}
python_register_multi_toolchainscallers in theWORKSPACE.{#v0-39-0}
v0.39.0Compare Source
{#v0-39-0-changed}
Changed
bzlmodspoke repositories have changed asall of the given
requirements.txtfiles are now parsed bydefault, totemporarily restore the behavior, you can use
{bzl:obj}
pip.parse.extra_hub_aliases, which will be removed or made noop inthe future.
{#v0-39-0-fixed}
Fixed
@bazel_tools//tools/python:autodetecting_toolchainis being used(#2364).
{#v0-39-0-added}
Added
the config flag
//python/config_settings:py_freethreadedto toggle theselection of the free-threaded toolchains.
py_runtime.abi_flagsattribute and{obj}
PyRuntimeInfo.abi_flagsfield added.{#v0-39-0-removed}
Removed
{#v0-38-0}
v0.38.0Compare Source
{#v0-38-0-changed}
Changed
version used; this for Bazel 8+ support (previously version was rules_cc 0.0.9
and no protobuf version specified)
(2310).
for the
twinepublishing rule.--no-build-isolationto allow non-hermetic sdist buildsby default. Users wishing to keep this argument and to enforce more hermetic
builds can do so by passing the argument in
pip.parse#extra_pip_argspip.parse.whl_modificationsnow normalizes the given whl namesand now
pyyamlandPyYAMLwill both work.pip.parsespoke repository naming will be changed in an upcomingrelease in places where the users specify different package versions per
platform in the same hub repository. The naming of the spoke repos is
considered an implementation detail and we advise the users to use the
hubrepository directly and make use of {bzl:obj}
pip.parse.extra_hub_aliasesfeature added in this release.
{#v0-38-0-fixed}
Fixed
whl_librarys(617).
pip.parse.experimental_index_urlis set, we need to stillpass the
extra_pip_argsvalue when building ansdist.which fixes usage of the said wheels using standard package managers.
same lock file irrespective if
experimental_index_urlis set by any moduleor not. To opt into this behavior, set
pip.parse.parse_all_requirements_files, which will become thedefault in future releases leading up to
1.0.0. Fixes#2268. A known
issue is that it may break
bazel queryand in these use cases it isadvisable to use
cqueryor switch todownload_only = True{#v0-38-0-added}
Added
twinepublishing rules have beenupdated to have a new convention:
requirements_darwin.txt,requirements_linux.txt,requirements_windows.txtfor each respective OSand one extra file
requirements_universal.txtif you prefer a single file.The
requirements.txtfile may be removed in the future.//python/features.bzl#features.versionpip.parse.extra_hub_aliasescan now be used to expose extratargets created by annotations in whl repositories.
Fixes #2187.
pip.parsenow supportswhl-onlysetup usingdownload_only = Truewhere users can specify multiple requirements filesand use the
pipbackend to do the downloading. This was only available forusers setting {bzl:obj}
pip.parse.experimental_index_url, but now users havemore options whilst we continue to work on stabilizing the experimental feature.
{#v0-37-2}
v0.37.2Compare Source
{#v0-37-2-fixed}
Fixed
config_settingvalues for all available toolchains insteadof only the registered toolchains, which restores the previous behaviour that
bzlmodusers would have observed.{#v0-37-1}
v0.37.1Compare Source
{#v0-37-1-fixed}
Fixed
--incompatible_python_disallow_native_rulesno longercauses rules_python rules to fail
(#2326).
{#v0-37-0}
v0.37.0Compare Source
{#v0-37-0-changed}
Changed
py_libraryno longer puts its source files or generated pycfiles in runfiles; it's the responsibility of consumers (e.g. binaries) to
populate runfiles with the necessary files. Adding source files to runfiles
can be temporarily restored by setting {obj}
--add_srcs_to_runfiles=enabled,but this flag will be removed in a subsequent releases.
PyInfo.transitive_sourcesis now added to runfiles. These files are.pyfiles that are required to be added to runfiles by downstream binaries(or equivalent).
py_runtime.implementation_namenow defaults tocpython(previously it defaulted to None).
disabled by setting
{obj}
--@​rules_python//python/config_settings:exec_tools_toolchain=disabled.{#v0-37-0-fixed}
Fixed
python.override(minor_mapping)now merges the default and theoverridden versions ensuring that the resultant
minor_mappingwill alwayshave all of the python versions.
--python_versionflag will now bealways set to the default python toolchain version value.
pip.parse.extra_pip_argsall theway to
whl_library. What is more we will pass theextra_pip_argstowhl_libraryforsdistdistributions when using{attr}
pip.parse.experimental_index_url. See#2239.
RECORDfileRECORDfile entry elements are now quoted if necessary when awheel is created
case where a requirement has many
--hash=sha256:...flagscompile_pip_requirementspassesenvto theX.updatetarget (andnot only to the
X_testtarget, a bug introduced in#1067).
python_register_toolchains(register_toolchains=True)is respected(#1675).
pyc_collectionattribute now correctlyenables (or disables) using pyc files from targets transitively
pip.override'sfile(#2294).
rules_shelldev dependency and moved ash_testtargetoutside of the
//:BUILD.bazelfile.Fixes #2299.
{#v0-37-0-added}
Added
compress = (True|False)to allow disablingcompression to speed up development.
//python/config_settings:python_version_major_minorhasbeen exposed for users to be able to match on the
X.Yversion of a Pythoninterpreter.
merge_py_infos()so user rules can merge and propagatePyInfowithout losing information.3.8 -> 3.8.203.9 -> 3.9.203.10 -> 3.10.153.11 -> 3.11.103.12 -> 3.12.7coverage.pyto 7.6.1.download_onlyflag to disable usage ofsdistswhen {bzl:attr}
pip.parse.experimental_index_urlis set.PyInfo.transitive_implicit_pyc_files,{obj}
PyInfo.transitive_implicit_pyc_source_files.{#v0-37-0-removed}
Removed
--precompile_add_to_runfileshas been removed.--pyc_collectionhas been removed. Thepyc_collectionattribute now bases its default on {obj}
--precompile.precompile=if_generated_sourcevalue has been removed.precompile_source_retention=omit_if_generated_sourcevalue has been removed.{#v0-36-0}
v0.36.0Compare Source
{#v0-36-0-changed}
Changed
--python_versionflag now also returns{obj}
config_common.FeatureFlagInfo.patch_stripattributethat one should use when patching toolchains. Please set it if you are
patching python interpreter. In the next release the default will be set to
0which better reflects the defaults used in publicbazelAPIs.py_runtime.interpreter_version_infoisn't specified,the {obj}
--python_versionflag will determine the value. This allowsspecifying the build-time Python version for the
{obj}
runtime_env_toolchains.py_cc_toolchain.libsand {obj}PyCcToolchainInfo.libsisoptional. This is to support situations where only the Python headers are
available.
7.1.{#v0-36-0-fixed}
Fixed
--no-indexand add--no-build-isolationto thepip installcommand when installing a wheel from a local file, which happenswhen
experimental_index_urlflag is used.platform non-dependent hashes in the lock file when the requirement markers need
to be evaluated.
any changes so that the repository rule or module extensions can be
re-evaluated when the said files change.
t.Fatal/t.Fatalfin tests.stage2 bootstrap template.
RUNFILES_MANIFEST_FILE-based invocations work when used with{obj}
--bootstrap_impl=script. This fixes invocations using non-sandboxedtest execution with
--enable_runfiles=false --build_runfile_manifests=true.(#2186).
Required-Distwhen specifying requirements with markersin extra_requires in py_wheel rule.
bootstrap .py file when using {obj}
--bootstrap_impl=scriptgen_python_config_settingshas been fixed to includethe flag_values from the platform definitions.
{#v0-36-0-added}
Added
{bzl:obj}
python.override, {bzl:obj}python.single_version_overrideand{bzl:obj}
python.single_version_platform_overridetag classes.See #2081.
PyExecutableInfo, which containsexecutable-specific information useful for packaging an executable or
or deriving a new one from the original.
have it installed.
python_register_toolchainsand related symbols.
python_repository.patch_stripattribute forallowing values that are other than
1, which has been hard-coded up untilnow. If you are relying on the undocumented
patchessupport inTOOL_VERSIONSfor registering patched toolchains please consider settingthe
patch_stripexplicitly to1if you depend on this value - in thefuture the value may change to default to
0.//python:none, a special target for use with{obj}
py_exec_tools_toolchain.exec_interpreterto treat the value asNone.{#v0-36-0-removed}
Removed
http_archivesymbol frompython/repositories.bzl.{#v0-35-0}
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), 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 has been generated by Renovate Bot.