Quellcode durchsuchen

Configure `tox` to use `venv` (#12015)

As the comment says, virtualenv is a pile of fail.
tags/v1.54.0rc1
Richard van der Hoff vor 2 Jahren
committed by GitHub
Ursprung
Commit
6127c4b9f1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
3 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. +3
    -1
      .ci/scripts/test_old_deps.sh
  2. +1
    -0
      changelog.d/12015.misc
  3. +5
    -0
      tox.ini

+ 3
- 1
.ci/scripts/test_old_deps.sh Datei anzeigen

@@ -8,7 +8,9 @@ export DEBIAN_FRONTEND=noninteractive
set -ex set -ex


apt-get update apt-get update
apt-get install -y python3 python3-dev python3-pip libxml2-dev libxslt-dev xmlsec1 zlib1g-dev tox libjpeg-dev libwebp-dev
apt-get install -y \
python3 python3-dev python3-pip python3-venv \
libxml2-dev libxslt-dev xmlsec1 zlib1g-dev tox libjpeg-dev libwebp-dev


export LANG="C.UTF-8" export LANG="C.UTF-8"




+ 1
- 0
changelog.d/12015.misc Datei anzeigen

@@ -0,0 +1 @@
Configure `tox` to use `venv` rather than `virtualenv`.

+ 5
- 0
tox.ini Datei anzeigen

@@ -4,6 +4,11 @@ envlist = packaging, py37, py38, py39, py310, check_codestyle, check_isort
# we require tox>=2.3.2 for the fix to https://github.com/tox-dev/tox/issues/208 # we require tox>=2.3.2 for the fix to https://github.com/tox-dev/tox/issues/208
minversion = 2.3.2 minversion = 2.3.2


# the tox-venv plugin makes tox use python's built-in `venv` module rather than
# the legacy `virtualenv` tool. `virtualenv` embeds its own `pip`, `setuptools`,
# etc, and ends up being rather unreliable.
requires = tox-venv

[base] [base]
deps = deps =
python-subunit python-subunit


Laden…
Abbrechen
Speichern