Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 5ae84bb

Browse files
authored
Merge pull request #110 from openedx/salman/django-4.2-upgrade
Add django 4.2 support
2 parents 4a94650 + 927ff2e commit 5ae84bb

4 files changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ jobs:
1919
- csslint
2020
- eslint
2121
- quality
22-
- django22
23-
- django30
24-
- django31
2522
- django32
23+
- django42
2624
steps:
2725
- uses: actions/checkout@v2
2826
- name: setup python

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def is_requirement(line):
9595

9696
setup(
9797
name='xblock-sql-grader',
98-
version='0.3.1',
98+
version='0.4.0',
9999
description='SQL Grader XBlock', # TODO: write a better description.
100100
license='AGPLv3',
101101
long_description=README,
@@ -120,10 +120,8 @@ def is_requirement(line):
120120
classifiers=[
121121
'Development Status :: 5 - Production/Stable',
122122
'Framework :: Django',
123-
'Framework :: Django :: 2.2',
124-
'Framework :: Django :: 3.0',
125-
'Framework :: Django :: 3.1',
126123
'Framework :: Django :: 3.2',
124+
'Framework :: Django :: 4.2',
127125
'Intended Audience :: Developers',
128126
'License :: OSI Approved :: Apache Software License',
129127
'Natural Language :: English',

sql_grader/mixins/grading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# despite it also being a third-party package.
1111
from codejail.safe_exec import safe_exec
1212
from codejail.safe_exec import SafeExecException
13-
from django.utils.translation import ugettext_lazy as _
13+
from django.utils.translation import gettext_lazy as _
1414
from xblock.fields import Boolean
1515
from xblock.fields import Float
1616
from xblock.fields import Integer

tox.ini

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
envlist =
33
csslint
44
eslint
5-
py38-django{22,30,31,32}
6-
quality
5+
py38-django{32,42}quality
76

87
[testenv]
98
deps =
109
-rrequirements/test.txt
1110
-e git+https://github.com/openedx/codejail.git@3.0.0#egg=codejail
12-
django22: Django>=2.2,<2.3
13-
django30: Django>=3.0,<3.1
14-
django31: Django>=3.1,<3.2
1511
django32: Django>=3.2,<4.0
16-
12+
django42: Django>=4.2,<4.3
1713
commands =
1814
coverage run manage.py test
1915
coverage report

0 commit comments

Comments
 (0)