Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, pii_check, django32, django40]
os: [ubuntu-latest]
python-version: ['3.12']
toxenv: [quality, pii_check, django52]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -36,7 +36,7 @@ jobs:
run: tox

# - name: Run coverage
# if: matrix.python-version == '3.8' && matrix.toxenv == 'django32'
# if: matrix.python-version == '3.12' && matrix.toxenv == 'django52'
# uses: codecov/codecov-action@v3
# with:
# flags: unittests
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
jobs:

push:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Install pip
run: pip install -r requirements/pip.txt
Expand All @@ -24,7 +24,7 @@ jobs:
run: python setup.py sdist bdist_wheel

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

python:
version: 3.8
install:
- requirements: requirements/doc.txt
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ Change Log

Unreleased
~~~~~~~~~~

[2.0.0] - 2026-09-28
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Breaking change: Dropped support for Python 3.8 and Django 3.2/4.0.
* Added support for Python 3.12 and Django 5.2 (LTS).
* Regenerated pinned requirements files for the new Python/Django baseline.

[1.4.0]- 2024-11-06
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Deprecated edx-sphinx-theme and replaced it with sphinx-book-theme
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ One Time Setup
cd learner-pathway-progress

# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it
mkvirtualenv -p python3.8 learner-pathway-progress
mkvirtualenv -p python3.12 learner-pathway-progress


Every time you develop something in this repo
Expand Down
12 changes: 8 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ def get_version(*file_paths):
html_logo = "https://logos.openedx.org/open-edx-logo-color.png"
html_favicon = "https://logos.openedx.org/open-edx-favicon.ico"

# Same settings and mock apps as the tox docs env. Read the Docs doesn't run tox.
sys.path.insert(0, os.path.join(REPO_ROOT, 'mock_apps'))
if not os.environ.get('DJANGO_SETTINGS_MODULE'):
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_utils.test_settings'
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'

django_setup()
Comment thread
alenkadev marked this conversation as resolved.
Resolved


html_theme_options = {
Expand Down Expand Up @@ -144,7 +148,7 @@ def get_version(*file_paths):
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down Expand Up @@ -500,8 +504,8 @@ def get_version(*file_paths):

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('https://docs.python.org/3.8', None),
'django': ('https://docs.djangoproject.com/en/2.2/', 'https://docs.djangoproject.com/en/2.2/_objects/'),
'python': ('https://docs.python.org/3.12', None),
'django': ('https://docs.djangoproject.com/en/5.2/', 'https://docs.djangoproject.com/en/5.2/_objects/'),
'model_utils': ('https://django-model-utils.readthedocs.io/en/latest/', None),
}

Expand Down
4 changes: 1 addition & 3 deletions learner_pathway_progress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
A plugin to track learners progress in pathways..
"""

__version__ = '1.4.0'

default_app_config = 'learner_pathway_progress.apps.LearnerPathwayProgressConfig' # pylint: disable=invalid-name
__version__ = '2.0.0'
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 5.2.17 on 2026-09-28 09:46

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('learner_pathway_progress', '0005_auto_20221007_0758'),
]

operations = [
migrations.AlterModelOptions(
name='historicallearnerpathwayprogress',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical learner pathway progress', 'verbose_name_plural': 'historical learner pathway progresss'},
),
migrations.AlterField(
model_name='historicallearnerpathwayprogress',
name='history_date',
field=models.DateTimeField(db_index=True),
),
]
5 changes: 4 additions & 1 deletion mock_apps/lms/djangoapps/grades/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class Migration(migrations.Migration):
],
options={
'unique_together': {('course_id', 'user_id')},
'index_together': {('passed_timestamp', 'course_id'), ('modified', 'course_id')},
'indexes': [
models.Index(fields=['passed_timestamp', 'course_id'], name='passed_timestamp_course_id_idx'),
models.Index(fields=['modified', 'course_id'], name='modified_course_id_idx'),
],
},
),
]
6 changes: 3 additions & 3 deletions mock_apps/lms/djangoapps/grades/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class Meta:
unique_together = [
('course_id', 'user_id'),
]
index_together = [
('passed_timestamp', 'course_id'),
('modified', 'course_id')
indexes = [
models.Index(fields=['passed_timestamp', 'course_id'], name="passed_timestamp_course_id_idx"),
models.Index(fields=['modified', 'course_id'], name="modified_course_id_idx"),
]
Comment thread
alenkadev marked this conversation as resolved.
Resolved

user_id = models.IntegerField(blank=False, db_index=True)
Expand Down
Loading
Loading