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

RemovedInSphinx80Warning: Use "pathlib.Path" or "os.fspath" #999

Open
dylanh724 opened this issue Oct 7, 2024 · 2 comments
Open

RemovedInSphinx80Warning: Use "pathlib.Path" or "os.fspath" #999

dylanh724 opened this issue Oct 7, 2024 · 2 comments

Comments

@dylanh724
Copy link

dylanh724 commented Oct 7, 2024

When running a sphinx-build in Sphinx 7.3.7:

C:\users\dylan\miniconda3\envs\xbe-docs\lib\site-packages\breathe\project.py:116: RemovedInSphinx80Warning: Sphinx 8 will drop support for representing paths as strings. Use "pathlib.Path" or "os.fspath" instead.
  self._default_build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep))
@dylanh724 dylanh724 changed the title RemovedInSphinx80Warning: Use "pathlib.Path" or RemovedInSphinx80Warning: Use "pathlib.Path" or "os.fspath" Oct 7, 2024
@dylanh724
Copy link
Author

dylanh724 commented Oct 7, 2024

Apologies, this may be an issue for svenevs/exhale? It's a Breathe wrapper, so I'm not quite sure 🤔

@Rotzbua
Copy link
Contributor

Rotzbua commented Oct 20, 2024

Removal is now with sphinx v9:

site-packages\breathe\project.py:116: RemovedInSphinx90Warning: Sphinx 9 will drop support for representing paths as strings. Use "pathlib.Path" or "os.fspath" instead.
self._default_build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep))

It is a breathe problem:

self._default_build_dir = os.path.dirname(os.path.normpath(app.doctreedir))

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

No branches or pull requests

2 participants