Skip to content
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

Avoid RemovedInSphinx80Warning in path-manipulation code. #977

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

gareth-rees
Copy link
Contributor

@gareth-rees gareth-rees commented 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.

Note that you will need pull request #976 in order for tests to pass, due to issue #975.

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.
# Conflicts:
#	breathe/project.py
@AA-Turner AA-Turner merged commit acb59b4 into breathe-doc:main Jul 30, 2024
20 of 38 checks passed
@gareth-rees
Copy link
Contributor Author

@AA-Turner Thanks for merging this and #976: much appreciated.

@AA-Turner
Copy link
Collaborator

No worries! Per #990 (comment) I'm happy to review other PRs if you have them, but I'm unlikey to be writing much (any) new stuff for breathe myself.

A

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.

4 participants