Skip to content

Commit dd39b52

Browse files
authored
fix: add support for django 5.2 (#834)
1 parent 618c452 commit dd39b52

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version: ['3.11', '3.12']
18-
toxenv: [quality, django42]
18+
toxenv: [quality, django42, django52]
1919

2020
steps:
2121
- uses: actions/checkout@v4

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Change history for XBlock
55
Unreleased
66
----------
77

8+
5.2.0 - 2025-04-08
9+
------------------
10+
11+
* Added support for Django 5.2
12+
813
5.1.2 - 2025-02-07
914
------------------
1015

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def get_version(*file_paths):
7070
'Development Status :: 5 - Production/Stable',
7171
'Framework :: Django',
7272
'Framework :: Django :: 4.2',
73+
'Framework :: Django :: 5.2',
7374
'Intended Audience :: Developers',
7475
'License :: OSI Approved :: Apache Software License',
7576
'Natural Language :: English',

tox.ini

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{311,312}-django{42}, quality, docs
2+
envlist = py{311,312}-django{42,52}, quality, docs
33

44
[pytest]
55
DJANGO_SETTINGS_MODULE = xblock.test.settings
@@ -10,6 +10,7 @@ norecursedirs = .* docs requirements
1010
[testenv]
1111
deps =
1212
django42: Django>=4.2,<5.0
13+
django52: Django>=5.2,<6.0
1314
-r requirements/test.txt
1415
changedir = {envsitepackagesdir}
1516
commands =
@@ -33,6 +34,7 @@ commands =
3334
[testenv:quality]
3435
deps =
3536
django42: Django>=4.2,<5.0
37+
django52: Django>=5.2,<6.0
3638
-r requirements/test.txt
3739
changedir = {toxinidir}
3840
commands =

xblock/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
XBlock Courseware Components
33
"""
44

5-
__version__ = '5.1.2'
5+
__version__ = '5.2.0'

xblock/test/settings.py

-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
# to load the internationalization machinery.
4141
USE_I18N = True
4242

43-
# If you set this to False, Django will not format dates, numbers and
44-
# calendars according to the current locale.
45-
USE_L10N = True
46-
4743
# If you set this to False, Django will not use timezone-aware datetimes.
4844
USE_TZ = True
4945

0 commit comments

Comments
 (0)