Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3bdb9b0

Browse files
Make it more obvious which Python version runs on a given Linux distribution (#15909)
Make it more obvious which Python version runs on a given Linux distribution so when we end up dropping support for a given Python version, we can more easily find the reference to the Python version and remove any references for the distribution. We don't want to be running tests or building packages on a distribution that no longer has a supported Python version. This way, we can avoid another situation like when we dropped support for Python 3.7 but forgot to drop the Debian Buster references everywhere (#15893)
1 parent 0371a35 commit 3bdb9b0

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

changelog.d/15909.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document which Python version runs on a given Linux distribution so we can more easily clean up later.

scripts-dev/build_debian_packages.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@
2222

2323
# These are expanded inside the dockerfile to be a fully qualified image name.
2424
# e.g. docker.io/library/debian:bullseye
25+
#
26+
# If an EOL is forced by a Python version and we're dropping support for it, make sure
27+
# to remove references to the distibution across Synapse (search for "bullseye" for
28+
# example)
2529
DISTS = (
26-
"debian:bullseye",
27-
"debian:bookworm",
28-
"debian:sid",
29-
"ubuntu:focal", # 20.04 LTS (our EOL forced by Py38 on 2024-10-14)
30-
"ubuntu:jammy", # 22.04 LTS (EOL 2027-04)
31-
"ubuntu:kinetic", # 22.10 (EOL 2023-07-20)
32-
"ubuntu:lunar", # 23.04 (EOL 2024-01)
30+
"debian:bullseye", # (EOL ~2024-07) (our EOL forced by Python 3.9 is 2025-10-05)
31+
"debian:bookworm", # (EOL not specified yet) (our EOL forced by Python 3.11 is 2027-10-24)
32+
"debian:sid", # (EOL not specified yet) (our EOL forced by Python 3.11 is 2027-10-24)
33+
"ubuntu:focal", # 20.04 LTS (EOL 2025-04) (our EOL forced by Python 3.8 is 2024-10-14)
34+
"ubuntu:jammy", # 22.04 LTS (EOL 2027-04) (our EOL forced by Python 3.10 is 2026-10-04)
35+
"ubuntu:kinetic", # 22.10 (EOL 2023-07-20) (our EOL forced by Python 3.10 is 2026-10-04)
36+
"ubuntu:lunar", # 23.04 (EOL 2024-01) (our EOL forced by Python 3.11 is 2027-10-24)
3337
)
3438

3539
DESC = """\

0 commit comments

Comments
 (0)