From 7901494bfb021846ba876726e7f866b7ebbc58dd Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Sun, 21 Sep 2025 22:19:45 +0900 Subject: [PATCH 1/4] docs: move 1.6.2 related changelog Fixes #3273 --- CHANGELOG.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 382096f826..7e5598afcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -79,13 +79,6 @@ END_UNRELEASED_TEMPLATE length errors due to too long environment variables. * (bootstrap) {obj}`--bootstrap_impl=script` now supports the `-S` interpreter setting. -* (pypi) We now use the Minimal Version Selection (MVS) algorithm to select - the right wheel when there are multiple wheels for the target platform - (e.g. `musllinux_1_1_x86_64` and `musllinux_1_2_x86_64`). If the user - wants to set the minimum version for the selection algorithm, use the - {attr}`pip.defaults.whl_platform_tags` attribute to configure that. If - `musllinux_*_x86_64` is specified, we will chose the lowest available - wheel version. Fixes [#3250](https://github.com/bazel-contrib/rules_python/issues/3250). * (venvs) {obj}`--vens_site_packages=yes` no longer errors when packages with overlapping files or directories are used together. ([#3204](https://github.com/bazel-contrib/rules_python/issues/3204)). @@ -104,6 +97,21 @@ END_UNRELEASED_TEMPLATE {ref}`common-deps-with-multiple-pypi-versions` guide on using common dependencies with multiple PyPI versions` for an example. +{#v1-6-2} +## [1.6.2] - 2025-09-21 + +[1.6.2]: https://github.com/bazel-contrib/rules_python/releases/tag/1.6.2 + +{#v1-6-2-fixed} +### Fixed + +* (pypi) We now use the Minimal Version Selection (MVS) algorithm to select + the right wheel when there are multiple wheels for the target platform + (e.g. `musllinux_1_1_x86_64` and `musllinux_1_2_x86_64`). If the user + wants to set the minimum version for the selection algorithm, use the + {attr}`pip.defaults.whl_platform_tags` attribute to configure that. If + `musllinux_*_x86_64` is specified, we will chose the lowest available + wheel version. Fixes [#3250](https://github.com/bazel-contrib/rules_python/issues/3250). {#v1-6-0} ## [1.6.0] - 2025-08-23 From c4abdbf18b51021db2ddf188ee79eb96b7a1838a Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Sun, 21 Sep 2025 22:21:40 +0900 Subject: [PATCH 2/4] update the version --- python/private/pypi/extension.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/private/pypi/extension.bzl b/python/private/pypi/extension.bzl index c14912c2c9..f2f121fd9f 100644 --- a/python/private/pypi/extension.bzl +++ b/python/private/pypi/extension.bzl @@ -518,7 +518,7 @@ Common patterns: :::{seealso} See official [docs](https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#platform-tag) for more information. ::: -:::{versionchanged} VERSION_NEXT_FEATURE +:::{versionchanged} 1.6.2 The matching of versioned platforms have been switched to MVS (Minimal Version Selection) algorithm for easier evaluation logic and fewer surprises. The legacy platform tags are supported from this version without extra handling from the user. From 7afced95b8aaf7ba9c913cb30648005721655c43 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Sun, 21 Sep 2025 22:22:53 +0900 Subject: [PATCH 3/4] bump to 1.6.3 --- CHANGELOG.md | 8 ++++---- python/private/pypi/extension.bzl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e5598afcf..0bcc1d8974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,12 +97,12 @@ END_UNRELEASED_TEMPLATE {ref}`common-deps-with-multiple-pypi-versions` guide on using common dependencies with multiple PyPI versions` for an example. -{#v1-6-2} -## [1.6.2] - 2025-09-21 +{#v1-6-3} +## [1.6.3] - 2025-09-21 -[1.6.2]: https://github.com/bazel-contrib/rules_python/releases/tag/1.6.2 +[1.6.3]: https://github.com/bazel-contrib/rules_python/releases/tag/1.6.3 -{#v1-6-2-fixed} +{#v1-6-3-fixed} ### Fixed * (pypi) We now use the Minimal Version Selection (MVS) algorithm to select diff --git a/python/private/pypi/extension.bzl b/python/private/pypi/extension.bzl index f2f121fd9f..be1a8e4d03 100644 --- a/python/private/pypi/extension.bzl +++ b/python/private/pypi/extension.bzl @@ -518,7 +518,7 @@ Common patterns: :::{seealso} See official [docs](https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#platform-tag) for more information. ::: -:::{versionchanged} 1.6.2 +:::{versionchanged} 1.6.3 The matching of versioned platforms have been switched to MVS (Minimal Version Selection) algorithm for easier evaluation logic and fewer surprises. The legacy platform tags are supported from this version without extra handling from the user. From 3e47866315be33285153778045d46db73b916e33 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Sun, 21 Sep 2025 23:19:30 +0900 Subject: [PATCH 4/4] Update CHANGELOG.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bcc1d8974..7db095e9fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -110,7 +110,7 @@ END_UNRELEASED_TEMPLATE (e.g. `musllinux_1_1_x86_64` and `musllinux_1_2_x86_64`). If the user wants to set the minimum version for the selection algorithm, use the {attr}`pip.defaults.whl_platform_tags` attribute to configure that. If - `musllinux_*_x86_64` is specified, we will chose the lowest available + `musllinux_*_x86_64` is specified, we will choose the lowest available wheel version. Fixes [#3250](https://github.com/bazel-contrib/rules_python/issues/3250). {#v1-6-0}