Skip to content

feat: Upgrade dependencies and Python version to 3.12 for learner-pat… - #26

Merged
alenkadev merged 2 commits into
edx:masterfrom
alenkadev:alenka/LP-1282-python-3.12-upgrade
Oct 12, 2026
Merged

alenkadev merged 2 commits into
edx:masterfrom
alenkadev:alenka/LP-1282-python-3.12-upgrade

Conversation

@alenkadev

@alenkadev alenkadev commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Upgrades learner-pathway-progress to Python 3.12 and Django 5.2 LTS

Breaking change: drops support for Python 3.8 and Django 3.2/4.0. Version bumped to 2.0.0.

jira_link: LP-1282

  • Regenerated requirements for Python 3.12; CI and tox now run py312-django52
  • Django 5 fixes: index_together → indexes; added migration 0006 (django-simple-history)
  • Updated GitHub Actions, pylintrc (edx-lint 6.2.0), .readthedocs.yaml, and the tox docs env

Testing: tox on Python 3.12 passes: 24 tests, quality, docs and pii_check.

Comment thread docs/conf.py Resolved
Comment thread learner_pathway_progress/__init__.py Resolved

@abhalsod-sonata abhalsod-sonata left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The Django 5 fixes (index_together to indexes), migration 0006, the workflow bumps and the regenerated pylintrc look good, and 2.0.0 is the right version bump. One thing to fix before merge, plus a few small items.

Must fix: docs/conf.py breaks the Read the Docs build. The new django_setup() call falls back to test_utils.test_settings, which doesn't exist. Details and a checked fix are in the inline suggestion.

Optional (inline): drop the dead default_app_config line, and reuse edx-platform's index names in the mock grades model.

Small things

  • Description: the Jira link text says LP-1287 but points to LP-1282.
  • CHANGELOG.rst and description: 2.0.0 now requires Python 3.12, so it drops 3.9-3.11 as well, not only 3.8. Suggest saying "Requires Python 3.12+" so it's clear to whoever bumps the LMS pin.
  • README.rst still says mkvirtualenv -p python3.8; it should be python3.12.
  • setup.py still has the Framework :: Django :: 2.2 classifier; Framework :: Django :: 5.2 matches what CI tests.

Rollout

  • edx-internal pins learner-pathway-progress<1.3.5 for the LMS. 2.0.0 requires Python 3.12 and edxapp (edx-platform release-ulmo) still runs 3.11, so that pin can only be bumped after edxapp moves to 3.12.
  • When the pin is bumped, migration 0006 adds an index on history_date in the LMS historical table, so check that table's size first.

@alenkadev
alenkadev merged commit 2d4e51e into edx:master Oct 12, 2026
4 checks passed
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