Skip to content

Commit

Permalink
Add Django 3.2 in tox configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoistinen committed Jul 9, 2021
1 parent 41f2ee9 commit c87a3fe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Current branch (1.0.x) is tested with :
* Django 2.2 using python 3.5 to 3.9.
* Django 3.0 using python 3.6 to 3.9.
* Django 3.1 using python 3.6 to 3.9.
* Django 3.2 using python 3.6 to 3.9.


Installation
Expand Down
1 change: 1 addition & 0 deletions docs/managers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Visibility
A custom manager is used to determine which objects should be included in the querysets.

.. autoclass:: SafeDeleteManager
:noindex:

If you want to change which objects are "masked", you can set the ``_safedelete_visibility``
attribute of the manager to one of the following:
Expand Down
3 changes: 3 additions & 0 deletions safedelete/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@
},
},
]

# This is for Django 3.2, harmless for previous versions.
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
skipsdist = True
envlist =
{py35}-django-{22}
{py36}-django-{22,30,31}
{py37}-django-{22,30,31}
{py38}-django-{22,30,31}
{py39}-django-{22,30,31}
{py36}-django-{22,30,31,32}
{py37}-django-{22,30,31,32}
{py38}-django-{22,30,31,32}
{py39}-django-{22,30,31,32}
{py39}-flake8

[testenv]
Expand All @@ -19,6 +19,7 @@ deps =
django-22: Django>=2.2,<2.3
django-30: Django>=3.0,<3.1
django-31: Django>=3.1,<3.2
django-32: Django>=3.2,<3.3
commands =
flake8: flake8 safedelete --ignore=E501
django: coverage run --parallel-mode {toxinidir}/runtests.py {posargs}
Expand All @@ -30,6 +31,6 @@ changedir = docs
deps =
sphinx
sphinx_rtd_theme
Django>=2.2,<3.0
Django>=2.2,<3.3
commands =
sphinx-build -W -b html -d build/doctrees . build/html

0 comments on commit c87a3fe

Please sign in to comment.