Skip to content

Commit

Permalink
update tox (#345)
Browse files Browse the repository at this point in the history
* update tox

* update code to fix deprecation warning

* Update tests_app/settings.py
  • Loading branch information
auvipy authored Sep 11, 2024
1 parent 3be38d5 commit 6e10d1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 2 additions & 0 deletions tests_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,5 @@
'django.contrib.auth.backends.ModelBackend', # this is default
'guardian.backends.ObjectPermissionBackend',
)

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
18 changes: 7 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
[tox]
envlist = py{37,38,39}-django{22}-drf{39,310,311,312}
py{37,38,39}-django{30}-drf{310,311,312}
py{37,38,39}-django{31}-drf{311,312}
py{37,38,39}-django{32}-drf{312}
envlist = py{38,39}-django{22}-drf{311,312}
py{38,39}-django{32}-drf{312,313,314}


[testenv]
deps=
-rtests_app/requirements.txt
django-guardian>=1.4.4
drf39: djangorestframework>=3.9.3,<3.10
djangorestframework-guardian
drf310: djangorestframework>=3.10,<3.11
djangorestframework-guardian
drf311: djangorestframework>=3.11,<3.12
djangorestframework-guardian
drf312: djangorestframework>=3.12,<3.13
djangorestframework-guardian
drf313: djangorestframework>=3.13,<3.14
djangorestframework-guardian
drf314: djangorestframework>=3.14,<3.15
djangorestframework-guardian
django22: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2
django32: Django>=3.2,<4.0
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests_app
commands =
Expand Down

0 comments on commit 6e10d1a

Please sign in to comment.