From c69c7ff50d7f5d3ce50cd27ee9b0b9f5936067cd Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Mon, 11 Sep 2023 22:50:29 +0800 Subject: [PATCH] Limit virtualenv version for EOL Python versions Also, requirements for Python 3.6 is locked and won't be updated anymore. ref: https://tox.wiki/en/4.11.3/faq.html#testing-end-of-life-python-versions --- tox.ini | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 9da1290..8b4a78a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,8 @@ [tox] envlist = update, compile, autopep8, docformatter, isort, pylint, flake8, pydocstyle, docs, py{26, 27, 34, 35, 36, 37, 38, 39, 310, 311, 312} skip_missing_interpreters = true +# https://tox.wiki/en/4.11.3/faq.html#testing-end-of-life-python-versions +requires = virtualenv<20.22.0 [base] pip_compile_command = pip-compile --resolver=backtracking --strip-extras --no-emit-index-url --allow-unsafe --upgrade @@ -89,11 +91,6 @@ basepython = python3.7 deps = pip-tools commands = {[base]pip_compile_command} requirements-tests37.in -o requirements-tests37.txt -[testenv:update_requirements36] -basepython = python3.6 -deps = pip-tools -commands = {[base]pip_compile_command} requirements-tests37.in -o requirements-tests36.txt - [testenv:py38] deps = -r requirements-tests37.txt