Skip to content

Commit b18524d

Browse files
committed
Update project test suite and metadata for Django 4.0 support
1 parent 65b7d97 commit b18524d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
poetry-version: '1.1.12'
1818
- run: pip install tox
19-
- run: tox -e lint,py310-dj32
19+
- run: tox -e lint,py310-dj40
2020
test_compatibility:
2121
needs: test
2222
runs-on: ubuntu-latest
@@ -29,10 +29,11 @@ jobs:
2929
- python: "3.7"
3030
toxenv: py37-dj22,py37-dj30,py37-dj31,py37-dj32
3131
- python: "3.8"
32-
toxenv: py38-dj22,py38-dj30,py38-dj31,py38-dj32
32+
toxenv: py38-dj22,py38-dj30,py38-dj31,py38-dj32,py38-dj40
3333
- python: "3.9"
34-
toxenv: py39-dj22,py39-dj30,py39-dj31,py39-dj32
34+
toxenv: py39-dj22,py39-dj30,py39-dj31,py39-dj32,py39-dj40
3535
- python: "3.10"
36+
# Skip testing Django 4.0, already tested in previous workflow job.
3637
toxenv: py310-dj32,py310-djmain
3738
steps:
3839
- uses: actions/checkout@v2

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers = [
2525
"Framework :: Django :: 3.0",
2626
"Framework :: Django :: 3.1",
2727
"Framework :: Django :: 3.2",
28+
"Framework :: Django :: 4.0",
2829
]
2930
packages = [
3031
{ include = "pattern_library" },
@@ -38,7 +39,7 @@ exclude = [
3839

3940
[tool.poetry.dependencies]
4041
python = "^3.7"
41-
Django = ">=2.2,<4.0"
42+
Django = ">=2.2,<4.1"
4243
PyYAML = ">=5.1,<7.0"
4344
Markdown = "^3.1"
4445

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310}-dj{22,30,31,32,main}, lint
2+
envlist = py{37,38,39,310}-dj{22,30,31,32,40,main}, lint
33
skipsdist = true
44

55
[testenv]
@@ -15,6 +15,7 @@ deps =
1515
dj30: Django>=3.0,<3.1
1616
dj31: Django>=3.1,<3.2
1717
dj32: Django>=3.2,<3.3
18+
dj40: Django>=4.0,<4.1
1819
djmain: https://github.com/django/django/archive/main.zip
1920

2021
[testenv:lint]

0 commit comments

Comments
 (0)