Skip to content

Commit 37572ef

Browse files
adamchainzmjumbewu
authored andcommitted
Update tested versions
1 parent a0cfc69 commit 37572ef

File tree

5 files changed

+27
-52
lines changed

5 files changed

+27
-52
lines changed

.github/workflows/test.yml

+12-40
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,24 @@ jobs:
1111
name: Python ${{ matrix.env.python }} | ${{ matrix.env.TOXENV }}
1212
runs-on: ubuntu-22.04
1313
strategy:
14-
fail-fast: false
1514
matrix:
16-
env:
17-
- python: 3.8
18-
TOXENV: py38-django32
19-
20-
- python: 3.9
21-
TOXENV: py39-django32
22-
- python: 3.9
23-
TOXENV: py39-django42
24-
25-
- python: '3.10'
26-
TOXENV: py310-django32
27-
- python: '3.10'
28-
TOXENV: py310-django42
29-
- python: '3.10'
30-
TOXENV: py310-django50
31-
- python: '3.10'
32-
TOXENV: py310-django51
33-
34-
- python: '3.11'
35-
TOXENV: py311-django42
36-
- python: '3.11'
37-
TOXENV: py311-django50
38-
- python: '3.11'
39-
TOXENV: py311-django51
40-
41-
- python: '3.12'
42-
TOXENV: py312-django42
43-
- python: '3.12'
44-
TOXENV: py312-django50
45-
- python: '3.12'
46-
TOXENV: py312-django51
47-
48-
- python: '3.13'
49-
TOXENV: py313-django51
15+
python-version:
16+
- 3.9
17+
- '3.10'
18+
- '3.11'
19+
- '3.12'
20+
- '3.13'
5021

5122
steps:
5223
- uses: actions/checkout@v4
24+
5325
- name: setup python
5426
uses: actions/setup-python@v5
5527
with:
56-
python-version: ${{ matrix.env.python }}
28+
python-version: ${{ matrix.python-version }}
29+
5730
- name: Install tox
5831
run: pip install tox
59-
- name: Run Tests
60-
env:
61-
TOXENV: django${{ matrix.env.TOXENV }}
62-
run: tox -e ${{ matrix.env.TOXENV }}
32+
33+
- name: Run tox targets for ${{ matrix.python-version }}
34+
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)

README.rst

+8
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ To run the tests against the current environment:
132132
Changelog
133133
=========
134134

135+
Pending
136+
-------
137+
138+
- Add compatibility with Python 3.12 and 3.13.
139+
- Remove compatibility with Python 3.8.
140+
- Add compatibility with Django 5.1 and 5.2.
141+
- Remove compatibility with Django 3.2, 4.0, and 4.1.
142+
135143
3.0.2
136144
-----
137145

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def get_package_data(package):
8686
"Programming Language :: Python :: 3.10",
8787
"Programming Language :: Python :: 3.11",
8888
"Programming Language :: Python :: 3.12",
89+
"Programming Language :: Python :: 3.13",
8990
"Framework :: Django",
9091
],
9192
)

testsettings.py

-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@
1313
)
1414

1515
SECRET_KEY = 'testsecretkey'
16-
17-
MIDDLEWARE_CLASSES = (
18-
'django.middleware.common.CommonMiddleware',
19-
'django.middleware.csrf.CsrfViewMiddleware'
20-
)

tox.ini

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[tox]
22
envlist =
3-
py38-django{32}
4-
py39-django{32,42}
5-
py310-django{32,42,50,51}
6-
py311-django{42,50,51}
7-
py312-django{42,50,51}
8-
py313-django{51}
3+
py39-django{42}
4+
py310-django{42,50,51,52}
5+
py311-django{42,50,51,52}
6+
py312-django{42,50,51,52}
7+
py313-django{51,52}
98

109
[testenv]
1110
set_env =
@@ -17,7 +16,7 @@ commands =
1716
-m django test
1817
deps =
1918
djangorestframework<4
20-
django32: Django>=3.2,<3.3
2119
django42: Django>=4.2,<4.3
2220
django50: Django>=5.0,<5.1
2321
django51: Django>=5.1,<5.2
22+
django52: Django>=5.2a1,<6.0

0 commit comments

Comments
 (0)