Repository navigation
feat: add Python 3.12 support and drop Python 3.8–3.11 - #1
Merged
Merged
Conversation
naincy128
force-pushed
the
naincy/python-3-12-support
branch
2 times, most recently
from
September 30, 2026 05:40
50a6197 to
5c72a35
Compare
naincy128
force-pushed
the
naincy/python-3-12-support
branch
from
September 30, 2026 07:31
d095abc to
365b76b
Compare
rahulkanneri-2u
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for Python 3.12 and drops support for Python 3.8–3.11.
The CI, tox configuration, and package classifiers have been updated to target Python 3.12 only. Known consumers, edx-analytics-dashboard and course-discovery, already use Python 3.12.
Changes
tox.ini,ci.yml: testpy312only (waspy38andpy312); bumpcheckout@v4,setup-python@v5andcodecov-action@v5; CI runs onubuntu-24.04becauseubuntu-20.04is retired.upgrade-python-requirements.yml: the weekly requirements bot compiles with Python 3.12.setup.py: Python 3.12 classifier only, andpython_requires='>=3.12'.requirements/*.txt: regenerated with Python 3.12, which brings in pylint 4 and pytest 9.course_summaries.py: silence pylint 4's new R0917 check. The method is public API, so it isn't refactored.Tests
Notes
fail_ci_if_erroris intentionallyfalse, and the step now passestoken: ${{ secrets.CODECOV_TOKEN }}.CODECOV_TOKENsecret yet, so uploads without a token are rate-limited (HTTP 429) and were failing CI even though tests passed.fail_ci_if_errorback totrue.masterhas no required status checks, so the renamed CI jobs don't block the merge.