source: general/prog/python-dependencies/toml.xml@ acd69075

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since acd69075 was 33f878a9, checked in by Pierre Labastie <pierre.labastie@…>, 20 months ago

Finish addition of gi-docgen

Add figures, and add short description for gi-docgen

  • Property mode set to 100644
File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 toml-download-http "https://files.pythonhosted.org/packages/source/t/toml/toml-&toml-version;.tar.gz">
8 <!ENTITY toml-download-ftp " ">
9 <!ENTITY toml-md5sum "59bce5d8d67e858735ec3f399ec90253">
10 <!ENTITY toml-size "22 KB">
11 <!ENTITY toml-buildsize "588 KB (add 101 MB for tests)">
12 <!ENTITY toml-time "less than 0.1 SBU (with tests)">
13]>
14
15 <sect2 id="toml" xreflabel="toml-&toml-version;">
16
17 <title>Toml-&toml-version;</title>
18
19 <indexterm zone="toml">
20 <primary sortas="a-toml">toml</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Toml Module</title>
25
26 <para>
27 The <application>Toml</application> library is used for parsing
28 and creating TOML files.
29 </para>
30
31 &lfs112_checked;
32
33 <bridgehead renderas="sect4">Package Information</bridgehead>
34 <itemizedlist spacing="compact">
35 <listitem>
36 <para>
37 Download (HTTP): <ulink url="&toml-download-http;"/>
38 </para>
39 </listitem>
40 <listitem>
41 <para>
42 Download (FTP): <ulink url="&toml-download-ftp;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download MD5 sum: &toml-md5sum;
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download size: &toml-size;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Estimated disk space required: &toml-buildsize;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated build time: &toml-time;
63 </para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect4">Toml Dependencies</bridgehead>
68
69 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
70 <para role="optional">
71 <xref linkend="pytest"/> and
72 <ulink url="https://pypi.org/project/numpy/">numpy</ulink>
73 </para>
74
75
76 </sect3>
77
78 <sect3 role="installation">
79 <title>Installation of Toml</title>
80
81 <para> Build the module: </para>
82
83<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
84
85 <para>
86 Now, as the <systemitem class="username">root</systemitem> user:
87 </para>
88
89<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user toml</userinput></screen>
90
91 <para>
92 Assuming <xref linkend="pytest"/> is installed and the other optional
93 dependency is not, the installation can be tested with (some test
94 files need to be downloaded from github):
95 </para>
96
97<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
98source testenv/bin/activate &amp;&amp;
99pip3 install numpy &amp;&amp;
100git clone https://github.com/BurntSushi/toml-test.git &amp;&amp;
101python3 /usr/bin/pytest<!-- no && because of a possible error -->
102deactivate</userinput></screen>
103
104 </sect3>
105
106 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
107 href="../../../xincludes/pip3-cmd-explain.xml"/>
108
109 <sect3 role="content">
110 <title>Contents</title>
111
112 <segmentedlist>
113 <segtitle>Installed Programs</segtitle>
114 <segtitle>Installed Libraries</segtitle>
115 <segtitle>Installed Directories</segtitle>
116
117 <seglistitem>
118 <seg>None</seg>
119 <seg>None</seg>
120 <seg>
121 /usr/lib/python&python3-majorver;/site-packages/toml and
122 /usr/lib/python&python3-majorver;/site-packages/toml-&toml-version;.dist-info
123 </seg>
124 </seglistitem>
125 </segmentedlist>
126
127 </sect3>
128
129 </sect2>
Note: See TracBrowser for help on using the repository browser.