Skip to content

Commit d16bcc2

Browse files
authored
Explicitly allow Django 4.2 (#231)
* Explicitly allow Django 4.2 in dependencies and drop 4.0 * Drop Python 3.7 EOL is EOL
1 parent 9f57896 commit d16bcc2

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ jobs:
2525
# Test with all supported Django versions, for all compatible Python versions.
2626
# See https://docs.djangoproject.com/en/4.0/faq/install/#what-python-version-can-i-use-with-django for the official matrix.
2727
# Additionally test on Django’s main branch with the most recent Python version.
28-
- python: "3.7"
29-
toxenv: py37-dj32
3028
- python: "3.8"
31-
toxenv: py38-dj32,py38-dj40,py38-dj41,py38-dj42
29+
toxenv: py38-dj32,py38-dj41,py38-dj42
3230
- python: "3.9"
33-
toxenv: py39-dj32,py39-dj40,py39-dj41,py39-dj42
31+
toxenv: py39-dj32,py39-dj41,py39-dj42
3432
- python: "3.10"
3533
# Skip testing Django 4.0, already tested in previous workflow job.
3634
toxenv: py310-dj32,py310-dj41,py310-dj42,py310-djmain

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ classifiers = [
1717
"License :: OSI Approved :: BSD License",
1818
"Operating System :: OS Independent",
1919
"Programming Language :: Python",
20-
"Programming Language :: Python :: 3.7",
2120
"Programming Language :: Python :: 3.8",
2221
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
2524
"Framework :: Django",
2625
"Framework :: Django :: 3.2",
27-
"Framework :: Django :: 4.0",
2826
"Framework :: Django :: 4.1",
27+
"Framework :: Django :: 4.2",
2928
]
3029
packages = [
3130
{ include = "pattern_library" },
@@ -43,8 +42,8 @@ exclude = [
4342
"Issues" = "https://github.com/torchbox/django-pattern-library/issues"
4443

4544
[tool.poetry.dependencies]
46-
python = "^3.7"
47-
Django = ">=3.2,<4.2"
45+
python = "^3.8"
46+
Django = ">=3.2,<5.0"
4847
PyYAML = ">=5.1,<7.0"
4948
Markdown = "^3.1"
5049

tox.ini

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310}-dj32
4-
py{38,39,310,311}-dj40
3+
py{38,39,310}-dj32
54
py{38,39,310,311}-dj41
65
py{38,39,310,311}-dj42
76
py{310,311}-djmain
@@ -19,12 +18,8 @@ commands =
1918
poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=. --dry-run
2019
deps =
2120
dj32: Django>=3.2,<3.3
22-
dj40: Django>=4.0,<4.1
2321
dj41: Django>=4.1,<4.2
24-
; Use pre-releases until stable releases are available.
25-
; dj42: Django==4.2a1
26-
; dj42: Django>=4.2,<4.3
27-
dj42: Django==4.2rc1
22+
dj42: Django>=4.2,<5.0
2823
djmain: https://github.com/django/django/archive/main.zip
2924

3025
[testenv:lint]

0 commit comments

Comments
 (0)