@@ -66,8 +66,8 @@ END_UNRELEASED_TEMPLATE
6666* (rules) On Windows, {obj}` --bootstrap_impl=system_python ` is forced. This
6767 allows setting ` --bootstrap_impl=script ` in bazelrc for mixed-platform
6868 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.
7171 ([ #2794 ] ( https://github.com/bazel-contrib/rules_python/issues/2794 )
7272* (py_wheel) py_wheel always creates zip64-capable wheel zips
7373
@@ -91,6 +91,7 @@ END_UNRELEASED_TEMPLATE
9191 also retrieved from the URL as opposed to only the ` --hash ` parameter. Fixes
9292 [ #2363 ] ( https://github.com/bazel-contrib/rules_python/issues/2363 ) .
9393* (pypi) ` whl_library ` now infers file names from its ` urls ` attribute correctly.
94+ * (py_test, py_binary) Allow external files to be used for main
9495
9596{#v0-0-0-added}
9697### Added
@@ -192,7 +193,7 @@ END_UNRELEASED_TEMPLATE
192193 packages through SimpleAPI unless they are pulled through direct URL
193194 references. Fixes [ #2023 ] ( https://github.com/bazel-contrib/rules_python/issues/2023 ) .
194195 In case you see issues with ` rules_python ` being too eager to fetch the SimpleAPI
195- metadata, you can use the newly added {attr}` pip.parse.experimental_skip_sources `
196+ metadata, you can use the newly added {attr}` pip.parse.simpleapi_skip `
196197 to skip metadata fetching for those packages.
197198* (uv) A {obj}` lock ` rule that is the replacement for the
198199 {obj}` compile_pip_requirements ` . This may still have rough corners
@@ -253,7 +254,7 @@ END_UNRELEASED_TEMPLATE
253254
254255{#v1-3-0-added}
255256### Added
256- * (python) {attr }` python.defaults ` has been added to allow users to
257+ * (python) {obj }` python.defaults ` has been added to allow users to
257258 set the default python version in the root module by reading the
258259 default version number from a file or an environment variable.
259260* {obj}` //python/bin:python ` : convenience target for directly running an
@@ -273,7 +274,7 @@ END_UNRELEASED_TEMPLATE
273274 and py_library rules
274275 ([ #1647 ] ( https://github.com/bazel-contrib/rules_python/issues/1647 ) )
275276* (rules) Added env-var to allow additional interpreter args for stage1 bootstrap.
276- See {obj }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS ` environment variable.
277+ See {any }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS ` environment variable.
277278 Only applicable for {obj}` --bootstrap_impl=script ` .
278279* (rules) Added {obj}` interpreter_args ` attribute to ` py_binary ` and ` py_test ` ,
279280 which allows pass arguments to the interpreter before the regular args.
@@ -379,7 +380,7 @@ END_UNRELEASED_TEMPLATE
379380 values. Fixes [ #2466 ] ( https://github.com/bazel-contrib/rules_python/issues/2466 ) .
380381* (py_proto_library) Fix import paths in Bazel 8.
381382* (whl_library) Now the changes to the dependencies are correctly tracked when
382- PyPI packages used in {bzl : obj } ` whl_library ` during the ` repository_rule ` phase
383+ PyPI packages used in ` whl_library ` during the repository rule phase
383384 change. Fixes [ #2468 ] ( https://github.com/bazel-contrib/rules_python/issues/2468 ) .
384385+ (gazelle) Gazelle no longer ignores ` setup.py ` files by default. To restore
385386 this behavior, apply the ` # gazelle:python_ignore_files setup.py ` directive.
@@ -398,7 +399,7 @@ END_UNRELEASED_TEMPLATE
398399* (pypi) Freethreaded packages are now fully supported in the
399400 {obj}` experimental_index_url ` usage or the regular ` pip.parse ` usage.
400401 To select the free-threaded interpreter in the repo phase, please use
401- the documented [ env] ( / environment-variables.html ) variables.
402+ the documented [ env] ( environment-variables ) variables.
402403 Fixes [ #2386 ] ( https://github.com/bazel-contrib/rules_python/issues/2386 ) .
403404* (toolchains) Use the latest astrahl-sh toolchain release [ 20241206] for Python versions:
404405 * 3.9.21
@@ -492,7 +493,7 @@ Other changes:
492493 for the latest toolchain versions for each minor Python version. You can control
493494 the toolchain selection by using the
494495 {bzl: obj }` //python/config_settings:py_linux_libc ` build flag.
495- * (providers) Added {obj}` py_runtime_info .site_init_template` and
496+ * (providers) Added {obj}` PyRuntimeInfo .site_init_template` and
496497 {obj}` PyRuntimeInfo.site_init_template ` for specifying the template to use to
497498 initialize the interpreter via venv startup hooks.
498499* (runfiles) (Bazel 7.4+) Added support for spaces and newlines in runfiles paths
@@ -690,8 +691,8 @@ Other changes:
690691* (bzlmod) The default value for the {obj}` --python_version ` flag will now be
691692 always set to the default python toolchain version value.
692693* (bzlmod) correctly wire the {attr}` pip.parse.extra_pip_args ` all the
693- way to {obj} ` whl_library ` . What is more we will pass the ` extra_pip_args ` to
694- {obj} ` whl_library ` for ` sdist ` distributions when using
694+ way to ` whl_library ` . What is more we will pass the ` extra_pip_args ` to
695+ ` whl_library ` for ` sdist ` distributions when using
695696 {attr}` pip.parse.experimental_index_url ` . See
696697 [ #2239 ] ( https://github.com/bazel-contrib/rules_python/issues/2239 ) .
697698* (whl_filegroup): Provide per default also the ` RECORD ` file
@@ -739,8 +740,8 @@ Other changes:
739740
740741{#v0-37-0-removed}
741742### Removed
742- * (precompiling) {obj} ` --precompile_add_to_runfiles ` has been removed.
743- * (precompiling) {obj} ` --pyc_collection ` has been removed. The ` pyc_collection `
743+ * (precompiling) ` --precompile_add_to_runfiles ` has been removed.
744+ * (precompiling) ` --pyc_collection ` has been removed. The ` pyc_collection `
744745 attribute now bases its default on {obj}` --precompile ` .
745746* (precompiling) The {obj}` precompile=if_generated_source ` value has been removed.
746747* (precompiling) The {obj}` precompile_source_retention=omit_if_generated_source ` value has been removed.
@@ -792,7 +793,7 @@ Other changes:
792793 in extra_requires in py_wheel rule.
793794* (rules) Prevent pytest from trying run the generated stage2
794795 bootstrap .py file when using {obj}` --bootstrap_impl=script `
795- * (toolchain) The {bzl : obj } ` gen_python_config_settings ` has been fixed to include
796+ * (toolchain) The ` gen_python_config_settings ` has been fixed to include
796797 the flag_values from the platform definitions.
797798
798799{#v0-36-0-added}
@@ -1207,9 +1208,9 @@ Other changes:
12071208 depend on legacy labels instead of the hub repo aliases and you use the
12081209 ` experimental_requirement_cycles ` , now is a good time to migrate.
12091210
1210- [ python_default_visibility ] : gazelle/README.md#directive-python_default_visibility
1211+ [ python_default_visibility ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_default_visibility
12111212[ test_file_pattern_issue ] : https://github.com/bazel-contrib/rules_python/issues/1816
1212- [ test_file_pattern_docs ] : gazelle/README.md#directive-python_test_file_pattern
1213+ [ test_file_pattern_docs ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_test_file_pattern
12131214[ 20240224 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240224.
12141215[ 20240415 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240415.
12151216
0 commit comments