py312: Tell tox/virtualenv to upgrade pip

Otherwise we run into a Python 3.12 incompatibility with pkg_resources:
https://github.com/pypa/pip/issues/11501

Also needs PIP_REQUIRE_VIRTUALENV=0 because otherwise pip seems to
falsely assume it's installing things system-wide, weirdly.

Should probably be removed once there is a newer virtualenv, which
vendors a newer pip, which vendors a newer pkg_resources...

See #7727
This commit is contained in:
Florian Bruhin 2023-06-08 17:38:12 +02:00
parent e1d0b3c543
commit 0b0401f8bb
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ setenv =
pyqt{62,63,64,65}: PYTEST_QT_API=pyqt6
pyqt{62,63,64,65}: QUTE_QT_WRAPPER=PyQt6
cov: PYTEST_ADDOPTS=--cov --cov-report xml --cov-report=html --cov-report=
py312: VIRTUALENV_PIP=23.1.2
py312: PIP_REQUIRE_VIRTUALENV=0
passenv =
PYTHON
DISPLAY