Skip to content

Commit 1b0c5bd

Browse files
committed
Fix tests under Python 3.12
There's a test that checks whether `import setup` works; our setup.py requires setuptools. Before Python 3.12, setuptools was preinstalled in all the virtualenvs. Virtualenv 20.23.0 changed this: - Do not install wheel and setuptools seed packages for Python 3.12+. See pypa/virtualenv#2487 for details and rationale.
1 parent bdfab1a commit 1b0c5bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tox.ini

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
envlist = py37, py38, py39, py310, py311
33

44
[testenv]
5+
deps =
6+
setuptools
57
commands =
68
python tests.py {posargs}
79

@@ -12,6 +14,7 @@ commands =
1214

1315
[testenv:coverage]
1416
deps =
17+
{[testenv]deps}
1518
coverage
1619
commands =
1720
coverage run tests.py

0 commit comments

Comments
 (0)