fix(deps): Update dependency rules_python to v1 #84
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->1.8.3Release Notes
bazel-contrib/rules_python (rules_python)
v1.8.3Compare Source
{#v1-8-3-fixed}
Fixed
Fixes #3543.
{#v1-8-2}
v1.8.2Compare Source
{#v1-8-2-fixed}
Fixed
Fixes #3524.
{#v1-8-1}
v1.8.1Compare Source
{#v1-8-1-fixed}
Fixed
Fixes #3524.
{#v1-8-0}
v1.8.0Compare Source
{#v1-8-0-known-issues}
Known Issues
#3416 for
details and possible workarounds.
{#v1-8-0-removed}
Removed
(toolchain) Remove all of the python 3.8 toolchain support out of the box. Users need
to pass the
TOOL_VERSIONSthat include 3.8 toolchains or use thebzlmodAPIs to addthem back. This means any hub
pip.parsecalls that target3.8will be ignored fromnow on. (#2704)
{object}
python.single_version_override, like:(toolchain) Remove all of the python 3.9 toolchain versions except for the
3.9.25.This version has reached EOL and will no longer receive any security fixes, please update to
3.10or above. (#2704)(toolchain)
ignore_root_user_errorhas now been flipped to be always enabled andthe
chmodof the python toolchain directories have been removed. From now onrules_pythonalways adds the
pycfiles to the glob excludes and in order to avoid any problems when usingthe toolchains in the repository phase, ensure that you pass
-Bto the python interpreter.(#2016)
{#v1-8-0-changed}
Changed
pipstarhas been enabled for allwhl_libraryinstances where the whlis passed through a label or downloaded using the bazel downloader
(#2949).
pipstarflag default has been flipped to be on by default.It can be disabled through
RULES_PYTHON_ENABLE_PIPSTAR=0environment variable.If you do need to disable it, please add a comment to
#2949.
{#v1-8-0-fixed}
Fixed
py_binarytargets with invalidsrcs. This includes filesthat are not generated or regular files.
#3046
implementation assumes that it is always four levels below the runfiles
directory, leading to incorrect path checks
(#3085).
sys.abiflagsvalue of theunderlying runtime.
fixes to linking, Windows DLL detection, and defines for free threaded
runtimes.
python_headerstarget is now compatible withlayering_check.
(#3381).
gazelle_python_manifest.testso that it accesses manifest files viarunfilepath handling rather than directly (#3397).sys.path.
.servetarget is now compatible with Bazel's--symlink_prefixflag (#3410).
{#v1-8-0-added}
Added
3.9.25Python toolchain from 20251031 release.3.13.10,3.14.1Python toolchain from 20251202 release.3.13.11,3.14.2,3.15.0a2Python toolchains from 20251209 release.pip.parsewhich platforms users care about. This is very useful to ensurethat when users do
bazel queryfor their deps, they don't have to download all of thedependencies for all of the available wheels. Torch wheels can be up of 1GB and it takes a lot
of time to download those, which is unnecessary if only the host platform builds are necessary
to be performed. This is mainly for backwards/forwards compatibility whilst rolling out
RULES_PYTHON_ENABLE_PIPSTAR=1by default. Users ofexperimental_index_urlthat performcross-builds should add {obj}
target_platformsto theirpip.parseinvocations, which willbecome mandatory if any cross-builds are required from the next release.
namespace_package_filesadded. It is a hint foroptimizing venv creation.
{#v1-7-0}
v1.7.0Compare Source
{#v1-7-0-removed}
Removed
removed
(#3215).
{#v1-7-0-changed}
Changed
0.1.5.--bootstrap_impl=system_python,PYTHONPATHis nolonger used to add import paths. The sys.path order has changed from
[app paths, stdlib, runtime site-packages]to[stdlib, app paths, runtime site-packages].--bootstrap_impl=system_python, the sys.path order haschanged from
[app paths, stdlib, runtime site-packages]to[stdlib, app paths, runtime site-packages].experimental_index_url.(#2937).
py_runtimeandPyRuntimeInforeject Python 2 settings.Setting
py_runtime.python_version = "PY2"or non-NonePyRuntimeInfo.py2_runtimeis an error.pipstarflag has been implemented forWORKSPACEand can be flipped to be enabled usingRULES_PYTHON_ENABLE_PIPSTAR=1environment variable. If you do, pleaseadd a comment to
#2949 if you run into any
problems.
With this release we are deprecating {obj}
pip.parse.experimental_target_platformsand{obj}
pip_repository.experimental_target_platforms. For users usingWORKSPACEandvendoring the
requirements.bzlfile, please re-vendor so that downstream is unaffectedwhen the APIs get removed. If you need to customize the way the dependencies get
evaluated, see our docs on customizing
Requires-Distresolution.from the 20251014 release.
bazel-skylibversion1.8.2
{#v1-7-0-fixed}
Fixed
PyInfoconstructor was setting the wrong value forhas_py3_only_sources- this is now fixed.RUNFILES_DIRenvironments, fixing issues where a
py_binarycalls anotherpy_binary(#3187).
length errors due to too long environment variables.
--bootstrap_impl=scriptnow supports the-Sinterpretersetting.
--venvs_site_packages=yesno longer errors when packages withoverlapping files or directories are used together.
(#3204).
--venvs_site_packages=yesworks for packages that dynamicallylink to shared libraries
(#3228).
--venvs_site_packages=yesincludespthfiles at the root of thesite-packages folder
(#3339).
//python/uv:lock.bzl%locknow works with a local platformruntime.
linux_riscv64is added to the platforms list in_pip_repository_impl,which fixes a build issue for tensorflow on riscv64.
variants. Setting {obj}
--py_linux_libc=musland--py_freethreaded=yesnowactivate them, respectively.
(#3262).
py_console_script_binaryis now compatible with symbolic macros(#3195).
{#v1-7-0-added}
Added
--incompatible_compact_repo_mapping_manifestflag.--bootstrap_impl=system_pythonnow supports the{obj}
main_moduleattribute.--bootstrap_impl=system_pythonnow supports the{any}
RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGSenvironment variable.py_binary,py_test, andpy_wheelrules now have a{obj}
config_settingsattribute to control build flags within the build graph.Custom settings can be added using {obj}
config.add_transition_settinginMODULE.bazelfiles, or {obj}py_repositories(transition_settings=...)inWORKSPACEfiles. See the{ref}
common-deps-with-multiple-pypi-versionsguide on using commondependencies with multiple PyPI versions` for an example.
{obj}
//python/cc:current_py_cc_headers_abi3. This allows Windows buildsa way to depend on headers without the potentially Python unstable ABI
objects from the regular {obj}
//python/cc:current_py_cc_headerstargetbeing included.
//python/cc:current_py_cc_headers_abi3,{obj}
py_cc_toolchain.headers_abi3, and {obj}PyCcToolchainInfo.headers_abi3.//python:features.bzl%features.headers_abi3can be used tofeature-detect the presense of the above.
experimental_index_urlhandling forWindows ARM64 for Python 3.11 and later
(#2276).
{#v1-6-3}
v1.6.3Compare Source
{#v1-6-3-fixed}
Fixed
the right wheel when there are multiple wheels for the target platform
(e.g.
musllinux_1_1_x86_64andmusllinux_1_2_x86_64). If the userwants to set the minimum version for the selection algorithm, use the
{attr}
pip.defaults.whl_platform_tagsattribute to configure that. Ifmusllinux_*_x86_64is specified, we will choose the lowest availablewheel version. Fixes #3250.
{#v1-6-0}
v1.6.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@1.6.0...1.6.1
v1.6.0Compare Source
{#v1-6-0-changed}
Changed
to the package path. This is enabled via the
# gazelle:python_experimental_allow_relative_importstrue directive ({gh-issue}2203).python.ParserOutputare now all public.__init__.py,__main__.py, or__test__.pyfiles to bepresent in a directory to generate a
BUILD.bazelfile.#2630
linux_x86_64,linux_aarch64,osx_x86_64,osx_aarch64andwindows_x86_64. If you are on other platforms, you need touse the
pip.defaultto configure it yourself. If you are interested in graduating theplatform, consider helping set us up CI for them and update the documentation.
#!/usr/bin/env bashis now used as a shebang in the stage1 bootstrap template.gazelle/README.mdto{gh-path}
gazelle/docsand are now available on the primary documentation siteat https://rules-python.readthedocs.io/en/latest/gazelle/docs/index.html
{#v1-6-0-fixed}
Fixed
local_runtime_reponow respects changes to theDEVELOPER_DIRandXCODE_VERSIONrepo env vars, fixing stale cache issues on macOS with system (i.e. Xcode-supplied) Python
(#3123).
bazel vendorvendor directorywould fail if the constraints file contained environment markers. Fixes
#2996.
result in missing files at runtime
(#2782).
py.typedto indicate itsupports type checking
(#2503).
defaultsconfiguration now supports any custom platformname.
in ambiguous select matches ({gh-issue}
2759) and should be much more efficientwhen running
bazel querydue to fewer repositories being included({gh-issue}
2849).local_runtime_repoworks with multiarch Debian with Python 3.8(#3099).
all_requirements(#2921).
REPLstub to make it possible to use thedefault stub template from outside
rules_python({gh-issue}3101).absolute imports (Python 2's behavior without
absolute_import). Previousbehavior can be restored using the directive
# gazelle:python_resolve_sibling_imports true(#2985).
$PATH(#3150).
bazel vendornow works inbzlmod({gh-issue}3079).local_runtime_reponow works on Windows(#3055).
local_runtime_reposupports more types of Pythoninstallations (Mac frameworks, missing dynamic libraries, and other
esoteric cases, see
#3148 for details).
requirements.txtfiles that use different versions of the samepackage targeting different target platforms.
(#2797).
{#v1-6-0-added}
Added
readlinesupport is available,see (#3114).
(#3114).
requirements.txtevaluation, use the newly addeddeveloper preview of the
pip.defaulttag class. Onlyrules_pythonand root modules can usethis feature. You can also configure custom
config_settingsusingpip.default. Itcan also be used to set the global
netrcorauth_patternsvariables.:extracted_whl_filesfilegroup targetof all the files extracted from the wheel. This can be used in lieu of
{obj}
whl_filegroupto avoid copying/extracting wheel multiple times toget a subset of their files.
gazelle:python_generate_pyi_deps; whentrue,dependencies added to satisfy type-only imports (
if TYPE_CHECKING) and typestub packages are added to
pyi_depsinstead ofdeps.gazelle:include_pytest_conftest. When not set (thedefault) or
true, gazelle will inject anyconftest.pyfile found in the samedirectory as a {obj}
py_testtarget to that {obj}py_testtarget'sdeps.This behavior is unchanged from previous versions. When
false, the:conftestdep is not added to the {obj}
py_testtarget.gazelle:python_generate_proto; whentrue,Gazelle generates
py_proto_libraryrules forproto_library.falseby default.proto language.
gazelle:python_proto_naming_convention; controlsnaming of
py_proto_libraryrules.{#v1-6-0-removed}
Removed
{#v1-5-4}
v1.5.4Compare Source
{#v1-5-4-fixed}
Fixed
local_runtime_reponow checks if the include directory existsbefore attempting to watch it, fixing issues on macOS with system Python
(#3043).
{#v1-5-3}
v1.5.3Compare Source
Fixed
local_runtime_reponow checks if the include directory existsbefore attempting to watch it, fixing issues on macOS with system Python
(#3043).
{#v1-5-2}
v1.5.2Compare Source
{#v1-5-2-changed}
Changed
bazel-skylibversion1.8.1
to remove deprecation warnings.
{#v1-5-2-fixed}
Fixed
sdistdistributions usingpip(#3131).
7.xWORKSPACEconfigurations(#3119).
{#v1-5-1}
v1.5.1Compare Source
{#v1-5-1-fixed}
Fixed
by default again)
(#3038).
{#v1-5-0}
v1.5.0Compare Source
{#v1-5-0-changed}
Changed
--bootstrap_impl=system_pythonis forced. Thisallows setting
--bootstrap_impl=scriptin bazelrc for mixed-platformenvironments.
compile_pip_requirementsnow generates a.testtarget. The_testtarget is deprecated and will be removed in the next major release.(#2794
PyInfo.venv_symlinksreplacesPyInfo.site_packages_symlinksPython 3.9 the minimum supported version for using
pip_parse.{#v1-5-0-fixed}
Fixed
this allows aspects using required_providers to function correctly.
(#2506).
--bootstrap_impl=script:compile_pip_requirementsnow works with itsys._base_executablevalue will reflect the underlying interpreter,not venv interpreter.
//python/runtime_env_toolchains:alltoolchain now works with it.multiple times.
to specify the requirements.
various URL formats - URL encoded version strings get correctly resolved, sha256 value can be
also retrieved from the URL as opposed to only the
--hashparameter. Fixes#2363.
whl_librarynow infers file names from itsurlsattribute correctly.bazel test, be sure that temporaryrequirementsfileremains writable.
by platform even though the same version is used. Fixes #2648.
compile_pip_requirementstest rule works behind the proxyreleaselevelandserialfor pre-release hermetic toolchains ({gh-issue}2837).{#v1-5-0-added}
Added
execute_unchecked,execute_checked, andexecute_checked_stdoutnowsupport
log_stdoutandlog_stderrkeyword arg booleans. When these areTrue(the default), the subprocess's stdout/stderr will be logged.
[Conditionally using local toolchains] docs for how to configure.
available (not enabled by default) for improved multi-platform build support.
Set the
RULES_PYTHON_ENABLE_PIPSTAR=1environment variable to enable it.rules_pythontarget that returnsa
PyInfoprovider..netrcandauth_patternsauth when downloadinguv. Work towards#1975.
and activated with custom flags. See the [Registering custom runtimes]
docs and {obj}
single_version_platform_override()API docs for moreinformation.
compile_pip_requirements.Useful when an intermediate dependency needs to be upgraded to pull in
security patches.
{#v1-5-0-removed}
Removed
{#v1-4-2}
v1.4.2Compare Source
Fixed
local_runtime_reponow checks if the include directory existsbefore attempting to watch it, fixing issues on macOS with system Python
(#3043).
{#v1-4-1}
v1.4.1Compare Source
{#v1-4-1-fixed}
Fixed
requirements file are not present. Fixes
#2863.
{#v1-4-0}
v1.4.0Compare Source
{#v1-4-0-changed}
Changed
execconfiguration toolchain now has the forwardedexec_interpreternow also forwards theToolchainInfoprovider. This isfor increased compatibility with the
RBEsetups where access to theexecconfiguration interpreter is needed.
xcrun xcodebuild --showsdksto find XCode root.3.8.20versions of the Python3.8interpreter who hasreached EOL. If users still need other versions of the
3.8interpreter, please supplythe URLs manually {bzl:obj}
python.toolchainor {bzl:obj}python_register_toolchainscalls.changed the semantics of
ignore_root_user_errorfrom "ignore" to "warning". This is nowflipped back to ignoring the issue, and will only emit a warning when the attribute is set
False.extension has been marked reproducible.
Fixes #2434.
manifest files are loaded when Gazelle is run over a set of non-python directories
PR #2746.
py_binary.srcsand {attr}py_test.srcsis no longer mandatory whenmain_moduleis specified (for--bootstrap_impl=script){#v1-4-0-fixed}
Fixed
universal lock files with environment markers. Fixes #2690.
--bootstrap_impl=script) Follow symlinks when searching for runfiles.chmodwhen downloading non-windows hermetic toolchainrepositories on Windows. Fixes
#2660.
FAILvia theRULES_PYTHON_REPO_DEBUG_VERBOSITYenvironment variable.transitions transitioning on the
python_versionflag.Fixes #2685.
PYTHONPATH..pycand.pyofiles are also excluded from the interpreters repository files.PYTHONPATH.requires_fileis treated as if it were omitted, resulting in a validMETADATAfile.target_compatible_withto all targets they create.PR #2788.
METADATAentries whenpython_full_versionis used inthe environment marker.
Fixes #2319.
python_versionparameter and transition the requirementlocking to the right interpreter version when using
{obj}
compile_pip_requirementsrule.See #2819.
{#v1-4-0-added}
Added
sha256values in therequirements.txtis no longermandatory when enabling {attr}
pip.parse.experimental_index_urlfeature.This means that
rules_pythonwill attempt to fetch metadata for allpackages through SimpleAPI unless they are pulled through direct URL
references. Fixes #2023.
In case you see issues with
rules_pythonbeing too eager to fetch the SimpleAPImetadata, you can use the newly added {attr}
pip.parse.simpleapi_skipto skip metadata fetching for those packages.
lockrule that is the replacement for the{obj}
compile_pip_requirements. This may still have rough cornersso please report issues with it in the
#1975.
Main highlights - the locking can be done within a build action or outside
it, there is no more automatic
testtarget (but it can be added on the userside by using
native_test). For customizing theuvversion that is used,please check the {obj}
uv.configuretag class.PyInfo.site_packages_symlinksfield added toallow specifying links to create within the venv site packages (only
applicable with {obj}
--bootstrap_impl=script)(#2156).
equivalent to the standard toolchains. See [Local toolchains] docs for how to
configure them.
$(PYTHON2_ROOTPATH)and$(PYTHON3_ROOTPATH)which are runfileslocations equivalents of
$(PYTHON2)and `$(PYTHON3) respectively.{#v1-4-0-removed}
Removed
{#v1-3-0}
v1.3.0Compare Source
{#v1-3-0-changed}
Changed
py_library.pyi_srcs(.pyifiles) in the wheel.py_library.pyi_srcs(.pyifiles) inpy_package.gazelle_python.yaml) will now include theYAML document start
---line. Implemented in#2656.
{#v1-3-0-fixed}
Fixed
ppc64leis now pointing to the right target in theplatformspackage.py_binarytargets during partial updates infilegeneration mode. Fixed in #2619.ignore_root_user_error=Trueis now the default. Note that running as root may still cause spurious
Bazel cache invalidation
(#1169).
Support spilling modules mapping args into a params file.
pythoninvocations in repository and module extensionevaluation contexts will invoke Python interpreter with
-Bto avoidcreating
.pycfiles.{#v1-3-0-added}
Added
python.defaultshas been added to allow users toset the default python version in the root module by reading the
default version number from a file or an environment variable.
//python/bin:python: convenience target for directly running aninterpreter. {obj}
--//python/bin:python_srccan be used to specify abinary whose interpreter to use.
bzlmodAPIs without theneed to patch
rules_python. The documentation has been added torules_pythondocs but usage of the extension may result in your setup breaking without any
notice. What is more, the URLs and SHA256 values will be retrieved from the
GitHub releases page metadata published by the
uvproject.LDFLAGSwhenbuilding wheels from
sdist.{obj}
experimental_index_url(bazel downloader).Partially fixes #2363.
and py_library rules
(#1647)
See {any}
RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGSenvironment variable.Only applicable for {obj}
--bootstrap_impl=script.interpreter_argsattribute topy_binaryandpy_test,which allows pass arguments to the interpreter before the regular args.
main_moduleattribute topy_binaryandpy_test,which allows specifying a module name to run (i.e.
python -m <module>).{#v1-3-0-removed}
Removed
{#v1-2-0}
v1.2.0Compare Source
{#v1-2-0-changed}
Changed
py_proto_libraryis deprecated in favour of theimplementation in https://github.com/protocolbuffers/protobuf. It will be
removed in the future release.
pip.overridewill now be ignored instead of raising an error,fixes #2550.
default for now and can be enabled with
RULES_PYTHON_DEPRECATION_WARNINGSenv var.
pipfrom24.3.2to24.0.0andpackagingfrom24.2to24.0.{#v1-2-0-fixed}
Fixed
python_zip_fileoutput with--bootstrap_impl=scriptworks again(#2596).
python_versionattribute for specifying python versions introduced inv1.1.0gazelle_python_manifestnow works correctly.fixes #2554.
as UTF-8 on all platforms.
--bootstrap_impl=scriptis fixed(#2572).
by reverting #2514.
The related issue is #908.
tag_classdoes not have a populateddocvalue.Fixes (#2579).
--bootstrap_impl=script: set{obj}
--venvs_use_declare_symlink=noto have it not create symlinks atbuild time (they will be created at runtime instead).
(Fixes #2489)
{#v1-2-0-added}
Added
{#v1-2-0-removed}
Removed
{#v1-1-0}
v1.1.0Compare Source
{#v1-1-0-changed}
Changed
version, per our Bazel support matrix. Earlier versions are not
tested by CI, so functionality cannot be guaranteed.
pip.parse) From now we will make fewer calls to indexes whenfetching the metadata from SimpleAPI. The calls will be done in parallel to
each index separately, so the extension evaluation time might slow down if
not using {bzl:obj}
pip.parse.experimental_index_url_overrides.pip.parse) Only query SimpleAPI for packages that havesha values in the
requirements.txtfile.the version-aware rules are now simply aliases for the base rules. The
python_versionattribute is still used to specify the Python version.pipto 24.3.1 andpackagingto 24.2.{#v1-1-0-deprecations}
Deprecations
//python/config_settings:transitions.bzland itspy_binaryandpy_testwrappers are deprecated. Use the regular rules instead.
{#v1-1-0-fixed}
Fixed
toolchains that search PATH to be used for the wheel builder tool.
whl_librarywill now not have envmarker information allowing
bazel queryto work in cases where thewhlisavailable for all of the platforms and the sdist can be built. This fix is
for both WORKSPACE and
bzlmodsetups.Fixes #2450.
Parameter Syntax. (#2396)
pip_parse.experimental_requirement_cyclesand{bzl:obj}
pip_parse.use_hub_alias_dependenciestogether now works whenusing WORKSPACE files.
are now printing more details and include the currently active flag
values. Fixes #2466.
PyPI packages used in
whl_libraryduring the repository rule phasechange. Fixes #2468.
setup.pyfiles by default. To restorethis behavior, apply the
# gazelle:python_ignore_files setup.pydirective.whenever
PATHchanges. Fixes#2551.
{#v1-1-0-added}
Added
include_stub_packagesflag tomodules_mapping. When set toTrue, thisautomatically includes corresponding stub packages for third-party libraries
that are present and used (e.g.,
boto3→boto3-stubs), improvingtype-checking support.
{obj}
experimental_index_urlusage or the regularpip.parseusage.To select the free-threaded interpreter in the repo phase, please use
the documented env variables.
Fixes #2386.
.pyifiles) and type-checkingonly dependencies added. See {obj}
py_library.pyi_srcsandpy_library.pyi_deps(and the same named attributes forpy_binaryandpy_test).pyi_srcsto include*.pyifiles.PyInfohas new fields to aid static analysis tools:{obj}
direct_original_sources, {obj}direct_pyi_files,{obj}
transitive_original_sources, {obj}transitive_pyi_files.{#v1-1-0-removed}
Removed
find_requirementsin//python:defs.bzlhas been removed.{#v1-0-0}
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.PyRuntimeInfo.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}
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 to
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.