chore(deps): update dependency rules_python to v1 #527
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.5.0
->1.6.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
bazelbuild/rules_python (rules_python)
v1.6.0
Compare Source
{#v1-6-0-changed}
Changed
to the package path. This is enabled via the
# gazelle:python_experimental_allow_relative_imports
true directive ({gh-issue}2203
).python.ParserOutput
are now all public.__init__.py
,__main__.py
, or__test__.py
files to bepresent in a directory to generate a
BUILD.bazel
file.#2630
linux_x86_64
,linux_aarch64
,osx_x86_64
,osx_aarch64
andwindows_x86_64
. If you are on other platforms, you need touse the
pip.default
to 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 bash
is now used as a shebang in the stage1 bootstrap template.gazelle/README.md
to{gh-path}
gazelle/docs
and 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_repo
now respects changes to theDEVELOPER_DIR
andXCODE_VERSION
repo env vars, fixing stale cache issues on macOS with system (i.e. Xcode-supplied) Python
(#3123).
bazel vendor
vendor directorywould fail if the constraints file contained environment markers. Fixes
#2996.
result in missing files at runtime
(#2782).
py.typed
to indicate itsupports type checking
(#2503).
defaults
configuration now supports any custom platformname.
in ambiguous select matches ({gh-issue}
2759
) and should be much more efficientwhen running
bazel query
due to fewer repositories being included({gh-issue}
2849
).local_runtime_repo
works with multiarch Debian with Python 3.8(#3099).
all_requirements
(#2921).
REPL
stub 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 vendor
now works inbzlmod
({gh-issue}3079
).local_runtime_repo
now works on Windows(#3055).
local_runtime_repo
supports more types of Pythoninstallations (Mac frameworks, missing dynamic libraries, and other
esoteric cases, see
#3148 for details).
requirements.txt
files that use different versions of the samepackage targeting different target platforms.
(#2797).
{#v1-6-0-added}
Added
readline
support is available,see (#3114).
(#3114).
requirements.txt
evaluation, use the newly addeddeveloper preview of the
pip.default
tag class. Onlyrules_python
and root modules can usethis feature. You can also configure custom
config_settings
usingpip.default
. Itcan also be used to set the global
netrc
orauth_patterns
variables.:extracted_whl_files
filegroup targetof all the files extracted from the wheel. This can be used in lieu of
{obj}
whl_filegroup
to 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_deps
instead ofdeps
.gazelle:include_pytest_conftest
. When not set (thedefault) or
true
, gazelle will inject anyconftest.py
file found in the samedirectory as a {obj}
py_test
target to that {obj}py_test
target'sdeps
.This behavior is unchanged from previous versions. When
false
, the:conftest
dep is not added to the {obj}
py_test
target.gazelle:python_generate_proto
; whentrue
,Gazelle generates
py_proto_library
rules forproto_library
.false
by default.proto language.
gazelle:python_proto_naming_convention
; controlsnaming of
py_proto_library
rules.{#v1-6-0-removed}
Removed
{#v1-5-4}
v1.5.4
Compare Source
{#v1-5-4-fixed}
Fixed
local_runtime_repo
now checks if the include directory existsbefore attempting to watch it, fixing issues on macOS with system Python
(#3043).
{#v1-5-3}
v1.5.3
Compare Source
Fixed
local_runtime_repo
now checks if the include directory existsbefore attempting to watch it, fixing issues on macOS with system Python
(#3043).
{#v1-5-2}
v1.5.2
Compare Source
{#v1-5-2-changed}
Changed
bazel-skylib
version1.8.1
to remove deprecation warnings.
{#v1-5-2-fixed}
Fixed
sdist
distributions usingpip
(#3131).
7.x
WORKSPACE
configurations(#3119).
{#v1-5-1}
v1.5.1
Compare Source
{#v1-5-1-fixed}
Fixed
by default again)
(#3038).
{#v1-5-0}
v1.5.0
Compare Source
{#v1-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
.{#v1-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
).{#v1-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.
{#v1-5-0-removed}
Removed
{#v1-4-2}
v1.4.2
Compare Source
Fixed
local_runtime_repo
now checks if the include directory existsbefore attempting to watch it, fixing issues on macOS with system Python
(#3043).
{#v1-4-1}
v1.4.1
Compare Source
{#v1-4-1-fixed}
Fixed
requirements file are not present. Fixes
#2863.
{#v1-4-0}
v1.4.0
Compare Source
{#v1-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
){#v1-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.
{#v1-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.{#v1-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}
v1.1.0
Compare 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.txt
file.the version-aware rules are now simply aliases for the base rules. The
python_version
attribute is still used to specify the Python version.pip
to 24.3.1 andpackaging
to 24.2.{#v1-1-0-deprecations}
Deprecations
//python/config_settings:transitions.bzl
and itspy_binary
andpy_test
wrappers 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_library
will now not have envmarker information allowing
bazel query
to work in cases where thewhl
isavailable for all of the platforms and the sdist can be built. This fix is
for both WORKSPACE and
bzlmod
setups.Fixes #2450.
Parameter Syntax. (#2396)
pip_parse.experimental_requirement_cycles
and{bzl:obj}
pip_parse.use_hub_alias_dependencies
together now works whenusing WORKSPACE files.
are now printing more details and include the currently active flag
values. Fixes #2466.
PyPI packages used in
whl_library
during the repository rule phasechange. Fixes #2468.
setup.py
files by default. To restorethis behavior, apply the
# gazelle:python_ignore_files setup.py
directive.whenever
PATH
changes. Fixes#2551.
{#v1-1-0-added}
Added
include_stub_packages
flag 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_url
usage or the regularpip.parse
usage.To select the free-threaded interpreter in the repo phase, please use
the documented env variables.
Fixes #2386.
.pyi
files) and type-checkingonly dependencies added. See {obj}
py_library.pyi_srcs
andpy_library.pyi_deps
(and the same named attributes forpy_binary
andpy_test
).pyi_srcs
to include*.pyi
files.PyInfo
has 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_requirements
in//python:defs.bzl
has been removed.{#v1-0-0}
v1.0.0
Compare Source
{#v1-0-0-changed}
Changed
Breaking:
Please consider depending on the flags defined in
//python/config_setting/...
and the@platforms
package instead.MACOS_NAME
and thearch
attribute in the
PLATFORMS
list, please update your code to respect the newvalues. The values now correspond to the values available in the
@platforms//
package constraint values.host_platform
andinterpreter
constants are no longer createdin the
toolchain
generated alias.bzl
files. If you need to access thehost interpreter during the
repository_rule
evaluation, please use the@python_{version}_host//:python
targets created by{bzl:obj}
python_register_toolchains
and{bzl:obj}
python_register_multi_toolchains
macros or the {bzl:obj}python
bzlmod extension.
pip.parse.parse_all_requirements_files
attribute has been removed.See notes in the previous versions about what to do.
Other changes:
strip_prefix
field forzstd
archives.pip_parse.extra_hub_aliases
now works in WORKSPACE files.--bootstrap_impl=script
, a binary-specific (butotherwise empty) virtual env is used to customize
sys.path
initialization.{#v1-0-0-fixed}
Fixed
uname
to 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).
uv
binary for aarch64-apple-darwin.Fixes (2411).
--bootstrap_impl=scipt
) Usingsys.executable
willuse the same
sys.path
setup as the calling binary.(2169).
hardcoded in Bazel, WORKSPACE mode.
compile_pip_requirements
no longer fails on Windows when--enable_runfiles
is not enabled.compile_pip_requirements
now correctly updates files in the source tree on Windows when--windows_enable_symlinks
is not enabled.libpython
targetdefined by a repository template. This enables stable ABI builds of Python extensions
on Windows (by defining Py_LIMITED_API).
py_test
andpy_binary
targets no longer incorrectly remove thefirst
sys.path
entry 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
freethreaded
python interpreter in therepository_rule
to build a wheel fromsdist
.muslc
libc 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_libc
build flag.PyRuntimeInfo.site_init_template
and{obj}
PyRuntimeInfo.site_init_template
for specifying the template to use toinitialize the interpreter via venv startup hooks.
{#v1-0-0-removed}
Removed
pypi_install_dependencies
macro that has been included in{bzl:obj}
py_repositories
for a long time.DEFAULT_PYTHON_VERSION
frominterpreters.bzl
file. Ifyou need the version, please use it from the
versions.bzl
file instead.{#v0-40-0}
v0.40.0
Compare Source
{#v0-40-changed}
Changed
{#v0-40-fixed}
Fixed
(2414).
{#v0-40-added}
Added
{#v0-40-removed}
Removed
requirements.txt
for thetwine
dependencies.Please use
requirements_linux.txt
instead.zstd
support and remove attributesfor customizing the
zstd
binary to be used forzstd
archives in the{bzl:obj}
python_repository
repository_rule. This affects the{bzl:obj}
python_register_toolchains
and{bzl:obj}
python_register_multi_toolchains
callers in theWORKSPACE
.{#v0-39-0}
v0.39.0
Compare Source
{#v0-39-0-changed}
Changed
bzlmod
spoke repositories have changed asall of the given
requirements.txt
files 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_toolchain
is being used(#2364).
{#v0-39-0-added}
Added
the config flag
//python/config_settings:py_freethreaded
to toggle theselection of the free-threaded toolchains.
py_runtime.abi_flags
attribute and{obj}
PyRuntimeInfo.abi_flags
field added.{#v0-39-0-removed}
Removed
{#v0-38-0}
v0.38.0
Compare 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
twine
publishing rule.--no-build-isolation
to 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_args
pip.parse.whl_modifications
now normalizes the given whl namesand now
pyyaml
andPyYAML
will both work.pip.parse
spoke 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
hub
repository directly and make use of {bzl:obj}
pip.parse.extra_hub_aliases
feature added in this release.
{#v0-38-0-fixed}
Fixed
whl_library
s(617).
pip.parse.experimental_index_url
is set, we need to stillpass the
extra_pip_args
value when building ansdist
.which fixes usage of the said wheels using standard package managers.
same lock file irrespective if
experimental_index_url
is 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 query
and in these use cases it isadvisable to use
cquery
or switch todownload_only = True
{#v0-38-0-added}
Added
twine
publishing rules have beenupdated to have a new convention:
requirements_darwin.txt
,requirements_linux.txt
,requirements_windows.txt
for each respective OSand one extra file
requirements_universal.txt
if you prefer a single file.The
requirements.txt
file may be removed in the future.//python/features.bzl#features.version
pip.parse.extra_hub_aliases
can now be used to expose extratargets created by annotations in whl repositories.
Fixes #2187.
pip.parse
now supportswhl-only
setup usingdownload_only = True
where users can specify multiple requirements filesand use the
pip
backend 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.2
Compare Source
{#v0-37-2-fixed}
Fixed
config_setting
values for all available toolchains insteadof only the registered toolchains, which restores the previous behaviour that
bzlmod
users would have observed.{#v0-37-1}
v0.37.1
Compare Source
{#v0-37-1-fixed}
Fixed
--incompatible_python_disallow_native_rules
no longercauses rules_python rules to fail
(#2326).
{#v0-37-0}
v0.37.0
Compare Source
{#v0-37-0-changed}
Changed
py_library
no 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_sources
is now added to runfiles. These files are.py
files that are required to be added to runfiles by downstream binaries(or equivalent).
py_runtime.implementation_name
now 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_mapping
will alwayshave all of the python versions.
--python_version
flag will now bealways set to the default python toolchain version value.
pip.parse.extra_pip_args
all theway to
whl_library
. What is more we will pass theextra_pip_args
towhl_library
forsdist
distributions when using{attr}
pip.parse.experimental_index_url
. See#2239.
RECORD
fileRECORD
file entry elements are now quoted if necessary when awheel is created
case where a requirement has many
--hash=sha256:...
flagscompile_pip_requirements
passesenv
to theX.update
target (andnot only to the
X_test
target, a bug introduced in#1067).
python_register_toolchains(register_toolchains=True)
is respected(#1675).
pyc_collection
attribute now correctlyenables (or disables) using pyc files from targets transitively
pip.override
'sfile
(#2294).
rules_shell
dev dependency and moved ash_test
targetoutside of the
//:BUILD.bazel
file.Fixes #2299.
{#v0-37-0-added}
Added
compress = (True|False)
to allow disablingcompression to speed up development.
//python/config_settings:python_version_major_minor
hasbeen exposed for users to be able to match on the
X.Y
version of a Pythoninterpreter.
merge_py_infos()
so user rules can merge and propagatePyInfo
without losing information.3.8 -> 3.8.20
3.9 -> 3.9.20
3.10 -> 3.10.15
3.11 -> 3.11.10
3.12 -> 3.12.7
coverage.py
to 7.6.1.download_only
flag to disable usage ofsdists
when {bzl:attr}
pip.parse.experimental_index_url
is set.PyInfo.transitive_implicit_pyc_files
,{obj}
PyInfo.transitive_implicit_pyc_source_files
.{#v0-37-0-removed}
Removed
--precompile_add_to_runfiles
has been removed.--pyc_collection
has been removed. Thepyc_collection
attribute now bases its default on {obj}
--precompile
.precompile=if_generated_source
value has been removed.precompile_source_retention=omit_if_generated_source
value has been removed.{#v0-36-0}
v0.36.0
Compare Source
{#v0-36-0-changed}
Changed
--python_version
flag now also returns{obj}
config_common.FeatureFlagInfo
.patch_strip
attributethat 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
0
which better reflects the defaults used in publicbazel
APIs.py_runtime.interpreter_version_info
isn't specified,the {obj}
--python_version
flag will determine the value. This allowsspecifying the build-time Python version for the
{obj}
runtime_env_toolchains
.py_cc_toolchain.libs
and {obj}PyCcToolchainInfo.libs
isoptional. This is to support situations where only the Python headers are
available.
7.1
.{#v0-36-0-fixed}
Fixed
--no-index
and add--no-build-isolation
to thepip install
command when installing a wheel from a local file, which happenswhen
experimental_index_url
flag 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.Fatalf
in 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-Dist
when specifying requirements with markersin extra_requires in py_wheel rule.
bootstrap .py file when using {obj}
--bootstrap_impl=script
gen_python_config_settings
has been fixed to includethe flag_values from the platform definitions.
{#v0-36-0-added}
Added
{bzl:obj}
python.override
, {bzl:obj}python.single_version_override
and{bzl:obj}
python.single_version_platform_override
tag 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_toolchains
and related symbols.
python_repository.patch_strip
attribute forallowing values that are other than
1
, which has been hard-coded up untilnow. If you are relying on the undocumented
patches
support inTOOL_VERSIONS
for registering patched toolchains please consider settingthe
patch_strip
explicitly to1
if 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_interpreter
to treat the value asNone
.{#v0-36-0-removed}
Removed
http_archive
symbol frompython/repositories.bzl
.{#v0-35-0}
v0.35.0
Compare Source
{#v0-35-0-changed}
Changed
when the wheel is downloaded using
download_only
feature to aid debugging.It would work well in cases to reduce merge conflicts.
include dependency updates
3.8.19
,3.9.19
,3.10.14
,3.11.9
3.12 -> 3.12.4
PYTHONSAFEPATH
is inherited from the calling environment to allowdisabling it (Requires {obj}
--bootstrap_impl=script
)(#2060).
{#v0-35-0-fixed}
Fixed
compile_pip_requirements
now sets theUSERPROFILE
env variable onWindows to work around an issue where
setuptools
fails to locate the user'shome directory.
@rules_python//python/cc:current_py_cc_libs
in host platform builds on macOS, by editing the
LC_ID_DYLIB
field of the hermetic interpreter'slibpython3.x.dylib
usinginstall_name_tool
, setting it to its absolute path under Bazel'sexecroot.
--bootstrap_impl=script
(for non-zip builds).
(#2043)
--build_python_zip
is set tofalse
onWindows. See #1840.
--build_python_zip
+ {obj}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.