Update dependency rules_python to v1.5.1 #514
Open
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.1.0
->1.5.1
1.1.0
->1.5.1
Release Notes
bazel-contrib/rules_python (rules_python)
v1.5.1
Compare Source
{#v1-5-1-fixed}
Fixed
by default again)
(#3038).
{#1-5-0}
v1.5.0
Compare Source
{#1-5-0-changed}
Changed
--bootstrap_impl=system_python
is forced. Thisallows setting
--bootstrap_impl=script
in bazelrc for mixed-platformenvironments.
compile_pip_requirements
now generates a.test
target. The_test
target is deprecated and will be removed in the next major release.(#2794
PyInfo.venv_symlinks
replacesPyInfo.site_packages_symlinks
Python 3.9 the minimum supported version for using
pip_parse
.{#1-5-0-fixed}
Fixed
this allows aspects using required_providers to function correctly.
(#2506).
--bootstrap_impl=script
:compile_pip_requirements
now works with itsys._base_executable
value will reflect the underlying interpreter,not venv interpreter.
//python/runtime_env_toolchains:all
toolchain 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
--hash
parameter. Fixes#2363.
whl_library
now infers file names from itsurls
attribute correctly.bazel test
, be sure that temporaryrequirements
fileremains writable.
by platform even though the same version is used. Fixes #2648.
compile_pip_requirements
test rule works behind the proxyreleaselevel
andserial
for pre-release hermetic toolchains ({gh-issue}2837
).{#1-5-0-added}
Added
execute_unchecked
,execute_checked
, andexecute_checked_stdout
nowsupport
log_stdout
andlog_stderr
keyword 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=1
environment variable to enable it.rules_python
target that returnsa
PyInfo
provider..netrc
andauth_patterns
auth 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.
{#1-5-0-removed}
Removed
{#1-4-1}
v1.4.1
Compare Source
{#1-4-1-fixed}
Fixed
requirements file are not present. Fixes
#2863.
{#1-4-0}
v1.4.0
Compare Source
{#1-4-0-changed}
Changed
exec
configuration toolchain now has the forwardedexec_interpreter
now also forwards theToolchainInfo
provider. This isfor increased compatibility with the
RBE
setups where access to theexec
configuration interpreter is needed.
xcrun xcodebuild --showsdks
to find XCode root.3.8.20
versions of the Python3.8
interpreter who hasreached EOL. If users still need other versions of the
3.8
interpreter, please supplythe URLs manually {bzl:obj}
python.toolchain
or {bzl:obj}python_register_toolchains
calls.changed the semantics of
ignore_root_user_error
from "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.srcs
and {attr}py_test.srcs
is no longer mandatory whenmain_module
is specified (for--bootstrap_impl=script
){#1-4-0-fixed}
Fixed
universal lock files with environment markers. Fixes #2690.
--bootstrap_impl=script
) Follow symlinks when searching for runfiles.chmod
when downloading non-windows hermetic toolchainrepositories on Windows. Fixes
#2660.
FAIL
via theRULES_PYTHON_REPO_DEBUG_VERBOSITY
environment variable.transitions transitioning on the
python_version
flag.Fixes #2685.
PYTHONPATH
..pyc
and.pyo
files are also excluded from the interpreters repository files.PYTHONPATH
.requires_file
is treated as if it were omitted, resulting in a validMETADATA
file.target_compatible_with
to all targets they create.PR #2788.
METADATA
entries whenpython_full_version
is used inthe environment marker.
Fixes #2319.
python_version
parameter and transition the requirementlocking to the right interpreter version when using
{obj}
compile_pip_requirements
rule.See #2819.
{#1-4-0-added}
Added
sha256
values in therequirements.txt
is no longermandatory when enabling {attr}
pip.parse.experimental_index_url
feature.This means that
rules_python
will 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_python
being too eager to fetch the SimpleAPImetadata, you can use the newly added {attr}
pip.parse.simpleapi_skip
to skip metadata fetching for those packages.
lock
rule 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
test
target (but it can be added on the userside by using
native_test
). For customizing theuv
version that is used,please check the {obj}
uv.configure
tag class.PyInfo.site_packages_symlinks
field 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.{#1-4-0-removed}
Removed
{#v1-3-0}
v1.3.0
Compare Source
{#v1-3-0-changed}
Changed
py_library.pyi_srcs
(.pyi
files) in the wheel.py_library.pyi_srcs
(.pyi
files) inpy_package
.gazelle_python.yaml
) will now include theYAML document start
---
line. Implemented in#2656.
{#v1-3-0-fixed}
Fixed
ppc64le
is now pointing to the right target in theplatforms
package.py_binary
targets during partial updates infile
generation mode. Fixed in #2619.ignore_root_user_error=True
is 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.
python
invocations in repository and module extensionevaluation contexts will invoke Python interpreter with
-B
to avoidcreating
.pyc
files.{#v1-3-0-added}
Added
python.defaults
has 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_src
can be used to specify abinary whose interpreter to use.
bzlmod
APIs without theneed to patch
rules_python
. The documentation has been added torules_python
docs 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
uv
project.LDFLAGS
whenbuilding wheels from
sdist
.{obj}
experimental_index_url
(bazel downloader).Partially fixes #2363.
and py_library rules
(#1647)
See {any}
RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS
environment variable.Only applicable for {obj}
--bootstrap_impl=script
.interpreter_args
attribute topy_binary
andpy_test
,which allows pass arguments to the interpreter before the regular args.
main_module
attribute topy_binary
andpy_test
,which allows specifying a module name to run (i.e.
python -m <module>
).{#v1-3-0-removed}
Removed
{#v1-2-0}
v1.2.0
Compare Source
{#v1-2-0-changed}
Changed
py_proto_library
is deprecated in favour of theimplementation in https://github.com/protocolbuffers/protobuf. It will be
removed in the future release.
pip.override
will now be ignored instead of raising an error,fixes #2550.
default for now and can be enabled with
RULES_PYTHON_DEPRECATION_WARNINGS
env var.
pip
from24.3.2
to24.0.0
andpackaging
from24.2
to24.0
.{#v1-2-0-fixed}
Fixed
python_zip_file
output with--bootstrap_impl=script
works again(#2596).
python_version
attribute for specifying python versions introduced inv1.1.0
gazelle_python_manifest
now works correctly.fixes #2554.
as UTF-8 on all platforms.
--bootstrap_impl=script
is fixed(#2572).
by reverting #2514.
The related issue is #908.
tag_class
does not have a populateddoc
value.Fixes (#2579).
--bootstrap_impl=script
: set{obj}
--venvs_use_declare_symlink=no
to 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}
bazelbuild/rules_python (rules_python)
v1.5.1
Compare Source
{#v1-5-1-fixed}
Fixed
by default again)
(#3038).
{#1-5-0}
v1.5.0
Compare Source
{#1-5-0-changed}
Changed
--bootstrap_impl=system_python
is forced. Thisallows setting
--bootstrap_impl=script
in bazelrc for mixed-platformenvironments.
compile_pip_requirements
now generates a.test
target. The_test
target is deprecated and will be removed in the next major release.(#2794
PyInfo.venv_symlinks
replacesPyInfo.site_packages_symlinks
Python 3.9 the minimum supported version for using
pip_parse
.{#1-5-0-fixed}
Fixed
this allows aspects using required_providers to function correctly.
(#2506).
--bootstrap_impl=script
:compile_pip_requirements
now works with itsys._base_executable
value will reflect the underlying interpreter,not venv interpreter.
//python/runtime_env_toolchains:all
toolchain 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
--hash
parameter. Fixes#2363.
whl_library
now infers file names from itsurls
attribute correctly.bazel test
, be sure that temporaryrequirements
fileremains writable.
by platform even though the same version is used. Fixes #2648.
compile_pip_requirements
test rule works behind the proxyreleaselevel
andserial
for pre-release hermetic toolchains ({gh-issue}2837
).{#1-5-0-added}
Added
execute_unchecked
,execute_checked
, andexecute_checked_stdout
nowsupport
log_stdout
andlog_stderr
keyword 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=1
environment variable to enable it.rules_python
target that returnsa
PyInfo
provider..netrc
andauth_patterns
auth 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.
{#1-5-0-removed}
Removed
{#1-4-1}
v1.4.1
Compare Source
{#1-4-1-fixed}
Fixed
requirements file are not present. Fixes
#2863.
{#1-4-0}
v1.4.0
Compare Source
{#1-4-0-changed}
Changed
exec
configuration toolchain now has the forwardedexec_interpreter
now also forwards theToolchainInfo
provider. This isfor increased compatibility with the
RBE
setups where access to theexec
configuration interpreter is needed.
xcrun xcodebuild --showsdks
to find XCode root.3.8.20
versions of the Python3.8
interpreter who hasreached EOL. If users still need other versions of the
3.8
interpreter, please supplythe URLs manually {bzl:obj}
python.toolchain
or {bzl:obj}python_register_toolchains
calls.changed the semantics of
ignore_root_user_error
from "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.srcs
and {attr}py_test.srcs
is no longer mandatory whenmain_module
is specified (for--bootstrap_impl=script
){#1-4-0-fixed}
Fixed
universal lock files with environment markers. Fixes #2690.
--bootstrap_impl=script
) Follow symlinks when searching for runfiles.chmod
when downloading non-windows hermetic toolchainrepositories on Windows. Fixes
#2660.
FAIL
via theRULES_PYTHON_REPO_DEBUG_VERBOSITY
environment variable.transitions transitioning on the
python_version
flag.Fixes #2685.
PYTHONPATH
..pyc
and.pyo
files are also excluded from the interpreters repository files.PYTHONPATH
.requires_file
is treated as if it were omitted, resulting in a validMETADATA
file.target_compatible_with
to all targets they create.PR #2788.
METADATA
entries whenpython_full_version
is used inthe environment marker.
Fixes #2319.
python_version
parameter and transition the requirementlocking to the right interpreter version when using
{obj}
compile_pip_requirements
rule.See #2819.
{#1-4-0-added}
Added
sha256
values in therequirements.txt
is no longermandatory when enabling {attr}
pip.parse.experimental_index_url
feature.This means that
rules_python
will 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_python
being too eager to fetch the SimpleAPImetadata, you can use the newly added {attr}
pip.parse.simpleapi_skip
to skip metadata fetching for those packages.
lock
rule 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
test
target (but it can be added on the userside by using
native_test
). For customizing theuv
version that is used,please check the {obj}
uv.configure
tag class.PyInfo.site_packages_symlinks
field 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.{#1-4-0-removed}
Removed
{#v1-3-0}
v1.3.0
Compare Source
{#v1-3-0-changed}
Changed
py_library.pyi_srcs
(.pyi
files) in the wheel.py_library.pyi_srcs
(.pyi
files) inpy_package
.gazelle_python.yaml
) will now include theYAML document start
---
line. Implemented in#2656.
{#v1-3-0-fixed}
Fixed
ppc64le
is now pointing to the right target in theplatforms
package.py_binary
targets during partial updates infile
generation mode. Fixed in #2619.ignore_root_user_error=True
is 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.
python
invocations in repository and module extensionevaluation contexts will invoke Python interpreter with
-B
to avoidcreating
.pyc
files.{#v1-3-0-added}
Added
python.defaults
has 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_src
can be used to specify abinary whose interpreter to use.
bzlmod
APIs without theneed to patch
rules_python
. The documentation has been added torules_python
docs 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
uv
project.LDFLAGS
whenbuilding wheels from
sdist
.{obj}
experimental_index_url
(bazel downloader).Partially fixes #2363.
and py_library rules
(#1647)
See {any}
RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS
environment variable.Only applicable for {obj}
--bootstrap_impl=script
.interpreter_args
attribute topy_binary
andpy_test
,which allows pass arguments to the interpreter before the regular args.
main_module
attribute topy_binary
andpy_test
,which allows specifying a module name to run (i.e.
python -m <module>
).{#v1-3-0-removed}
Removed
{#v1-2-0}
v1.2.0
Compare Source
{#v1-2-0-changed}
Changed
py_proto_library
is deprecated in favour of theimplementation in https://github.com/protocolbuffers/protobuf. It will be
removed in the future release.
pip.override
will now be ignored instead of raising an error,fixes #2550.
default for now and can be enabled with
RULES_PYTHON_DEPRECATION_WARNINGS
env var.
pip
from24.3.2
to24.0.0
andpackaging
from24.2
to24.0
.{#v1-2-0-fixed}
Fixed
python_zip_file
output with--bootstrap_impl=script
works again(#2596).
python_version
attribute for specifying python versions introduced inv1.1.0
gazelle_python_manifest
now works correctly.fixes #2554.
as UTF-8 on all platforms.
--bootstrap_impl=script
is fixed(#2572).
by reverting #2514.
The related issue is #908.
tag_class
does not have a populateddoc
value.Fixes (#2579).
--bootstrap_impl=script
: set{obj}
--venvs_use_declare_symlink=no
to 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}
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.