Skip to content

Construct autoenum's logger locally instead of importing from sphinx.…#125

Open
carterbox wants to merge 3 commits into
domdfcoding:masterfrom
carterbox:fix-sphinx-9-autoenum
Open

Construct autoenum's logger locally instead of importing from sphinx.…#125
carterbox wants to merge 3 commits into
domdfcoding:masterfrom
carterbox:fix-sphinx-9-autoenum

Conversation

@carterbox
Copy link
Copy Markdown

…ext.autodoc

Sphinx 9 dropped the re-exported logger symbol from sphinx.ext.autodoc when the module was rewritten (sphinx-doc/sphinx#13751, #14089). Switch to sphinx.util.logging.getLogger(__name__), which has been available since Sphinx 1.6 and produces an equivalent logger.

This is the first error reported in #118. Note that full Sphinx 9 support is still blocked on sphinx-toolbox/sphinx-toolbox#201, which is the same bug in a runtime dependency. Once that lands, the sphinx<9 cap added in 121ac05 can be lifted.

Refs: #118
Refs: sphinx-toolbox/sphinx-toolbox#201

…ext.autodoc

Sphinx 9 dropped the re-exported `logger` symbol from `sphinx.ext.autodoc`
when the module was rewritten (sphinx-doc/sphinx#13751, #14089). Switch to
`sphinx.util.logging.getLogger(__name__)`, which has been available since
Sphinx 1.6 and produces an equivalent logger.

This is the first error reported in domdfcoding#118. Note that full Sphinx 9 support
is still blocked on sphinx-toolbox/sphinx-toolbox#201, which is the same
bug in a runtime dependency. Once that lands, the sphinx<9 cap added in
121ac05 can be lifted.

Refs: domdfcoding#118
Refs: sphinx-toolbox/sphinx-toolbox#201

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@repo-helper repo-helper Bot added the failure: flake8 The Flake8 check is failing. label May 29, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented May 29, 2026

Coverage Status

coverage: 87.5% (+0.05%) from 87.452% — carterbox:fix-sphinx-9-autoenum into domdfcoding:master

@repo-helper repo-helper Bot added failure: Windows The Windows tests are failing. and removed failure: flake8 The Flake8 check is failing. failure: Windows The Windows tests are failing. labels May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants