Maint: Fix app.builder.outdir as Sphinx now using pathlib#1155
Maint: Fix app.builder.outdir as Sphinx now using pathlib#1155lucyleeow merged 3 commits intosphinx-gallery:masterfrom
app.builder.outdir as Sphinx now using pathlib#1155Conversation
|
Failure looks real and related I think |
|
Have just gone with |
It would be a really big job, but I wonder if it would fix things like: #440 |
|
merging as CI is green, will consider migrating to pathlib if you support it @larsoner |
|
Migrating to |
The more I think about it, the more I think this is true. I think it is okay to have only some parts of the code use pathlib, I will amend the |
|
(In any case should be done when one has the time to fix the resulting bugs...!) |
… to version 0.14.0 v0.14.0 ------- **Implemented enhancements:** - MAINT Update backreferences docs and add tests `#1154 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1154>`__ (`lucyleeow <https://github.com/lucyleeow>`__) - Remove extra spaces in reported running time `#1147 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1147>`__ (`stefanv <https://github.com/stefanv>`__) **Fixed bugs:** - MAINT: Fix for Sphinx 7.2 `#1176 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1176>`__ (`larsoner <https://github.com/larsoner>`__) - updated mpl gui warning catcher to new error message `#1160 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1160>`__ (`story645 <https://github.com/story645>`__) - Ensure consistent encoding for md5sum generation `#1159 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1159>`__ (`sdhiscocks <https://github.com/sdhiscocks>`__) - Maint: Fix ``app.builder.outdir`` as Sphinx now using pathlib `#1155 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1155>`__ (`lucyleeow <https://github.com/lucyleeow>`__) - Make \_LoggingTee compatible with TextIO `#1151 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1151>`__ (`o-laurent <https://github.com/o-laurent>`__) (NEWS truncated at 15 lines)
CI is failing with sphinx dev with error:
(see: https://dev.azure.com/sphinx-gallery/sphinx-gallery/_build/results?buildId=1368&view=logs&j=18f51a03-7fab-57d7-f724-30d2d83bc222&t=7c53da0f-8616-5987-83c8-9378d265c3e8&l=1124)
I think sphinx started using pathlib in: sphinx-doc/sphinx#11526
Potentially in future we may want to check if
outdiris aPathobject (instead of checking if str starts with http..) but have just usedstrfor now.