Skip to content

Commit

Permalink
Merge pull request #25 from ronanboiteau/rb-240418-support-django-3.0…
Browse files Browse the repository at this point in the history
…-to-4.2

Support Django 4.0 and 4.1
  • Loading branch information
ronanboiteau authored Apr 18, 2024
2 parents ce49f47 + cb170cc commit 9148b6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Unreleased

- Add official support for Django 4.2:
- Use Django 4.2 in automated tests
- Review all the Django 4.2 built-in template tags and filters (no changes needed)
- Add official support for Django 4.0 to 4.2 with:
- Addition of automated test coverage
- Review of all the built-in template tags and filters (no changes needed)
- Use [tox](https://tox.wiki/) to manage test suite environment

## 1.2.0 - 2024-04-18
Expand Down
4 changes: 4 additions & 0 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")

import django
django.setup()

pytest.main()
12 changes: 8 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
[tox]
envlist =
django32,
django40,
django41,
django42,
lint
isolated_build = true

[testenv]
description = run type checker and unit tests
commands =
mypy --config-file mypy.ini src tests
python -m mypy --config-file mypy.ini src tests
python run_tests.py
deps =
django32: Django>=3.2,<4
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5
pytest
mypy
Expand All @@ -24,6 +28,6 @@ deps =
flake8
isort
commands =
black --check src tests
isort --settings-path isort.cfg --check-only src tests
flake8 --config .flake8 src tests
python -m black --check src tests
python -m isort --settings-path isort.cfg --check-only src tests
python -m flake8 --config .flake8 src tests

0 comments on commit 9148b6b

Please sign in to comment.