summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-06-08 17:38:12 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-06-08 17:40:45 +0200
commit0b0401f8bb23fa57bac13e14b522c9755cba05f7 (patch)
treebb37f8663852c82b237f89a1fb032be4feb74564
parente1d0b3c543fc470a0459a18be3dee5a151ed79ed (diff)
downloadqutebrowser-0b0401f8bb23fa57bac13e14b522c9755cba05f7.tar.gz
qutebrowser-0b0401f8bb23fa57bac13e14b522c9755cba05f7.zip
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
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 3c1759eb7..606446f70 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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