Skip to content

chore: drop Python 3.11 support#253

Merged
angonz merged 4 commits intomasterfrom
feanil/drop_python_3.11
Mar 11, 2026
Merged

chore: drop Python 3.11 support#253
angonz merged 4 commits intomasterfrom
feanil/drop_python_3.11

Conversation

@feanil
Copy link
Contributor

@feanil feanil commented Mar 7, 2026

Summary

  • Drop Python 3.11 support: remove from CI test matrix, tox envlist, and package classifiers
  • Regenerate pinned requirements using Python 3.12
  • Bump version to 5.0.0 — dropping Python support is a breaking change, so this is a major version bump

Context

Python 3.11 is being dropped across the Open edX ecosystem as part of the move
to standardize on Python 3.12. See the tracking issue for the full list of repos:
openedx/public-engineering#499

Test plan

  • CI passes with Python 3.12 only

feanil and others added 2 commits March 7, 2026 18:26
Remove Python 3.11 from CI matrix, tox envlist, and setup.py classifiers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Regenerate all pinned requirements files using Python 3.12.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@feanil feanil marked this pull request as ready for review March 8, 2026 15:19
@feanil feanil requested a review from angonz March 9, 2026 11:54
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@feanil feanil force-pushed the feanil/drop_python_3.11 branch from 97e1fd0 to 3b2b06f Compare March 10, 2026 17:48
Copy link
Contributor

@angonz angonz left a comment

Choose a reason for hiding this comment

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

Do we still need to test django42?

tox.ini Outdated
@@ -1,5 +1,5 @@
[tox]
envlist = py{311,312}-django{42,52}-celery{50}-drf{latest}
envlist = py312-django{42,52}-celery{50}-drf{latest}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
envlist = py312-django{42,52}-celery{50}-drf{latest}
envlist = py312-django{52}-celery{50}-drf{latest}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I've added a commit to drop Django 4.2 across all the test files.

Remove Django 4.2 from tox envlist, CI matrix, and package classifiers.
Update coverage condition to gate on django52 toxenv.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@feanil feanil requested a review from angonz March 11, 2026 17:42
@angonz angonz merged commit f16bd59 into master Mar 11, 2026
8 checks passed
@angonz angonz deleted the feanil/drop_python_3.11 branch March 11, 2026 17:45
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