Conversation
Replace or remove use of deprecated stuff
|
Thanks for this. I looked at things when sphinx 6 came out and just gave up. |
Testing is most important in this business of maintaining the documentation stuff, I think. Did you at least check the built documentation has no regressions? |
|
The built documents look good to me. |
|
Thanks. But now we have |
|
It seems "tuple" type annotation is only introduced in python 3.9, and "Tuple" is deprecated since python 3.9. |
|
Per https://doc.sagemath.org/html/en/developer/coding_in_python.html#python-language-standard, this file should use |
Changed it to Tuple for consistency with the other type annotations in this file, they can all be ported together at a later time. |
|
Documentation preview for this PR (built with commit d93dc08) is ready! 🎉 |
|
I have successfully build the doc in sage-on-gentoo with both sphinx 5 and sphinx 7. Definitely happy with the PR. |
|
Are all build issues with sphinx 7 fixed by this PR? If yes, can we remove the version constraints in https://github.com/sagemath/sage/blob/develop/build/pkgs/sphinx/install-requires.txt and https://github.com/sagemath/sage/blob/develop/build/pkgs/sphinx/distros/conda.txt? |
I haven't encountered any issues with sphinx 7. So, I would say you should go ahead with that, but in a separate PR since this one is being merged. |
|
We definitely should update our sphinx, as it blocks conda (they need >= 6.0 for some Sage deps) @isuruf |
Done now at #35845 (ready for review). |
|
I seem to have a problem with sphinx 7.2.6: has anyone seen this? Looks like it complains about |
Yes. For now I'm whitelisting that warning in |
|
I have seen trouble with both 7.1 and 7.2. In sage-on-gentoo anything sphinx 7.1 and over breaks the build last time I checked. See cschwan/sage-on-gentoo#753 |
|
I can confirm that sphinx 7.0.0 (with docutils 0.19) still works for me (in a pyenv and Python 3.11.5 there, in conjunction with trying out #36256), but 7.1.0 (with docutils 0.20) does not. |
I can't reproduce this with 7.2.6 |
|
I'll try from scratch, again. |
|
but what I saw was a different error |
|
Could be a combination of sphinx with something else that fails. Right now furo-2023-8.19 leads to truncated html documentation for me as well. The documentation build is just in a bad place right now. |
|
Please open a new issue. |
see sagemath#35658, in particular sagemath#35658 (comment) and later
see sagemath#35658, in particular sagemath#35658 (comment) and later
see sagemath#35658, in particular sagemath#35658 (comment) and later
Replace or remove use of deprecated stuff
Tried to keep it compatible with older sphinx, but needs testing