-
Notifications
You must be signed in to change notification settings - Fork 38
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
docutils update to new upstream. #1174
base: master
Are you sure you want to change the base?
Conversation
Added pygments-py to test depends for current system Problem making math documentation? Other errors in documentation? These look like typos in the documentation itself? |
In validation there is an error in the deb file. Since I have never messed with multi-lingual files any advice would be appreciated. The deb builds and installs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In validation there is an error in the deb file. Since I have never messed with multi-lingual files any advice would be appreciated. The deb builds and installs.
Seems there was a docutils
executable added, including it to the update_alternatives
set should fix this.
done | ||
|
||
cd %i/bin | ||
for i in rst2* rstpep2html.py; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for i in rst2* rstpep2html.py; do | |
for i in docutils rst2* rstpep2html.py; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Ah, that is python version not a spoken language version that is the problem.
should the line
cp %b/tools/rstpep2html.py %i/bin
also be python versioned? Something like this to be consistent?
cp %b/tools/rstpep2html.py %i/bin/rstpep2html-%type_raw[python].py
(This is only in the docutils-py.info since version 0.21.2 build rstpep2html in a different directory.)
So now the only error is that the mathematics.html docs file has all this unknown TeX/LaTeX symbols. Should TeX be a prerequisite? At the moment I can't build TeXLive due to errors and test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I missed there are two distribution versions. Since it's also installed into %i/bin
, it should need to be python-versioned or validation should fail as well.
TeXLive would be a quite heavy dependency, though probably a recommendation, as one of the principal outputs is to LaTeX format. It would seem like it has its own TeX parser if it gets that far though, just having problems with some mathtex commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, TeXLive would be a heavy lift. But if it has its own TeX parser why is the building of the documentation failing like that? If I can get TeXLive built and installed, I will see if the errors go away. Probably but something in the build notes that the mathematics documentation doesn't build unless you have it installed?
But still baffled by inability to get TeXLive-texmf to install.
<< | ||
|
||
PostInstScript: << | ||
for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do | |
for i in docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do |
That TeX like formatting that is showing errors in building documentation needs at least two external programs. latexml and latexmlpost and possibly pandoc and ttm? I don't think these are provided by any of the fink packages. |
I have the requested changes, but docutils-py38 will not build/validate the version 0.18.1. Python 3.8 random() function is trying to "from math import log as _log" and it is using the docutils math module and not the builtin Python module. Making BUGS.html |
…ocutils-py38 and previous
Sounds oddly familiar, but no idea, why this would only show up with Python 3.8. The problem with exposing its own |
I can try for updating to 0.19.1 for <= python 3.8. It also seems that the old docutils-py did not require setuptools as a build depends either. |
I am not sure that it only shows up with python 3.8, it may have conflicts with previous versions, I didn't test for < 3.8 |
Got the same error trying to use Docutils-0.19b1. Tried to test python 3.7 but that version of python does not pass tests: If I disable testing Python 3.7 installs but docutils returns the same error. |
Sorry, misread the version info on the 0.19-1 I had installed; of course that should be the released 0.19 rather than a beta! |
…to avoid conflicts, version 0.21.2 still builds for python 3.9 and 3.10. Passes validation and testing.
That hint did the trick, this push validates and passes testing for python 3.7, 3.8 with version 0.19 and python 3.10 with version 0.21.2. |
Split version for old/new build system
update to version 0.21 for python 3.9 and 3.10
update to 0.18 for earlier python (2.7. 3.7 and 3.8)
for some reason rstpep2html not copied to install directory, not defined in build as script to install
package needs to have PYTHONPATH set to use recently built tools and not rely on tools already being installed version of rst2html
Builds on macOS 15.X and CLT 16.X
Did not run self-tests since requires mock which does not yet build/install on macOS15.X / CLT 16
Normal build of documentation seems to require pygments package, should that be included as a dependency?
math documentation seems to require tex formatting? Should that also be a dependency?
Problem making math documentation?
Making ./ref/rst/mathematics.html
Error (should be a dependency?
Making ./user/manpage.html
./user/manpage.txt:74: (WARNING/2) Cannot analyze code. Pygments package not found.
./user/manpage.txt:86: (WARNING/2) Cannot analyze code. Pygments package not found.
Making ./dev/hacking.html
./dev/hacking.txt:75: (WARNING/2) Cannot analyze code. Pygments package not found.