-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test on Python 3.12 and Django 5.0 #248
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ docs: | |
test: | ||
@flake8 | ||
@isort --check-only --diff formtools tests | ||
@ coverage run `which django-admin` test tests | ||
@ python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run `which django-admin` test tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I use this pattern on all my projects to expose all warnings - even those from coverage or Django. |
||
@coverage report | ||
@coverage xml | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
coverage==4.5.4 | ||
coverage==7.3.2 | ||
flake8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Upgrade needed for 3.12 compatibility |
||
isort>=5.11.1, <6.0 | ||
isort>=5.11.1, <6.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,5 @@ | |
STATIC_ROOT = 'static' | ||
|
||
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' | ||
|
||
USE_TZ = True |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
[tox] | ||
args_are_paths = false | ||
envlist = | ||
py{37,38,39,310,311}-django32 | ||
py{38,39,310,311}-django32 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dropping 37 missed in 1d19b68 |
||
py{38,39,310,311}-django{40,41,42} | ||
py{310,311}-djangomain | ||
py{310,311,312}-django50 | ||
py{310,311,312}-djangomain | ||
|
||
[testenv] | ||
usedevelop = true | ||
|
@@ -15,6 +16,7 @@ deps = | |
django40: Django>=4.0,<4.1 | ||
django41: Django>=4.1,<4.2 | ||
django42: Django>=4.2,<5.0 | ||
django50: Django>=5.0a1,<5.1 | ||
djangomain: https://github.com/django/django/archive/main.tar.gz | ||
-r{toxinidir}/tests/requirements.txt | ||
ignore_outcome = | ||
|
@@ -28,3 +30,4 @@ python = | |
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splitting one per line reduces future diff noise when adding/removing versions