-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Sphinx 7.2.0 problems with pathlib.Path
instead of string paths
#11605
Comments
Pin sphinx to the previous release due to sphinx-doc/sphinx#11605
Since we changed most of the strings to use Now, I agree that communication was perhaps not detailed enough. @AA-Turner maybe you should have updated https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.doctreedir to indicate the change of types. Personally, I think it's reasonable to assume that an attribute representing a path may either be a string or an |
@picnixz Have you filed this in the Breathe repo as an issue? I have found them very receptive to any reports that I have made there in the past regarding Sphinx versions support. Please report as an issue at https://github.com/breathe-doc/breathe/issues Thanks |
Reported to breathe in breathe-doc/breathe#943. A |
I think this should be reopened. This is a breaking API change that affects multiple plugins (see: https://review.opendev.org/c/openstack/openstackdocstheme/+/891678, https://github.com/click-contrib/sphinx-click/actions/runs/5893388282/job/15984823090). At a minimum, this should have pushed to a major release. Better, there should have been a translation shim and a deprecation period. Can we revert 49d8304 and wait until 8.0 to re-merge this, please? |
sphinx-doc/sphinx#11605 Signed-off-by: Stephen Finucane <[email protected]>
Part of the challenge is that until recently, A |
pathlib.Path
instead of string paths
This comment was marked as resolved.
This comment was marked as resolved.
…to 7.1.2 until either of them resolve this issue
…to 7.1.2 until either of them resolve this issue
Sphinx 7.2.0 breaks Breathe, see sphinx-doc/sphinx#11605 for now pin to 7.1.2 until either of them resolve this issue
I've released Sphinx 7.2.3 which should fix these issues. A |
sphinx-doc/sphinx#11605 is fixed and Sphinx 7.2.3 should fix the issue worked around in commit d918bc2
Describe the bug
When using breathe with the 7.2.0 release, we get this error:
I suspect that breathe relied on
doctreedir
being a string, and now it's aPosixPath
.If you believe that this is in error and that breathe should be changed instead to not rely on this, let me know and I'll file an issue there :)
How to Reproduce
Environment Information
Sphinx extensions
['breathe']
Additional context
No response
The text was updated successfully, but these errors were encountered: