source: general/prog/python-modules/packaging.xml@ 2366dada

lazarus trunk
Last change on this file since 2366dada was 2366dada, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Update to packaging-24.0 (Python module).

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