From c6eecdc094cb2addd16aa09ef2aea037a4d924bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 9 Jan 2023 20:03:11 +0100 Subject: [PATCH] The tests actually require wheel When wheel is not installed, several tests error like this: distutils.errors.DistutilsModuleError: invalid command 'bdist_wheel' ... SystemExit: error: invalid command 'bdist_wheel' Or like this: ERROR Missing dependencies: wheel When the tests are executed in a virtualenv, wheel is implicitly installed, which is why this have never happened on the CI. List of tests that error: ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_tox_install_pkg_wheel ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_tox_install_pkg_sdist ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_install_pkg_via[p] ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_install_pkg_via[le] ERROR tests/tox_env/python/virtual_env/package/test_python_package_util.py::test_load_dependency_no_extra ERROR tests/tox_env/python/virtual_env/package/test_python_package_util.py::test_load_dependency_many_extra Version 0.38.4 is required as this is the current version and this is the way tox specifies the test dependencies. --- docs/changelog/2843.bugfix.rst | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) create mode 100644 docs/changelog/2843.bugfix.rst diff --git a/docs/changelog/2843.bugfix.rst b/docs/changelog/2843.bugfix.rst new file mode 100644 index 000000000..b068f3436 --- /dev/null +++ b/docs/changelog/2843.bugfix.rst @@ -0,0 +1 @@ +Explicitly list ``wheel`` as requirement for the tests, as some of the tests error without it. diff --git a/pyproject.toml b/pyproject.toml index 2d25bf066..e4d5ad962 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,7 @@ optional-dependencies.testing = [ "pytest-mock>=3.10", "pytest-xdist>=3.1", "re-assert>=1.1", + "wheel>=0.38.4", "time-machine>=2.8.2; implementation_name != \"pypy\"", ] scripts.tox = "tox.run:run"