Skip to content

Commit

Permalink
Temporarily disable pytest-checkdocs to avoid race conditions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
abravalheri committed Apr 27, 2023
1 parent a78d46e commit e5b689a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e5b689a

Please sign in to comment.