-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New warning in version 7.4 from autosummary causing automated builds to fail #12589
Comments
Hi @munircontractor, have you tried suppress_warnings = [
'autosummary.import_cycle',
] in your See https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-warning-control A |
Oh, thanks for that. I could not find it when searching for a fix for this. |
hi @AA-Turner and cheers for that sight! I believe adding the ignore in |
+1 |
Please see #12609, which addresses the underlying issue. I'd be grateful for any testing. A |
I have released Sphinx 7.4.6 with a fix. A |
I am using 7.4.6 and am still hitting this issue, see this build which just used 7.4.6:
Maybe it wasn't caught by this fix because of the
Refs with explicit prefixes like |
Hi @larsoner, are you able to provide a reproducer please? I'll reopen the issue. A |
Not minimal by any means but something like this:
should show the
in about 20s. |
I have to agree with the comment in the line of code you linked, namely:
That's why I never use |
Updated my comment since mne-bids has since in |
If I replace A |
Sphinx 7.4.7 has been released with a fix. A |
Thanks for looking into this issue. I'm however still seeing it with sphinx 7.4.7:
(requires poetry, The commit comes from this dependabot PR: abey79/vpype#754 |
We are also still seeing this for 7.4.7 on scikit-image's side, scikit-image/scikit-image#7485. |
NetworkX is still seeing this as well with sphinx 7.4.7. FWIW networkx's docs are configured with |
A minimal reproducer would be really helpful -- there are a lot of moving parts in A |
In NetworkX's case it turns out this was the warning working as intended. There were indeed autosummary directives that specified the redundant parent module in file where the |
Describe the bug
As of release 7.4.4, a new warning was added in
autosummary
in the linesphinx/sphinx/ext/autosummary/__init__.py
Line 644 in 1e13565
I run Sphinx builds in CI and on readthedocs.org with
-W --keep-going
flags to ensure that documents are properly built. The pipelines have started failing for the new release with no changes to the documentation itself.The builds use
autosummary
for the entire package recursively:The warnings are emitted because the generated documentation uses
autosummary
directive inside anautomodule
directive. This is a snippet from the generated documentation.How to Reproduce
conf.py
index.rst
Create the pkg with
Run sphinx with
It emits warnings and fails build with
-W
.There doesn't seem to be a way to ignore only certain warnings in Sphinx, so I would like to keep the
-W
flag in my builds. Is there a way to avoid the warning or does something withinautosummary
need to be updated to not include the package name when documenting it?Environment Information
Sphinx extensions
`["sphinx.ext.autosummary"]`
Additional context
No response
The text was updated successfully, but these errors were encountered: