Skip to content
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

Remove sagenb from DOC_DEPENDENCIES #28805

Closed
kiwifb opened this issue Nov 25, 2019 · 18 comments
Closed

Remove sagenb from DOC_DEPENDENCIES #28805

kiwifb opened this issue Nov 25, 2019 · 18 comments

Comments

@kiwifb
Copy link
Member

kiwifb commented Nov 25, 2019

We took care of removing all the dependencies to sagenb during build, in particular, the build of documentation. We also have switched to python3 by default but sagenb is still installed in python3 builds because of its presence in DOC_DEPENDENCIES. It should be removed.

CC: @jhpalmieri @embray @isuruf @timokau

Component: documentation

Author: François Bissey, John Palmieri

Branch/Commit: e234ff5

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/28805

@kiwifb kiwifb added this to the sage-9.0 milestone Nov 25, 2019
@kiwifb
Copy link
Member Author

kiwifb commented Nov 25, 2019

Author: François Bissey

@kiwifb
Copy link
Member Author

kiwifb commented Nov 25, 2019

Branch: u/fbissey/doc_sagenb_less

@kiwifb
Copy link
Member Author

kiwifb commented Nov 25, 2019

Commit: a028f89

@kiwifb
Copy link
Member Author

kiwifb commented Nov 25, 2019

comment:1

And with this commit sagenb is well and truly optional. Its installation will require manual intervention.


New commits:

a028f89remove sagenb from DOC_DEPENDENCIES

@jhpalmieri
Copy link
Member

comment:2

I'm seeing doctest failures in tests/cmdline.py because the script sage-rst2txt tries to import sagenb. I guess that test should be tagged # py2. Actually, should many of the py2 tags in that file be changed to optional: sagenb?

Maybe it's better to keep them as py2 so that we can find them and delete them more easily, once we drop support for Python 2.

@jhpalmieri
Copy link
Member

Changed branch from u/fbissey/doc_sagenb_less to u/jhpalmieri/doc_sagenb_less

@kiwifb
Copy link
Member Author

kiwifb commented Nov 26, 2019

Changed commit from a028f89 to e234ff5

@kiwifb
Copy link
Member Author

kiwifb commented Nov 26, 2019

comment:4

Actually I removed all those from sage-on-gentoo. I was wondering why I was the only one seemingly seeing these failures.


New commits:

e234ff5trac 28805: tag some tests "# py2"

@fchapoton
Copy link
Contributor

comment:5

looks good to me. Any other opinion ?

@jhpalmieri
Copy link
Member

comment:6

It works for me. I'm happy with the basic setup, so someone should review my commit.

@dimpase
Copy link
Member

dimpase commented Nov 27, 2019

comment:7

does rst2txt need Pyhton2, or sagenb? and if yes, why?

@jhpalmieri
Copy link
Member

comment:8

The script sage-rst2txt contains the line

from sagenb.notebook.docHTMLProcessor import docutilsHTMLProcessor

and that import is in fact used.

As I said in comment:2, we could tag the relevant tests as # optional - sagenb, but I think we will eventually want to delete tests marked # py2, and then we might forget to deal with tests marked with sagenb instead.

@dimpase
Copy link
Member

dimpase commented Nov 27, 2019

comment:9

docutilsHTMLProcessor can be trivially pulled out of sagenb. I don't know whether it's of any use though, but still...

@jhpalmieri
Copy link
Member

comment:11

Replying to @dimpase:

docutilsHTMLProcessor can be trivially pulled out of sagenb. I don't know whether it's of any use though, but still...

The purpose of sage-rst2txt is "Translate a rst file into a worksheet txt file." I'm not sure what a "worksheet txt file" is, but I think it's for SageNB. So I don't see the point of separating sage-rst2txt from sagenb.

@dimpase
Copy link
Member

dimpase commented Nov 27, 2019

Reviewer: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Nov 27, 2019

comment:12

OK, fine, I should have read the output of sage --rst2txt, sorry. Thanks.

@kiwifb
Copy link
Member Author

kiwifb commented Nov 28, 2019

Changed author from François Bissey to François Bissey, John Palmieri

@vbraun
Copy link
Member

vbraun commented Nov 29, 2019

Changed branch from u/jhpalmieri/doc_sagenb_less to e234ff5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants