Changes between Initial Version and Version 28 of Ticket #28838


Ignore:
Timestamp:
08/19/20 18:09:11 (13 months ago)
Author:
mkoeppe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28838

    • Property Status changed from new to needs_work
    • Property Cc vbraun dimpase kcrisman added
    • Property Milestone changed from sage-9.0 to sage-9.2
    • Property Summary changed from sage -sws2rst broken to Resurrect "sage -sws2rst" via a pip-installable package sage_sws2rst
    • Property Branch changed from to u/mkoeppe/28838
    • Property Reviewers changed from to Dima Pasechnik
    • Property Commit changed from to a05748b54be032ce66e25462ff297b2af7f80047
  • Ticket #28838 – Description

    initial v28  
    1 An important feature is to still be able to handle old `.sws` worksheets because a lot of pedagogical material was written on that format. With `9.0.beta8` (Python 3 by default), when i try:
     1An important feature is to still be able to handle old `.sws` worksheets because a lot of pedagogical material was written on that format.
    22
    3 {{{
    4 sage -sws2rst worksheet.sws
    5 }}}
     3With the removal of sagenb, also `sws2rst` disappeared, see #30076 and related tickets.
    64
    7 i got:
     5We extract and translate the required material from `sagenb` to a new optional package `sage_sws2rst` that makes `sage -sws2rst` work.
    86
    9 {{{
    10 ModuleNotFoundError: No module named 'sagenb'
    11 }}}
    127
    13 Fair enough, i can still install `sagenb`. But then, the same command leads to:
     8As of this ticket, the source code of `sage_sws2rst` is in `build/pkgs/sage_sws2rst/src`, which is a pip-installable Python package; and one can build an sdist from there, for example using the `spkg-src` script. The source tree could as well be split out to a separate repository.
    149
    15 {{{
    16 ImportError: BeautifulSoup must be installed.
    17 }}}
    18 
    19 If try to install `BeautifulSoup`, which seems Python2 specific, i got:
    20 
    21 {{{
    22 "You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
    23 }}}
    24 
    25 I can install `beautifulsoup4`, but it does not solve the issue since it is for Python 3.
    26 
    27 Of course `sagenb` is written for Python 2, and migrating it to Python 3 would require too much work.
    28 
    29 So, i guess the best solution would be to extract and translate the required material from `sagenb` to `sage` that would let `sage -sws2rst` work.