diff --git a/.circleci/config.yml b/.circleci/config.yml index 812bc161..f8cbe315 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,7 +36,7 @@ jobs: steps: - checkout - run: echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV - - run: pip install --user tox + - run: pip install --user tox "virtualenv<20.22.0" - run: tox test_nooptionals: parameters: diff --git a/tox.ini b/tox.ini index f1d4d1cb..3a5e23b2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,15 @@ [tox] envlist = coverage-clean,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,pypy3.7,py3.9-nooptionals,coverage-report,flake8,isort,mypy -[base] +[testenv] deps = coverage pytest attrs - -[testenv] -deps = - {[base]deps} {py3.7,pypy3.7}: twisted - {py3.7,pypy3.7}: asgiref + py3.7: asgiref + # See https://github.com/django/asgiref/issues/393 for why we need to pin asgiref for pypy + pypy3.7: asgiref==3.6.0 commands = coverage run --parallel -m pytest {posargs} [testenv:py3.9-nooptionals]