Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,23 @@ END_UNRELEASED_TEMPLATE
to pass the `TOOL_VERSIONS` that include 3.8 toolchains or use the `bzlmod` APIs to add
them back. This means any hub `pip.parse` calls that target `3.8` will be ignored from
now on. ([#2704](https://github.com/bazel-contrib/rules_python/issues/2704))
{object}`python.single_version_override`, like:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example snippet uses a non-existent Python version (3.8.20) and a future release date for python-build-standalone. This could be confusing for users who try to copy-paste it. To avoid confusion, it would be helpful to add a note clarifying that the values are placeholders and need to be replaced with actual ones from a python-build-standalone release.

Suggested change
> **Note**: The following snippet uses placeholder values. Please use a real Python 3.8.x version, URL, and hashes from [python-build-standalone releases](https://github.com/astral-sh/python-build-standalone/releases).

```starlark
python = use_extension("@rules_python//python/extensions:python.bzl", "python")

python.single_version_override(
python_version = "3.8.20",
sha256 = {
"aarch64-apple-darwin": "2ddfc04bdb3e240f30fb782fa1deec6323799d0e857e0b63fa299218658fd3d4",
"aarch64-unknown-linux-gnu": "9d8798f9e79e0fc0f36fcb95bfa28a1023407d51a8ea5944b4da711f1f75f1ed",
"x86_64-apple-darwin": "68d060cd373255d2ca5b8b3441363d5aa7cc45b0c11bbccf52b1717c2b5aa8bb",
"x86_64-pc-windows-msvc": "41b6709fec9c56419b7de1940d1f87fa62045aff81734480672dcb807eedc47e",
"x86_64-unknown-linux-gnu": "285e141c36f88b2e9357654c5f77d1f8fb29cc25132698fe35bb30d787f38e87",
},
urls = ["https://github.com/astral-sh/python-build-standalone/releases/download/20241002/cpython-{python_version}+20241002-{platform}-{build}.tar.gz"],
)
```
* (toolchain) Remove all of the python 3.9 toolchain versions except for the `3.9.25`.
This version has reached EOL and will no longer receive any security fixes, please update to
`3.10` or above. ([#2704](https://github.com/bazel-contrib/rules_python/issues/2704))
Expand Down