breathe icon indicating copy to clipboard operation
breathe copied to clipboard

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

Open dylanh724 opened this issue 1 year ago • 2 comments

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 avatar Oct 07 '24 01:10 dylanh724

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

dylanh724 avatar Oct 07 '24 05:10 dylanh724

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:

https://github.com/breathe-doc/breathe/blob/62695c7e3eaf1190f7bb02ba7b396daf78da66f4/breathe/project.py#L116

Rotzbua avatar Oct 20 '24 01:10 Rotzbua