From f7518f22b13ed2151d112fb65e1d627ac70d32c7 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 27 Apr 2023 14:40:45 +0100 Subject: [PATCH] Temporarily disable pytest-checkdocs to avoid race conditions For the time being, when `setuptools.build_meta` is called, `egg_info.egg_base` is accidentally set to the project root between the several calls to the different build hooks. This means that if the hooks are called, they will try to overwrite `setuptools.egg-info/PKG-INFO`, and for a very short interval of time it will be an empty file. Another process may then try to simultaneously use `importlib.metadata` to list entry-points. However to sort entry-points, `importlib.metadata` will try to read the `Name` field in the `PKG-INFO/METADATA` files and will raise an error/warning if that file is empty. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index dde75c71719..15a4c43b567 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,7 +42,7 @@ exclude = testing = # upstream pytest >= 6 - pytest-checkdocs >= 2.4 + # pytest-checkdocs >= 2.4 # temporarily disable it pytest-flake8; \ # workaround for tholo/pytest-flake8#87 python_version < "3.12"