Skip to content

Commit

Permalink
Make support for Django 5.1 official (torchbox#251)
Browse files Browse the repository at this point in the history
* Add support for Django 5.1
* Remove Django 3.2 from supported dependencies
* Drop support for Python < 3.0
  • Loading branch information
mark-meyer authored Oct 18, 2024
1 parent 829f7ac commit 33a322c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 38 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version: "3.12"
cache: 'poetry'
- run: pip install tox
- run: tox -e lint,py312-dj50
- run: tox -e lint,py312-dj51
test_compatibility:
needs: test
runs-on: ubuntu-latest
Expand All @@ -26,14 +26,12 @@ jobs:
# Test with all supported Django versions, for all compatible Python versions.
# See https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django for the official matrix.
# Additionally test on Django’s main branch with the most recent Python version.
- python: "3.8"
toxenv: py38-dj32,py38-dj42
- python: "3.9"
toxenv: py39-dj32,py39-dj42
toxenv: py39-dj42
- python: "3.10"
toxenv: py310-dj32,py310-dj42,py310-dj50,py310-djmain
toxenv: py310-dj42,py310-dj50,py311-dj51,py310-djmain
- python: "3.11"
toxenv: py311-dj42,py311-dj50,py311-djmain
toxenv: py311-dj42,py311-dj50,py311-dj51,py311-djmain
- python: "3.12"
toxenv: py312-dj42,py312-djmain
steps:
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ poetry add --dev django-pattern-library

We support:

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

Expand Down
46 changes: 24 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
]
packages = [
{ include = "pattern_library" },
Expand All @@ -43,8 +42,8 @@ exclude = [
"Issues" = "https://github.com/torchbox/django-pattern-library/issues"

[tool.poetry.dependencies]
python = "^3.8"
Django = ">=3.2,<5.1"
python = "^3.9"
Django = ">=4.2,<5.2"
PyYAML = ">=5.1,<7.0"
Markdown = "^3.1"

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
envlist =
py{38,39,310}-dj32
py{38,39,310,311,312}-dj42
py{39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312}-dj51
py{310,311,312}-djmain
lint
skipsdist = true
Expand All @@ -17,9 +17,9 @@ commands =
poetry run python -X dev -W error runtests.py
poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=. --dry-run
deps =
dj32: Django>=3.2,<3.3
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.zip

[testenv:lint]
Expand Down

0 comments on commit 33a322c

Please sign in to comment.