Skip to content

Commit e5b689a

Browse files
committed
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.
1 parent a78d46e commit e5b689a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ exclude =
4242
testing =
4343
# upstream
4444
pytest >= 6
45-
pytest-checkdocs >= 2.4
45+
# pytest-checkdocs >= 2.4 # temporarily disable it
4646
pytest-flake8; \
4747
# workaround for tholo/pytest-flake8#87
4848
python_version < "3.12"

0 commit comments

Comments
 (0)