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
py3: make sage autodoc extension work for both python2 and python3 #26949
Comments
This comment has been minimized.
This comment has been minimized.
Branch: u/klee/26949 |
New commits:
|
Author: Kwankyu Lee |
Commit: |
comment:8
I had always thought the issue was with |
comment:9
This is good progress. Methods in the Python 3 documentation look like |
comment:10
Also under Sets |
comment:12
Replying to @jhpalmieri:
I expected these subtle differences. I cannot explain the cause of the differences, but know where to look. You can start with
and perhaps also with comparing I would welcome commits to fix these unpleasant changes, after switching to a public branch. To understand how an attribute (in the general sense, of a module or of a class) is rendered by Sphinx, note that a suitable
|
comment:13
While making things compatible with Python 3 is a good goal, having two completely independent implementations of it is a horrible solution. Then we would have two autodoc extensions to maintain instead of one. |
comment:14
Also, I would personally prefer to wait with this until after #26451. But it's partially my fault for dragging that, so consider this just a suggestion. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:59
OK, do you plan further changes? I'll just need to know when I can review the final version of this branch. |
comment:60
Replying to @jdemeyer:
No. Please proceed. |
comment:61
Retarging tickets optimistically to the next milestone. If you are responsible for this ticket (either its reporter or owner) and don't believe you are likely to complete this ticket before the next release (8.7) please retarget this ticket's milestone to sage-pending or sage-wishlist. |
comment:62
any progress here ? Will this fix |
comment:63
Replying to @fchapoton:
Yes. I am waiting for a final review. |
comment:64
could you please check these pyflakes warnings (maybe not pertinent)
|
comment:65
Sorry, I forgot about this ticket. I will review it. Please do not make further changes. |
comment:66
Replying to @fchapoton:
Fixed all pyflakes warnings, except one about |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:68
I explicitly asked not to make further changes, so I will revert that last commit. |
comment:69
Replying to @jdemeyer:
Ok with that. But I am curious why the small, rather insignificant, change like the last commit is unacceptable to you. It seems not a big deal to me... Is there a technical reason that I miss? |
comment:70
I just don't want to review a moving target. The change itself may or may not be fine but at some point the branch needs to be fixed. For example, I would need to review the fact that the change is as innocent as you claim it to be. |
comment:71
Replying to @jdemeyer:
I agree in general. Ok. |
comment:72
I know that everyone is in agreement, but if you want actual evidence: in #16298, an import was apparently unused anywhere, so removing it was recommended by |
Changed branch from u/klee/26949 to u/jdemeyer/26949 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:75
Reverted last commit and squashed the other commits. |
comment:77
Thank you. I wish that now with this patch, |
comment:78
Replying to @jdemeyer:
I understand your reasoning, but given that the commit was made and you hadn't actually (as far as anyone can tell) begun the review the change, why not just incorporate it into your review? It does look pretty harmless to me and, while it should still have been checked, really doesn't add significant burden to review. |
comment:79
Replying to @embray:
I thought that "I will review it. Please do not make further changes." was clear enough. So yes, I was already building the documentation when that additional commit was pushed. Can we please not make further fuss about this? This ticket has positive review now, let's keep it that way. It's not perfect and that's fine. And the |
Changed branch from u/jdemeyer/26949 to |
Sage using python3 presently fails to build the sage documentation. This is because the current sage autodoc extension does not properly work with python3. This ticket provides new
sage_autodoc
that works for both python2 and python3.The new
sage_autodoc
is based on the existingsage_autodoc
but trimmed a lot to be in sync well with Sphinx' orthodoxautodoc
. This is to make it more maintainable by clarifying modifications made by Sage to Sphinx autodoc extension.Component: python3
Author: Kwankyu Lee
Branch/Commit:
16d81eb
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/26949
The text was updated successfully, but these errors were encountered: