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

gimp3 trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since ea36f0f was 6cbba3e4, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Update to sphinx-7.3.7 (Python module).

  • Property mode set to 100644
File size: 7.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
7 <!ENTITY sphinx-download-http "https://files.pythonhosted.org/packages/source/s/sphinx/sphinx-&sphinx-version;.tar.gz">
8 <!ENTITY sphinx-download-ftp " ">
9 <!ENTITY sphinx-md5sum "4c4f1e3e6a456a64712ff406680338ab">
10 <!ENTITY sphinx-size "6.8 MB">
11 <!ENTITY sphinx-buildsize "52 MB (with tests)">
12 <!ENTITY sphinx-time "less than 0.1 SBU (add 1.3 SBU for tests)">
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
32 &lfs121_checked;
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"/>,
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"/>
86 </para>
87
88 <bridgehead renderas="sect5">Optional (for tests)</bridgehead>
89 <para role="optional">
90 <xref linkend="cython"/>,
91 <xref linkend="html5lib"/>,
92 <xref linkend="pytest"/>,
93 <xref linkend="texlive"/>,
94 <ulink url="https://pypi.org/project/defusedxml/">defusedxml</ulink>, and
95 <ulink url="https://pypi.org/project/filelock/">filelock</ulink>
96 </para>
97
98 </sect3>
99
100 <sect3 role="installation">
101 <title>Installation of Sphinx</title>
102
103 <para>Build the module:</para>
104
105&build-wheel;
106
107 <para>
108 Now, as the <systemitem class="username">root</systemitem> user:
109 </para>
110
111<screen role="root"><userinput>&install-wheel; sphinx</userinput></screen>
112
113 <para>
114 Assuming <xref linkend="cython"/> and <xref linkend="pytest"/> are
115 installed, but the other optional dependencies are not, the installation
116 can be tested with the following commands:
117 </para>
118
119<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
120source testenv/bin/activate &amp;&amp;
121pip3 install filelock defusedxml &amp;&amp;
122python3 -m pytest<!-- no && because of a possible error -->
123deactivate</userinput></screen>
124<!-- No failure in 7.0.1 [pierre]
125 7.1.0: 4 failed, 1896 passed, 10 skipped in 108.14s (0:01:48)
126 test_imgmath_png, test_imgmath_svg, test_imgmath_svg_embed, test_imgmath_numfig_html
127 7.2.5: 2051 passed, 11 skipped, 4 warnings [pierre]
128 7.2.6: 2052 passed, 10 skipped, 6 warnings [pierre]
129 7.3.7: 2124 passed, 20 skipped, 35 warnings in 123.27s [bdubbs]
130-->
131 </sect3>
132
133 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
134 href="../../../xincludes/pip3-cmd-explain.xml"/>
135
136 <sect3 role="content">
137 <title>Contents</title>
138
139 <segmentedlist>
140 <segtitle>Installed Programs</segtitle>
141 <segtitle>Installed Libraries</segtitle>
142 <segtitle>Installed Directories</segtitle>
143
144 <seglistitem>
145 <seg>
146 sphinx-apidoc, sphinx-autogen, sphinx-build, and sphinx-quickstart
147 </seg>
148 <seg>None</seg>
149 <seg>
150 /usr/lib/python&python3-majorver;/site-packages/sphinx and
151 /usr/lib/python&python3-majorver;/site-packages/sphinx-&sphinx-version;.dist-info
152 </seg>
153 </seglistitem>
154 </segmentedlist>
155
156 <variablelist>
157 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
158 <?dbfo list-presentation="list"?>
159 <?dbhtml list-presentation="table"?>
160
161 <varlistentry id="sphinx-apidoc">
162 <term><command>sphinx-apidoc</command></term>
163 <listitem>
164 <para>
165 creates an reST file from python modules and packages
166 </para>
167 <indexterm zone="sphinx sphinx-apidoc">
168 <primary sortas="b-sphinx-apidoc">sphinx-apidoc</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="sphinx-autogen">
174 <term><command>sphinx-autogen</command></term>
175 <listitem>
176 <para>
177 generates ReStructuredText from special directives contained
178 in given input files
179 </para>
180 <indexterm zone="sphinx sphinx-autogen">
181 <primary sortas="b-sphinx-autogen">sphinx-autogen</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="sphinx-build">
187 <term><command>sphinx-build</command></term>
188 <listitem>
189 <para>
190 generates documentation in various formats from ReStructuredText
191 source files
192 </para>
193 <indexterm zone="sphinx sphinx-build">
194 <primary sortas="b-sphinx-build">sphinx-build</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="sphinx-quickstart">
200 <term><command>sphinx-quickstart</command></term>
201 <listitem>
202 <para>
203 generates required files for a sphinx project
204 </para>
205 <indexterm zone="sphinx sphinx-quickstart">
206 <primary sortas="b-sphinx-quickstart">sphinx-quickstart</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 </variablelist>
212
213 </sect3>
214
215 </sect2>
Note: See TracBrowser for help on using the repository browser.