mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
210 stars 122 forks source link

Fix sphinx file path deprecation warning #37804

Open jclarkeSTFC opened 1 month ago

jclarkeSTFC commented 1 month ago

Describe the outcome that is desired. Fix this deprecation warning in the doc tests:

RemovedInSphinx90Warning: Sphinx 9 will drop support for representing paths as strings. Use "pathlib.Path" or "os.fspath" instead

Describe any solutions you are considering Using pathlib.Path or os.fspath to represent paths instead of strings

sf1919 commented 1 month ago

Sphinx 8 was release in July and Sphinx 7 in May 2023 so I am going to guess Sphinx 9 is not imminent but likely within the enxt 12 months.

Therefore I'm going to put a 6.12 milestone on this as I think this potentially may take some time