Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Configure tox to use venv (#12015)
Browse files Browse the repository at this point in the history
As the comment says, virtualenv is a pile of fail.
  • Loading branch information
richvdh authored Feb 17, 2022
1 parent e69f8f0 commit 6127c4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/scripts/test_old_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export DEBIAN_FRONTEND=noninteractive
set -ex

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"

Expand Down
1 change: 1 addition & 0 deletions changelog.d/12015.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Configure `tox` to use `venv` rather than `virtualenv`.
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
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]
deps =
python-subunit
Expand Down

0 comments on commit 6127c4b

Please sign in to comment.