Skip to content

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

Merged
JacobCoffee merged 3 commits intopython:mainfrom
hugovk:downloads-skip-3.16
Mar 31, 2026
Merged

Skip planned+prerelease versions in active Python releases table#2961
JacobCoffee merged 3 commits intopython:mainfrom
hugovk:downloads-skip-3.16

Conversation

@hugovk
Copy link
Copy Markdown
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
Copy Markdown

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
@hugovk
Copy link
Copy Markdown
Member Author

hugovk commented Mar 31, 2026

@JacobCoffee Please could you check this? I saw people in the Python Discord getting confused by 3.16 in the list.

Copilot AI review requested due to automatic review settings March 31, 2026 13:06
@JacobCoffee JacobCoffee enabled auto-merge (squash) March 31, 2026 13:07
Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


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

@JacobCoffee JacobCoffee disabled auto-merge March 31, 2026 15:34
@JacobCoffee JacobCoffee merged commit 576f12f into python:main Mar 31, 2026
9 checks passed
@JacobCoffee
Copy link
Copy Markdown
Member

@hugovk feel free to ping earlier, didnt see this. my gh notifications lately are bonkers 😵‍💫

@hugovk hugovk deleted the downloads-skip-3.16 branch March 31, 2026 15:57
@hugovk
Copy link
Copy Markdown
Member Author

hugovk commented Mar 31, 2026

Will do! Although I forgot about it until I saw the Python Discord confusion :)

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.

3 participants