Browse Source

test_wheel: Update set of packages to install with pip

setuptools is required because test_imports imports direct.dist.commands

[skip ci]
rdb 2 years ago
parent
commit
78f8e1eaa9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      makepanda/test_wheel.py

+ 4 - 1
makepanda/test_wheel.py

@@ -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)