Skip to content

Commit

Permalink
build: resolve drf dependency issue in tox
Browse files Browse the repository at this point in the history
Error was with django42-drf314:

ERROR: Cannot install djangorestframework<3.15.0 and djangorestframework==3.15.1 because these package versions have conflicting dependencies
  • Loading branch information
pomegranited committed May 23, 2024
1 parent deacdf1 commit 9a01f61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8', '3.11', '3.12']
toxenv: [quality, docs, django42-drf314]
toxenv: [quality, docs, django42-drf315, django42-drflatest]


steps:
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
envlist = py{38,311,312}-django{42}-drf{drf314}, quality, docs
envlist = py{38,311,312}-django{42}-drf{315,latest}, quality, docs

[testenv]
setenv =
DJANGO_SETTINGS_MODULE = settings
deps =
-r{toxinidir}/requirements/test.txt
django42: Django>=4.2,<4.3
drf314: djangorestframework<3.15.0
drf315: djangorestframework<3.16
drflatest: djangorestframework
commands =
python -Wd -m pytest {posargs}

Expand Down

0 comments on commit 9a01f61

Please sign in to comment.