source: general/prog/python-modules/sphinx.xml@ 323a66b

gimp3 lazarus trunk
Last change on this file since 323a66b was 017f8af, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Fix a build problem for sphinx-7.2.6.

  • Property mode set to 100644
File size: 7.0 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[3d48ae4]2<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../../general.ent">
5 %general-entities;
6
[5d51dad6]7 <!ENTITY sphinx-download-http "https://files.pythonhosted.org/packages/source/s/sphinx/sphinx-&sphinx-version;.tar.gz">
[3d48ae4]8 <!ENTITY sphinx-download-ftp " ">
[5d51dad6]9 <!ENTITY sphinx-md5sum "18971ebdd6ec1b7788ff0898682fe0da">
[5c5417a8]10 <!ENTITY sphinx-size "6.7 MB">
11 <!ENTITY sphinx-buildsize "45 MB (add 35 MB for tests)">
[5d51dad6]12 <!ENTITY sphinx-time "less than 0.1 SBU (1.3 SBU for tests)">
[3d48ae4]13]>
14
15 <sect2 id="sphinx" xreflabel="sphinx-&sphinx-version;">
16
17 <title>Sphinx-&sphinx-version;</title>
18
19 <indexterm zone="sphinx">
20 <primary sortas="a-sphinx">sphinx</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Sphinx Module</title>
25
26 <para>
27 The <application>Sphinx</application> package is a set of tools
28 for translating some structured text formats into pretty documentation
29 in various formats.
30 </para>
31
[99c90fa]32 &lfs121_checked;
[3d48ae4]33
34 <bridgehead renderas="sect4">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&sphinx-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&sphinx-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &sphinx-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &sphinx-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &sphinx-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &sphinx-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect4">Sphinx Dependencies</bridgehead>
69
70 <bridgehead renderas="sect5">Required</bridgehead>
71 <para role="required">
72 <xref linkend="alabaster"/>,
73 <xref linkend="babel"/>,
74 <xref linkend="docutils"/>,
75 <xref linkend="imagesize"/>,
76 <xref linkend="packaging"/>,
77 <xref linkend="pygments"/>,
78 <xref linkend="requests"/>,
79 <xref linkend="snowballstemmer"/>,
[036821b]80 <xref linkend="sc-applehelp"/>,
81 <xref linkend="sc-devhelp"/>,
82 <xref linkend="sc-htmlhelp"/>,
83 <xref linkend="sc-jsmath"/>,
84 <xref linkend="sc-qthelp"/>, and
85 <xref linkend="sc-serializinghtml"/>
[3d48ae4]86 </para>
87
[74434cc]88 <bridgehead renderas="sect5">Optional (for tests)</bridgehead>
[3d48ae4]89 <para role="optional">
[74434cc]90 <xref linkend="cython"/>,
[a3e69b9b]91 <xref linkend="html5lib"/>,
[72c62e4]92 <xref linkend="pytest"/>,
[a3e69b9b]93 <xref linkend="texlive"/>, and
94 <ulink url="https://pypi.org/project/filelock/">filelock</ulink>
[3d48ae4]95 </para>
96
97 </sect3>
98
99 <sect3 role="installation">
100 <title>Installation of Sphinx</title>
101
[017f8af]102 <para>First fix a problem with docutils-0.21.1:</para>
103
104<screen><userinput>sed -i 's/0.21/0.22/' pyproject.toml</userinput></screen>
105
106 <para>Build the module:</para>
[3d48ae4]107
[db244ae2]108&build-wheel;
[3d48ae4]109
110 <para>
[74434cc]111 Now, as the <systemitem class="username">root</systemitem> user:
[3d48ae4]112 </para>
113
[db244ae2]114<screen role="root"><userinput>&install-wheel; sphinx</userinput></screen>
[74434cc]115
[3d48ae4]116 <para>
[74434cc]117 Assuming <xref linkend="cython"/> and <xref linkend="pytest"/> are
[5c5417a8]118 installed, but the other optional dependencies are not, the installation
[74434cc]119 can be tested with the following commands:
[3d48ae4]120 </para>
121
[74434cc]122<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
123source testenv/bin/activate &amp;&amp;
[a3e69b9b]124pip3 install filelock &amp;&amp;
[5c5417a8]125python3 -m pytest<!-- no && because of a possible error -->
[74434cc]126deactivate</userinput></screen>
[e440af5]127<!-- No failure in 7.0.1 [pierre]
[a858014f]128 7.1.0: 4 failed, 1896 passed, 10 skipped in 108.14s (0:01:48)
129 test_imgmath_png, test_imgmath_svg, test_imgmath_svg_embed, test_imgmath_numfig_html
[5c5417a8]130 7.2.5: 2051 passed, 11 skipped, 4 warnings [pierre]
[5d51dad6]131 7.2.6:i 2052 passed, 10 skipped, 6 warnings [pierre]
[31ddfc35]132-->
[3d48ae4]133 </sect3>
134
135 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
136 href="../../../xincludes/pip3-cmd-explain.xml"/>
137
138 <sect3 role="content">
139 <title>Contents</title>
140
141 <segmentedlist>
142 <segtitle>Installed Programs</segtitle>
143 <segtitle>Installed Libraries</segtitle>
144 <segtitle>Installed Directories</segtitle>
145
146 <seglistitem>
147 <seg>
[2a0f15bc]148 sphinx-apidoc, sphinx-autogen, sphinx-build, and sphinx-quickstart
[3d48ae4]149 </seg>
150 <seg>None</seg>
151 <seg>
[2a0f15bc]152 /usr/lib/python&python3-majorver;/site-packages/sphinx and
153 /usr/lib/python&python3-majorver;/site-packages/sphinx-&sphinx-version;.dist-info
[3d48ae4]154 </seg>
155 </seglistitem>
156 </segmentedlist>
[2a0f15bc]157
[3d48ae4]158 <variablelist>
159 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
160 <?dbfo list-presentation="list"?>
161 <?dbhtml list-presentation="table"?>
162
[2a0f15bc]163 <varlistentry id="sphinx-apidoc">
164 <term><command>sphinx-apidoc</command></term>
165 <listitem>
166 <para>
167 creates an reST file from python modules and packages
168 </para>
169 <indexterm zone="sphinx sphinx-apidoc">
170 <primary sortas="b-sphinx-apidoc">sphinx-apidoc</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="sphinx-autogen">
176 <term><command>sphinx-autogen</command></term>
[3d48ae4]177 <listitem>
178 <para>
[2a0f15bc]179 generates ReStructuredText from special directives contained
180 in given input files
[3d48ae4]181 </para>
[2a0f15bc]182 <indexterm zone="sphinx sphinx-autogen">
183 <primary sortas="b-sphinx-autogen">sphinx-autogen</primary>
[3d48ae4]184 </indexterm>
185 </listitem>
186 </varlistentry>
187
[2a0f15bc]188 <varlistentry id="sphinx-build">
189 <term><command>sphinx-build</command></term>
[3d48ae4]190 <listitem>
191 <para>
[2a0f15bc]192 generates documentation in various formats from ReStructuredText
193 source files
[3d48ae4]194 </para>
[2a0f15bc]195 <indexterm zone="sphinx sphinx-build">
196 <primary sortas="b-sphinx-build">sphinx-build</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="sphinx-quickstart">
202 <term><command>sphinx-quickstart</command></term>
203 <listitem>
204 <para>
205 generates required files for a sphinx project
206 </para>
207 <indexterm zone="sphinx sphinx-quickstart">
208 <primary sortas="b-sphinx-quickstart">sphinx-quickstart</primary>
[3d48ae4]209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 </variablelist>
[2a0f15bc]214
[3d48ae4]215 </sect3>
216
217 </sect2>
Note: See TracBrowser for help on using the repository browser.