From 9a01f61db6080bfe64c256dfeeb320c3b86491da Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Thu, 23 May 2024 13:28:31 +0930 Subject: [PATCH] build: resolve drf dependency issue in tox Error was with django42-drf314: ERROR: Cannot install djangorestframework<3.15.0 and djangorestframework==3.15.1 because these package versions have conflicting dependencies --- .github/workflows/ci.yml | 2 +- tox.ini | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5b5ee..bc0303f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/tox.ini b/tox.ini index d9d9027..c4785c6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [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 = @@ -7,7 +7,8 @@ setenv = 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}