chore(deps): update dependency rules_python to v1#409
Merged
renovate[bot] merged 1 commit intomainfrom Dec 18, 2024
Merged
Conversation
e5dd2c3 to
f1b6d47
Compare
d8064de to
c28a28d
Compare
c28a28d to
dc10908
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:
0.40.0->1.0.00.40.0->1.0.0Release Notes
bazelbuild/rules_python (rules_python)
v1.0.0Compare Source
{#v1-0-0-changed}
Changed
Breaking:
Please consider depending on the flags defined in
//python/config_setting/...and the@platformspackage instead.MACOS_NAMEand thearchattribute in the
PLATFORMSlist, please update your code to respect the newvalues. The values now correspond to the values available in the
@platforms//package constraint values.host_platformandinterpreterconstants are no longer createdin the
toolchaingenerated alias.bzlfiles. If you need to access thehost interpreter during the
repository_ruleevaluation, please use the@python_{version}_host//:pythontargets created by{bzl:obj}
python_register_toolchainsand{bzl:obj}
python_register_multi_toolchainsmacros or the {bzl:obj}pythonbzlmod extension.
pip.parse.parse_all_requirements_filesattribute has been removed.See notes in the previous versions about what to do.
Other changes:
strip_prefixfield forzstdarchives.pip_parse.extra_hub_aliasesnow works in WORKSPACE files.--bootstrap_impl=script, a binary-specific (butotherwise empty) virtual env is used to customize
sys.pathinitialization.{#v1-0-0-fixed}
Fixed
unameto get the value of the host platform.files which is useful when including different PyTorch builds (e.g. <pytorch+cpu> vs <pytorch+cu118> ) for different target platforms.
Fixes (2337).
uvbinary for aarch64-apple-darwin.Fixes (2411).
--bootstrap_impl=scipt) Usingsys.executablewilluse the same
sys.pathsetup as the calling binary.(2169).
hardcoded in Bazel, WORKSPACE mode.
compile_pip_requirementsno longer fails on Windows when--enable_runfilesis not enabled.compile_pip_requirementsnow correctly updates files in the source tree on Windows when--windows_enable_symlinksis not enabled.libpythontargetdefined by a repository template. This enables stable ABI builds of Python extensions
on Windows (by defining Py_LIMITED_API).
py_testandpy_binarytargets no longer incorrectly remove thefirst
sys.pathentry when using {obj}--bootstrap_impl=script{#v1-0-0-added}
Added
details can be logged by setting
RULES_PYTHON_GAZELLE_VERBOSE=1.they would like to use through
RULES_PYTHON_REPO_TOOLCHAIN_{VERSION}_{OS}_{ARCH}env variable setting. Forexample, this allows one to use
freethreadedpython interpreter in therepository_ruleto build a wheel fromsdist.muslclibc have been addedfor the latest toolchain versions for each minor Python version. You can control
the toolchain selection by using the
{bzl:obj}
//python/config_settings:py_linux_libcbuild flag.py_runtime_info.site_init_templateand{obj}
PyRuntimeInfo.site_init_templatefor specifying the template to use toinitialize the interpreter via venv startup hooks.
{#v1-0-0-removed}
Removed
pypi_install_dependenciesmacro that has been included in{bzl:obj}
py_repositoriesfor a long time.DEFAULT_PYTHON_VERSIONfrominterpreters.bzlfile. Ifyou need the version, please use it from the
versions.bzlfile instead.{#v0-40-0}
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.