Changes between Initial Version and Version 28 of Ticket #28838
- Timestamp:
- Aug 19, 2020, 6:09:11 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28838
-
Property
Status
changed from
new
toneeds_work
- Property Cc vbraun dimpase kcrisman added
-
Property
Milestone
changed from
sage-9.0
tosage-9.2
-
Property
Summary
changed from
sage -sws2rst broken
toResurrect "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
-
Property
Status
changed from
-
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: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. 2 2 3 {{{ 4 sage -sws2rst worksheet.sws 5 }}} 3 With the removal of sagenb, also `sws2rst` disappeared, see #30076 and related tickets. 6 4 7 i got: 5 We extract and translate the required material from `sagenb` to a new optional package `sage_sws2rst` that makes `sage -sws2rst` work. 8 6 9 {{{10 ModuleNotFoundError: No module named 'sagenb'11 }}}12 7 13 Fair enough, i can still install `sagenb`. But then, the same command leads to: 8 As 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. 14 9 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.