Skip to content

Conversation

@humitos
Copy link
Member

@humitos humitos commented Aug 25, 2023

Ignore deprecations on Sphinx 9.0 that comes from readthedocs-sphinx-ext and use findall() instead of .traverse() as suggested by docutils.

Closes #1142

Ignore deprecations on Sphinx 9.0 that comes from readthedocs-sphinx-ext and use
`findall()` instead of `.traverse()` as suggested by docutils.
@humitos humitos added this to the 2.0 milestone Aug 25, 2023
@humitos humitos requested a review from a team as a code owner August 25, 2023 16:54
@humitos humitos self-assigned this Aug 25, 2023
@agjohnson
Copy link
Collaborator

@agjohnson agjohnson modified the milestones: 2.0, 2.1 Aug 31, 2023
@agjohnson
Copy link
Collaborator

@humitos Care to update this with the test fixes? I think we're about ready to merge this with 2.0 released.

We are testing in older versions where this exception is not defined.

The deprecation warning we are seeing here is not related to `sphinx_rtd_theme`
but with `readthedocs-sphinx-ext` because at:

https://github.com/rtfd/readthedocs-sphinx-ext/blob/13edf78bab374f51e314e4994c319fadbab806f2/readthedocs_ext/readthedocs.py#L118-L122

In any case, we will stop using that Sphinx extension at some point.
…cs/sphinx_rtd_theme into humitos/remove-pytest-warnings
@humitos
Copy link
Member Author

humitos commented Jan 2, 2024

I updated this PR and it's ready to be merged.

The WARNING logs are related to our Sphinx extension because it access app.script_files and app.css_files at

https://github.com/rtfd/readthedocs-sphinx-ext/blob/13edf78bab374f51e314e4994c319fadbab806f2/readthedocs_ext/readthedocs.py#L118-L122

This will be removed in Sphinx 9.0. However, we should not keep using that extension sooner than later. So, I don't think there is anything else to do here.

Changes on Sphinx: https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst#deprecated-1

@humitos humitos merged commit 17111ad into master Jan 2, 2024
@humitos humitos deleted the humitos/remove-pytest-warnings branch January 2, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Build and pytest based test suite warnings

3 participants