Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Nov 28, 2025

Description

We look up the release status and EOL date from https://peps.python.org/api/python-releases.json and cache it.

That API only has data back to 1.6, and we only have releases back to 2.0, so we're covered.

I used the existing red .user-feedback.level-error CSS, and adjust the "Warning:" and link colours to meet the WCAG AA guidelines for contrast ratio.

I also switched the superseded-by note added in #2827 to use the yellow .user-feedback.level-notice and fixed the contrast for "Note:".

Both banners:

image

Only the EOL banner:

image

Only the superseded by banner:

image

And this is how the contrast looked before (3.30, 3.45 and 2.02 respectively, now 5.53, 5.10, and 6.06):

image

@hugovk hugovk force-pushed the eol-warning-banner branch from 410bb8c to b8c3d3f Compare November 28, 2025 15:28
@hugovk hugovk added app/downloads Relates to the downloads app enhancement This is an improvement to existing code or configuration labels Nov 28, 2025
@JacobCoffee JacobCoffee merged commit e1b69b9 into python:main Dec 15, 2025
3 checks passed
@hugovk hugovk deleted the eol-warning-banner branch December 15, 2025 20:19
@JacobCoffee
Copy link
Member

image making its way through the cache, https://www.python.org/downloads/release/python-390/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app/downloads Relates to the downloads app enhancement This is an improvement to existing code or configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants