test_wheel: Update set of packages to install with pip

setuptools is required because test_imports imports direct.dist.commands

[skip ci]
This commit is contained in:
rdb 2023-10-16 00:23:06 +02:00
parent 84020d4fb6
commit 78f8e1eaa9

View File

@ -41,7 +41,7 @@ def test_wheel(wheel, verbose=False):
if sys.version_info >= (3, 10):
packages += ["pytest>=6.2.4"]
else:
packages += ["pytest"]
packages += ["pytest>=3.9.0"]
if sys.version_info[0:2] == (3, 4):
if sys.platform == "win32":
@ -50,6 +50,9 @@ def test_wheel(wheel, verbose=False):
# See https://github.com/python-attrs/attrs/pull/807
packages += ["attrs<21"]
if sys.version_info >= (3, 12):
packages += ["setuptools"]
if subprocess.call([python, "-m", "pip", "install"] + packages) != 0:
shutil.rmtree(envdir)
sys.exit(1)