Skip to content

Skip planned+prerelease versions in active Python releases table#2961

Open
hugovk wants to merge 2 commits intopython:mainfrom
hugovk:downloads-skip-3.16
Open

Skip planned+prerelease versions in active Python releases table#2961
hugovk wants to merge 2 commits intopython:mainfrom
hugovk:downloads-skip-3.16

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Mar 12, 2026

Description

  • Skip status=planned releases (currently 3.16) in the active releases table. This is an end-user facing page, so a single 3.15 pre-release is enough here. And there's nothing to download yet for 3.16.
  • https://devguide.python.org/versions/ aimed at developers does include 3.16.
  • Let's not worry that the SVG chart includes 3.16, it's served from the devguide.

Before:

image

https://www.python.org/downloads/

After:

image

3.16 will be status=prerelease when its development starts in main in May, and before the first 3.16 alpha in October. Skip that too.

@hugovk hugovk requested a review from JacobCoffee as a code owner March 12, 2026 12:36
Copilot AI review requested due to automatic review settings March 12, 2026 12:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the “Active Python releases” table rendering so that release cycles marked as status=planned are omitted from the end-user downloads page, avoiding listing versions that have nothing downloadable yet.

Changes:

  • Exclude planned release cycles from the render_active_releases() inclusion tag output.
  • Extend template-tag tests to include a mocked planned release cycle (3.16) and assert it is not displayed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/downloads/templatetags/download_tags.py Skips status == "planned" entries when building the active releases list.
apps/downloads/tests/test_template_tags.py Adds mocked 3.16 planned cycle and a test ensuring planned releases are excluded.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@hugovk hugovk changed the title Skip planned versions in active Python releases table Skip planned+prerelease versions in active Python releases table Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants