Skip to content

Commit 33a322c

Browse files
authored
Make support for Django 5.1 official (#251)
* Add support for Django 5.1 * Remove Django 3.2 from supported dependencies * Drop support for Python < 3.0
1 parent 829f7ac commit 33a322c

File tree

5 files changed

+37
-38
lines changed

5 files changed

+37
-38
lines changed

Diff for: .github/workflows/ci.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
python-version: "3.12"
1616
cache: 'poetry'
1717
- run: pip install tox
18-
- run: tox -e lint,py312-dj50
18+
- run: tox -e lint,py312-dj51
1919
test_compatibility:
2020
needs: test
2121
runs-on: ubuntu-latest
@@ -26,14 +26,12 @@ jobs:
2626
# Test with all supported Django versions, for all compatible Python versions.
2727
# See https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django for the official matrix.
2828
# Additionally test on Django’s main branch with the most recent Python version.
29-
- python: "3.8"
30-
toxenv: py38-dj32,py38-dj42
3129
- python: "3.9"
32-
toxenv: py39-dj32,py39-dj42
30+
toxenv: py39-dj42
3331
- python: "3.10"
34-
toxenv: py310-dj32,py310-dj42,py310-dj50,py310-djmain
32+
toxenv: py310-dj42,py310-dj50,py311-dj51,py310-djmain
3533
- python: "3.11"
36-
toxenv: py311-dj42,py311-dj50,py311-djmain
34+
toxenv: py311-dj42,py311-dj50,py311-dj51,py311-djmain
3735
- python: "3.12"
3836
toxenv: py312-dj42,py312-djmain
3937
steps:

Diff for: docs/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ poetry add --dev django-pattern-library
1717

1818
We support:
1919

20-
- Django 3.2, 4.0, 4.1 (experimental), 4.2 (experimental)
21-
- Python 3.7, 3.8, 3.9, 3.10, 3.11 (experimental)
20+
- Django 4.2, 5.0, 5.1
21+
- Python 3.9, 3.10, 3.11, 3.12
2222
- Django Templates only, no Jinja support
2323
- Modern “evergreen” desktop and mobile browsers
2424

Diff for: poetry.lock

+24-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+4-5
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.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
2424
"Framework :: Django",
25-
"Framework :: Django :: 3.2",
26-
"Framework :: Django :: 4.1",
2725
"Framework :: Django :: 4.2",
2826
"Framework :: Django :: 5.0",
27+
"Framework :: Django :: 5.1",
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.8"
47-
Django = ">=3.2,<5.1"
45+
python = "^3.9"
46+
Django = ">=4.2,<5.2"
4847
PyYAML = ">=5.1,<7.0"
4948
Markdown = "^3.1"
5049

Diff for: tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[tox]
22
envlist =
3-
py{38,39,310}-dj32
4-
py{38,39,310,311,312}-dj42
3+
py{39,310,311,312}-dj42
54
py{310,311,312}-dj50
5+
py{310,311,312}-dj51
66
py{310,311,312}-djmain
77
lint
88
skipsdist = true
@@ -17,9 +17,9 @@ commands =
1717
poetry run python -X dev -W error runtests.py
1818
poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=. --dry-run
1919
deps =
20-
dj32: Django>=3.2,<3.3
2120
dj42: Django>=4.2,<5.0
2221
dj50: Django>=5.0,<5.1
22+
dj51: Django>=5.1,<5.2
2323
djmain: https://github.com/django/django/archive/main.zip
2424

2525
[testenv:lint]

0 commit comments

Comments
 (0)