Skip to content

Commit 1311a63

Browse files
awais786UsamaSadiq
andauthored
feat: Adding django 5.2 support in tox in github actions. (#513)
executed `django-upgrade` to make django5.2 changes. Co-authored-by: Usama Sadiq <[email protected]>
1 parent 95218cf commit 1311a63

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
python-version: ['3.12']
17-
toxenv: [quality, docs, django42-drflatest]
17+
toxenv: [quality, docs, django42-drflatest, django52-drflatest]
1818

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

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Change Log
1212
Unreleased
1313
----------
1414

15+
[10.6.0] - 2025-04-04
16+
---------------------
17+
* Added Support for ``django 5.2``.
18+
1519
[10.5.0] - 2024-10-21
1620
---------------------
1721
* Upgraded to use ``Python 3.12``
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
""" edx Django REST Framework extensions. """
22

3-
__version__ = '10.5.0' # pragma: no cover
3+
__version__ = '10.6.0' # pragma: no cover

edx_rest_framework_extensions/auth/jwt/tests/test_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
""" Tests for JWT authentication class. """
2+
from http.cookies import SimpleCookie
23
from logging import Logger
34
from unittest import mock
45

56
import ddt
67
from django.contrib.auth import get_user_model
7-
from django.http.cookie import SimpleCookie
88
from django.test import RequestFactory, TestCase, override_settings
99
from django.urls import re_path as url_pattern
1010
from django.urls import reverse

edx_rest_framework_extensions/auth/jwt/tests/test_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
22
Unit tests for jwt authentication middlewares.
33
"""
4+
from http.cookies import SimpleCookie
45
from itertools import product
56
from unittest.mock import Mock, patch
67

78
import ddt
8-
from django.http.cookie import SimpleCookie
99
from django.test import Client, RequestFactory, TestCase, override_settings
1010
from django.urls import re_path as url_pattern
1111
from django.utils.deprecation import MiddlewareMixin

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def get_version(*file_paths):
139139
'Programming Language :: Python :: 3.11',
140140
'Framework :: Django',
141141
'Framework :: Django :: 4.2',
142+
'Framework :: Django :: 5.2',
142143
],
143144
packages=find_packages(exclude=["tests"]),
144145
install_requires=load_requirements('requirements/base.in'),

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[tox]
2-
envlist = py{312}-django{42}-drf{latest}, quality, docs
2+
envlist = py{312}-django{42,52}-drf{latest}, quality, docs
33

44
[testenv]
55
setenv =
66
PYTHONPATH = {toxinidir}
77
deps =
88
-r{toxinidir}/requirements/test.txt
99
django42: Django>=4.2,<4.3
10+
django52: Django>=5.2,<5.3
1011
drflatest: djangorestframework
1112
commands =
1213
python -Wd -m pytest --cov {posargs}

0 commit comments

Comments
 (0)