Skip to content

Commit e85728f

Browse files
authored
chore(toolchain): drop all but the latest 3.9 toolchain (#3377)
Summary: - drop the `3.9` versions one by one. - add the latest astral toolchain builds. - add a disclaimer to our changeleg about `3.9`. - update examples to use the latest `3.9` build (separate PR) will switch to a different python version. Work towards #2704
1 parent d08cf53 commit e85728f

File tree

6 files changed

+116
-253
lines changed

6 files changed

+116
-253
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ BEGIN_UNRELEASED_TEMPLATE
3030
3131
{#v0-0-0-removed}
3232
### Removed
33+
* (toolchain) Remove all of the python 3.9 toolchain versions except for the `3.9.25`.
34+
This version has reached EOL and will no longer receive any security fixes, please update to
35+
`3.10` or above.
3336
34-
* Nothing removed.
3537
{#v0-0-0-changed}
3638
### Changed
37-
* Nothing changed.
39+
* (toolchains) Use toolchains from the [20251031] release.
3840
3941
{#v0-0-0-fixed}
4042
### Fixed
@@ -43,8 +45,9 @@ BEGIN_UNRELEASED_TEMPLATE
4345
4446
{#v0-0-0-added}
4547
### Added
46-
* Nothing added.
48+
* (toolchains) `3.9.25` Python toolchain from [20251031] release.
4749
50+
[20251031]: https://github.com/astral-sh/python-build-standalone/releases/tag/20251031
4851
4952
END_UNRELEASED_TEMPLATE
5053
-->

examples/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ lock(
2626
"--universal",
2727
"--python-version=3.9",
2828
],
29-
python_version = "3.9.19",
29+
python_version = "3.9",
3030
)
3131

3232
lock(

examples/bzlmod/MODULE.bazel

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ python.override(
5555
# require versions not listed here.
5656
# available_python_versions = [
5757
# "3.10.9",
58-
# "3.9.18",
5958
# "3.9.19",
6059
# # The following is used by the `other_module` and we need to include it here
6160
# # as well.
@@ -65,7 +64,7 @@ python.override(
6564
# instead of rules_python's defaulting to the latest available version,
6665
# controls what full version is used when `3.x` is requested.
6766
minor_mapping = {
68-
"3.9": "3.9.19",
67+
"3.9": "3.9.25",
6968
},
7069
)
7170

examples/pip_parse/MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ local_path_override(
99
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
1010
python.toolchain(
1111
# We can specify the exact version.
12-
python_version = "3.9.13",
12+
python_version = "3.9.25",
1313
)
1414

1515
# You can use this repo mapping to ensure that your BUILD.bazel files don't need
1616
# to be updated when the python version changes to a different `3.9` version.
1717
use_repo(
1818
python,
19-
python_3_9 = "python_3_9_13",
19+
python_3_9 = "python_3_9_25",
2020
)
2121

2222
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
@@ -34,7 +34,7 @@ pip.parse(
3434
},
3535
hub_name = "pypi",
3636
# We need to use the same version here as in the `python.toolchain` call.
37-
python_version = "3.9.13",
37+
python_version = "3.9.25",
3838
requirements_lock = "//:requirements_lock.txt",
3939
requirements_windows = "//:requirements_windows.txt",
4040
)

examples/pip_parse/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ py_repositories()
1111

1212
python_register_toolchains(
1313
name = "python_3_9",
14-
python_version = "3.9.13",
14+
python_version = "3.9.25",
1515
)
1616

1717
load("@rules_python//python:pip.bzl", "pip_parse")

0 commit comments

Comments
 (0)