@@ -66,8 +66,8 @@ END_UNRELEASED_TEMPLATE
66
66
* (rules) On Windows, {obj}` --bootstrap_impl=system_python ` is forced. This
67
67
allows setting ` --bootstrap_impl=script ` in bazelrc for mixed-platform
68
68
environments.
69
- * (rules) {obj}` pip_compile ` now generates a ` .test ` target. The ` _test ` target is deprecated
70
- and will be removed in the next major release.
69
+ * (rules) {obj}` compile_pip_requirements ` now generates a ` .test ` target. The
70
+ ` _test ` target is deprecated and will be removed in the next major release.
71
71
([ #2794 ] ( https://github.com/bazel-contrib/rules_python/issues/2794 )
72
72
* (py_wheel) py_wheel always creates zip64-capable wheel zips
73
73
@@ -190,7 +190,7 @@ END_UNRELEASED_TEMPLATE
190
190
packages through SimpleAPI unless they are pulled through direct URL
191
191
references. Fixes [ #2023 ] ( https://github.com/bazel-contrib/rules_python/issues/2023 ) .
192
192
In case you see issues with ` rules_python ` being too eager to fetch the SimpleAPI
193
- metadata, you can use the newly added {attr}` pip.parse.experimental_skip_sources `
193
+ metadata, you can use the newly added {attr}` pip.parse.simpleapi_skip `
194
194
to skip metadata fetching for those packages.
195
195
* (uv) A {obj}` lock ` rule that is the replacement for the
196
196
{obj}` compile_pip_requirements ` . This may still have rough corners
@@ -251,7 +251,7 @@ END_UNRELEASED_TEMPLATE
251
251
252
252
{#v1-3-0-added}
253
253
### Added
254
- * (python) {attr }` python.defaults ` has been added to allow users to
254
+ * (python) {obj }` python.defaults ` has been added to allow users to
255
255
set the default python version in the root module by reading the
256
256
default version number from a file or an environment variable.
257
257
* {obj}` //python/bin:python ` : convenience target for directly running an
@@ -271,7 +271,7 @@ END_UNRELEASED_TEMPLATE
271
271
and py_library rules
272
272
([ #1647 ] ( https://github.com/bazel-contrib/rules_python/issues/1647 ) )
273
273
* (rules) Added env-var to allow additional interpreter args for stage1 bootstrap.
274
- See {obj }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS ` environment variable.
274
+ See {any }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS ` environment variable.
275
275
Only applicable for {obj}` --bootstrap_impl=script ` .
276
276
* (rules) Added {obj}` interpreter_args ` attribute to ` py_binary ` and ` py_test ` ,
277
277
which allows pass arguments to the interpreter before the regular args.
@@ -377,7 +377,7 @@ END_UNRELEASED_TEMPLATE
377
377
values. Fixes [ #2466 ] ( https://github.com/bazel-contrib/rules_python/issues/2466 ) .
378
378
* (py_proto_library) Fix import paths in Bazel 8.
379
379
* (whl_library) Now the changes to the dependencies are correctly tracked when
380
- PyPI packages used in {bzl : obj } ` whl_library ` during the ` repository_rule ` phase
380
+ PyPI packages used in ` whl_library ` during the repository rule phase
381
381
change. Fixes [ #2468 ] ( https://github.com/bazel-contrib/rules_python/issues/2468 ) .
382
382
+ (gazelle) Gazelle no longer ignores ` setup.py ` files by default. To restore
383
383
this behavior, apply the ` # gazelle:python_ignore_files setup.py ` directive.
@@ -396,7 +396,7 @@ END_UNRELEASED_TEMPLATE
396
396
* (pypi) Freethreaded packages are now fully supported in the
397
397
{obj}` experimental_index_url ` usage or the regular ` pip.parse ` usage.
398
398
To select the free-threaded interpreter in the repo phase, please use
399
- the documented [ env] ( / environment-variables.html ) variables.
399
+ the documented [ env] ( environment-variables ) variables.
400
400
Fixes [ #2386 ] ( https://github.com/bazel-contrib/rules_python/issues/2386 ) .
401
401
* (toolchains) Use the latest astrahl-sh toolchain release [ 20241206] for Python versions:
402
402
* 3.9.21
@@ -490,7 +490,7 @@ Other changes:
490
490
for the latest toolchain versions for each minor Python version. You can control
491
491
the toolchain selection by using the
492
492
{bzl: obj }` //python/config_settings:py_linux_libc ` build flag.
493
- * (providers) Added {obj}` py_runtime_info .site_init_template` and
493
+ * (providers) Added {obj}` PyRuntimeInfo .site_init_template` and
494
494
{obj}` PyRuntimeInfo.site_init_template ` for specifying the template to use to
495
495
initialize the interpreter via venv startup hooks.
496
496
* (runfiles) (Bazel 7.4+) Added support for spaces and newlines in runfiles paths
@@ -688,8 +688,8 @@ Other changes:
688
688
* (bzlmod) The default value for the {obj}` --python_version ` flag will now be
689
689
always set to the default python toolchain version value.
690
690
* (bzlmod) correctly wire the {attr}` pip.parse.extra_pip_args ` all the
691
- way to {obj} ` whl_library ` . What is more we will pass the ` extra_pip_args ` to
692
- {obj} ` whl_library ` for ` sdist ` distributions when using
691
+ way to ` whl_library ` . What is more we will pass the ` extra_pip_args ` to
692
+ ` whl_library ` for ` sdist ` distributions when using
693
693
{attr}` pip.parse.experimental_index_url ` . See
694
694
[ #2239 ] ( https://github.com/bazel-contrib/rules_python/issues/2239 ) .
695
695
* (whl_filegroup): Provide per default also the ` RECORD ` file
@@ -737,8 +737,8 @@ Other changes:
737
737
738
738
{#v0-37-0-removed}
739
739
### Removed
740
- * (precompiling) {obj} ` --precompile_add_to_runfiles ` has been removed.
741
- * (precompiling) {obj} ` --pyc_collection ` has been removed. The ` pyc_collection `
740
+ * (precompiling) ` --precompile_add_to_runfiles ` has been removed.
741
+ * (precompiling) ` --pyc_collection ` has been removed. The ` pyc_collection `
742
742
attribute now bases its default on {obj}` --precompile ` .
743
743
* (precompiling) The {obj}` precompile=if_generated_source ` value has been removed.
744
744
* (precompiling) The {obj}` precompile_source_retention=omit_if_generated_source ` value has been removed.
@@ -790,7 +790,7 @@ Other changes:
790
790
in extra_requires in py_wheel rule.
791
791
* (rules) Prevent pytest from trying run the generated stage2
792
792
bootstrap .py file when using {obj}` --bootstrap_impl=script `
793
- * (toolchain) The {bzl : obj } ` gen_python_config_settings ` has been fixed to include
793
+ * (toolchain) The ` gen_python_config_settings ` has been fixed to include
794
794
the flag_values from the platform definitions.
795
795
796
796
{#v0-36-0-added}
@@ -1205,9 +1205,9 @@ Other changes:
1205
1205
depend on legacy labels instead of the hub repo aliases and you use the
1206
1206
` experimental_requirement_cycles ` , now is a good time to migrate.
1207
1207
1208
- [ python_default_visibility ] : gazelle/README.md#directive-python_default_visibility
1208
+ [ python_default_visibility ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_default_visibility
1209
1209
[ test_file_pattern_issue ] : https://github.com/bazel-contrib/rules_python/issues/1816
1210
- [ test_file_pattern_docs ] : gazelle/README.md#directive-python_test_file_pattern
1210
+ [ test_file_pattern_docs ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_test_file_pattern
1211
1211
[ 20240224 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240224.
1212
1212
[ 20240415 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240415.
1213
1213
0 commit comments