Skip to content

autosummary.import_cycle warning breaks doc build on Windows CI #7485

Closed

Description

@lagru

For some time now our doc building on Azure has been broken because of a warning

Warning, treated as error:
Summarised items should not include the current module. Replace 'skimage.color' with 'color'. [autosummary.import_cycle]

This seems related to recent changes on Sphinx's side. sphinx-doc/sphinx#12589 claims it's fixed for 7.4.6 but we are still seeing this error using 7.4.7.

Throwing a debugger at this it seems like the warning is triggered when parsing this line

This differs from `skimage.feature.peak_local_max` in that it suppresses

And indeed, setting default_role = "py:obj" like suggested in sphinx-doc/sphinx#12589 (comment) removes the warning. I'm not sure yet if this is the proper way to address the issue.

Activity

  1. added
    🤖 type: Infrastructure
    on Aug 5, 2024
  2. lagru commented on Aug 12, 2024

    @lagru
    MemberAuthor

    #7486 changed the default role to address the warning. However, this may not be a proper fix. We will have to monitor sphinx-doc/sphinx#12589 and see how that issue is resolved.

  3. stefanv commented on Aug 19, 2024

    @stefanv
    Member

    I just built with 8.0.2 and didn't see any warnings.

  4. stefanv commented on Sep 16, 2024

    @stefanv
    Member

    @lagru All resolved?

  5. lagru commented on Sep 17, 2024

    @lagru
    MemberAuthor

    Yes, it seems resolved now. Can always reopen if this resurfaces. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Bug🤖 type: Infrastructure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions