Skip to content

Commit

Permalink
Disallow Sphinx 3.2.0
Browse files Browse the repository at this point in the history
This version of Sphinx fails to build our docs with the following error:

    Handler <function _process_docstring at 0x7f156ef03598> for event
    'autodoc-process-docstring' threw an exception (exception: module,
    class, method, function, traceback, frame, or code object was expected,
    got PathProtocol)

This appears to be a bug in Sphinx which should be fixed in the next
version. (See [here](sphinx-doc/sphinx#8074)
for more details.) I've confirmed that the build works properly with
Sphinx master.
  • Loading branch information
jqmp committed Aug 11, 2020
1 parent 267eaa4 commit 4ec91b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bionic/deps/extras.py
Expand Up @@ -43,7 +43,7 @@ def combine(*dep_lists):
"flake8",
"flake8-print",
"flake8-fixme",
"sphinx",
"sphinx!=3.2.0",
"sphinx_rtd_theme",
"sphinx-autobuild",
"nbsphinx",
Expand Down
2 changes: 1 addition & 1 deletion bionic/deps/optdep.py
Expand Up @@ -13,7 +13,7 @@ def first_token_from_package_desc(desc):
if first_mismatch is None:
return desc

if desc[first_mismatch.start()] not in " <>=":
if desc[first_mismatch.start()] not in " <>!=":
raise AssertionError(
oneline(
f"""
Expand Down

0 comments on commit 4ec91b5

Please sign in to comment.