@@ -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
@@ -102,6 +103,8 @@ END_UNRELEASED_TEMPLATE
102103* (pypi) Starlark-based evaluation of environment markers (requirements.txt conditionals)
103104 available (not enabled by default) for improved multi-platform build support.
104105 Set the ` RULES_PYTHON_ENABLE_PIPSTAR=1 ` environment variable to enable it.
106+ * (utils) Add a way to run a REPL for any ` rules_python ` target that returns
107+ a ` PyInfo ` provider.
105108* (toolchains) Arbitrary python-build-standalone runtimes can be registered
106109 and activated with custom flags. See the [ Registering custom runtimes]
107110 docs and {obj}` single_version_platform_override() ` API docs for more
@@ -192,7 +195,7 @@ END_UNRELEASED_TEMPLATE
192195 packages through SimpleAPI unless they are pulled through direct URL
193196 references. Fixes [ #2023 ] ( https://github.com/bazel-contrib/rules_python/issues/2023 ) .
194197 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 `
198+ metadata, you can use the newly added {attr}` pip.parse.simpleapi_skip `
196199 to skip metadata fetching for those packages.
197200* (uv) A {obj}` lock ` rule that is the replacement for the
198201 {obj}` compile_pip_requirements ` . This may still have rough corners
@@ -253,7 +256,7 @@ END_UNRELEASED_TEMPLATE
253256
254257{#v1-3-0-added}
255258### Added
256- * (python) {attr }` python.defaults ` has been added to allow users to
259+ * (python) {obj }` python.defaults ` has been added to allow users to
257260 set the default python version in the root module by reading the
258261 default version number from a file or an environment variable.
259262* {obj}` //python/bin:python ` : convenience target for directly running an
@@ -273,7 +276,7 @@ END_UNRELEASED_TEMPLATE
273276 and py_library rules
274277 ([ #1647 ] ( https://github.com/bazel-contrib/rules_python/issues/1647 ) )
275278* (rules) Added env-var to allow additional interpreter args for stage1 bootstrap.
276- See {obj }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS ` environment variable.
279+ See {any }` RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS ` environment variable.
277280 Only applicable for {obj}` --bootstrap_impl=script ` .
278281* (rules) Added {obj}` interpreter_args ` attribute to ` py_binary ` and ` py_test ` ,
279282 which allows pass arguments to the interpreter before the regular args.
@@ -379,7 +382,7 @@ END_UNRELEASED_TEMPLATE
379382 values. Fixes [ #2466 ] ( https://github.com/bazel-contrib/rules_python/issues/2466 ) .
380383* (py_proto_library) Fix import paths in Bazel 8.
381384* (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
385+ PyPI packages used in ` whl_library ` during the repository rule phase
383386 change. Fixes [ #2468 ] ( https://github.com/bazel-contrib/rules_python/issues/2468 ) .
384387+ (gazelle) Gazelle no longer ignores ` setup.py ` files by default. To restore
385388 this behavior, apply the ` # gazelle:python_ignore_files setup.py ` directive.
@@ -398,7 +401,7 @@ END_UNRELEASED_TEMPLATE
398401* (pypi) Freethreaded packages are now fully supported in the
399402 {obj}` experimental_index_url ` usage or the regular ` pip.parse ` usage.
400403 To select the free-threaded interpreter in the repo phase, please use
401- the documented [ env] ( / environment-variables.html ) variables.
404+ the documented [ env] ( environment-variables ) variables.
402405 Fixes [ #2386 ] ( https://github.com/bazel-contrib/rules_python/issues/2386 ) .
403406* (toolchains) Use the latest astrahl-sh toolchain release [ 20241206] for Python versions:
404407 * 3.9.21
@@ -492,7 +495,7 @@ Other changes:
492495 for the latest toolchain versions for each minor Python version. You can control
493496 the toolchain selection by using the
494497 {bzl: obj }` //python/config_settings:py_linux_libc ` build flag.
495- * (providers) Added {obj}` py_runtime_info .site_init_template` and
498+ * (providers) Added {obj}` PyRuntimeInfo .site_init_template` and
496499 {obj}` PyRuntimeInfo.site_init_template ` for specifying the template to use to
497500 initialize the interpreter via venv startup hooks.
498501* (runfiles) (Bazel 7.4+) Added support for spaces and newlines in runfiles paths
@@ -690,8 +693,8 @@ Other changes:
690693* (bzlmod) The default value for the {obj}` --python_version ` flag will now be
691694 always set to the default python toolchain version value.
692695* (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
696+ way to ` whl_library ` . What is more we will pass the ` extra_pip_args ` to
697+ ` whl_library ` for ` sdist ` distributions when using
695698 {attr}` pip.parse.experimental_index_url ` . See
696699 [ #2239 ] ( https://github.com/bazel-contrib/rules_python/issues/2239 ) .
697700* (whl_filegroup): Provide per default also the ` RECORD ` file
@@ -739,8 +742,8 @@ Other changes:
739742
740743{#v0-37-0-removed}
741744### Removed
742- * (precompiling) {obj} ` --precompile_add_to_runfiles ` has been removed.
743- * (precompiling) {obj} ` --pyc_collection ` has been removed. The ` pyc_collection `
745+ * (precompiling) ` --precompile_add_to_runfiles ` has been removed.
746+ * (precompiling) ` --pyc_collection ` has been removed. The ` pyc_collection `
744747 attribute now bases its default on {obj}` --precompile ` .
745748* (precompiling) The {obj}` precompile=if_generated_source ` value has been removed.
746749* (precompiling) The {obj}` precompile_source_retention=omit_if_generated_source ` value has been removed.
@@ -792,7 +795,7 @@ Other changes:
792795 in extra_requires in py_wheel rule.
793796* (rules) Prevent pytest from trying run the generated stage2
794797 bootstrap .py file when using {obj}` --bootstrap_impl=script `
795- * (toolchain) The {bzl : obj } ` gen_python_config_settings ` has been fixed to include
798+ * (toolchain) The ` gen_python_config_settings ` has been fixed to include
796799 the flag_values from the platform definitions.
797800
798801{#v0-36-0-added}
@@ -1207,9 +1210,9 @@ Other changes:
12071210 depend on legacy labels instead of the hub repo aliases and you use the
12081211 ` experimental_requirement_cycles ` , now is a good time to migrate.
12091212
1210- [ python_default_visibility ] : gazelle/README.md#directive-python_default_visibility
1213+ [ python_default_visibility ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_default_visibility
12111214[ 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
1215+ [ test_file_pattern_docs ] : https://github.com/bazel-contrib/rules_python/tree/main/ gazelle/README.md#directive-python_test_file_pattern
12131216[ 20240224 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240224.
12141217[ 20240415 ] : https://github.com/indygreg/python-build-standalone/releases/tag/20240415.
12151218
0 commit comments