-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
RemovedInSphinx80Warning
in ProjectInfoFactory.__init__
#974
Comments
gareth-rees
added a commit
to gareth-rees/breathe
that referenced
this issue
Mar 31, 2024
In recent versions of Sphinx, code that treats Sphinx application paths such as `Sphinx.confdir` and `Sphinx.doctreedir` as strings emits the warning "Sphinx 8 will drop support for representing paths as strings". This commit updates path-manipulation code to use functions in the `os.path` module, which accept path-like objects as well as strings. This fixes issue breathe-doc#974.
gareth-rees
added a commit
to gareth-rees/breathe
that referenced
this issue
Mar 31, 2024
In recent versions of Sphinx, code that treats Sphinx application paths such as `Sphinx.confdir` and `Sphinx.doctreedir` as strings emits the warning "Sphinx 8 will drop support for representing paths as strings". This commit updates path-manipulation code to use functions in the `os.path` module, which accept path-like objects as well as strings. This fixes issue breathe-doc#974.
gareth-rees
added a commit
to gareth-rees/breathe
that referenced
this issue
Mar 31, 2024
In recent versions of Sphinx, code that treats Sphinx application paths such as `Sphinx.confdir` and `Sphinx.doctreedir` as strings emits the warning "Sphinx 8 will drop support for representing paths as strings". This commit updates path-manipulation code to use functions in the `os.path` module, which accept path-like objects as well as strings. This fixes issue breathe-doc#974.
2bndy5
pushed a commit
to 2bndy5/breathe
that referenced
this issue
Jun 18, 2024
In recent versions of Sphinx, code that treats Sphinx application paths such as `Sphinx.confdir` and `Sphinx.doctreedir` as strings emits the warning "Sphinx 8 will drop support for representing paths as strings". This commit updates path-manipulation code to use functions in the `os.path` module, which accept path-like objects as well as strings. This fixes issue breathe-doc#974.
Fixed by #977. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building a project with Sphinx 7.2.6, I get the following warning (line-wrapped for clarity):
I don't know exactly when Sphinx plan to release version 8, but their last release in the version 6 series was 6.2.1, and their latest release in the version 7 series is 7.2.6, so it may not be long now.
Possible solutions include
os.path.normpath
:or conversion to
str
:or conversion to
Path
and back again:There may be more cases where code would need to be updated to support Sphinx 8.0. I had a quick look and found one more:
breathe/breathe/renderer/sphinxrenderer.py
Lines 2408 to 2410 in 542ae9b
This would need to become:
The text was updated successfully, but these errors were encountered: