Skip planned+prerelease versions in active Python releases table#2961
Skip planned+prerelease versions in active Python releases table#2961JacobCoffee merged 3 commits intopython:mainfrom
Conversation
There was a problem hiding this comment.
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
plannedrelease cycles from therender_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.
|
@JacobCoffee Please could you check this? I saw people in the Python Discord getting confused by 3.16 in the list. |
There was a problem hiding this comment.
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.
|
@hugovk feel free to ping earlier, didnt see this. my gh notifications lately are bonkers 😵💫 |
|
Will do! Although I forgot about it until I saw the Python Discord confusion :) |
Description
Before:
https://www.python.org/downloads/
After:
3.16 will be status=prerelease when its development starts in
mainin May, and before the first 3.16 alpha in October. Skip that too.