source: general/prog/python-dependencies/meson_python.xml

trunk
Last change on this file was 1037704b, checked in by Xi Ruoyao <xry111@…>, 13 days ago

python-dependencies: Update

  • Update to attrs-23.2.0
  • Update to meson_python-0.16.0
  • Update to pyproject-metadata-0.8.0
  • Add hatch-fancy-pypi-readme-24.1.0 to support attrs-23.2.0
  • Property mode set to 100644
File size: 4.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 meson_python-download-http "https://files.pythonhosted.org/packages/source/m/meson_python/meson_python-&meson_python-version;.tar.gz">
8 <!ENTITY meson_python-download-ftp " ">
9 <!ENTITY meson_python-md5sum "&meson_python-md5sum;">
10 <!ENTITY meson_python-size "80 KB">
11 <!ENTITY meson_python-buildsize "1.3 MB">
12 <!ENTITY meson_python-time "less than 0.1 SBU">
13]>
14
15 <sect2 id="meson_python" xreflabel="meson_python-&meson_python-version;">
16
17 <title>Meson_python-&meson_python-version;</title>
18
19 <indexterm zone="meson_python">
20 <primary sortas="a-meson_python">meson_python</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Meson_python Module</title>
25
26 <para>
27 The <application>Meson_python</application> module contains
28 a Python build backend (PEP 517) for Meson projects.
29 </para>
30
31 &lfs121_checked;
32
33 <bridgehead renderas="sect4">Package Information</bridgehead>
34 <itemizedlist spacing="compact">
35 <listitem>
36 <para>
37 Download (HTTP): <ulink url="&meson_python-download-http;"/>
38 </para>
39 </listitem>
40 <listitem>
41 <para>
42 Download (FTP): <ulink url="&meson_python-download-ftp;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download MD5 sum: &meson_python-md5sum;
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download size: &meson_python-size;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Estimated disk space required: &meson_python-buildsize;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated build time: &meson_python-time;
63 </para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect4">Meson_python Dependencies</bridgehead>
68
69 <bridgehead renderas="sect5">Required</bridgehead>
70 <para role="required">
71 <xref linkend="pyproject-metadata"/>
72 </para>
73
74 <bridgehead renderas="sect5">Recommended (Runtime)</bridgehead>
75 <para role="runtime">
76 <xref linkend="patchelf"/>
77 </para>
78
79 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
80 <para role="optional">
81 <xref linkend="git"/>,
82 <xref linkend="pytest"/>,
83 <xref linkend="python3"/> (rebuilt after installing
84 <xref role="nodep" linkend="sqlite"/>),
85 <ulink url="https://pypi.org/project/build/">build</ulink>,
86 <!-- <xref linkend="cython"/> when we update Cython -->
87 <ulink url="https://pypi.org/project/Cython/">Cython
88 &gt;= 3.0.3</ulink>,
89 <!-- pytest-cov mentioned but it seems not really used unless
90 running the "coverage" command explicitly -->
91 and
92 <ulink url="https://pypi.org/project/pytest-mock/">pytest-mock</ulink>
93 </para>
94 </sect3>
95
96 <sect3 role="installation">
97 <title>Installation of Meson_python</title>
98
99 <para>Build the module: </para>
100
101&build-wheel;
102
103 <para>
104 This package does not come with a test suite.
105 </para>
106
107 <para>
108 Now, as the <systemitem class="username">root</systemitem> user:
109 </para>
110
111<screen role="root"><userinput>&install-wheel; meson_python</userinput></screen>
112
113 <para>
114 To test the installation, make sure both <xref linkend='git'/> and
115 <xref linkend='pytest'/> are installed and <xref linkend='python3'/>
116 has been rebuilt after installing <xref linkend='sqlite'/>, then
117 issue:
118 </para>
119
120<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
121testenv/bin/pip3 install 'meson_python[test]' &amp;&amp;
122testenv/bin/python -m pytest</userinput></screen>
123
124 <!-- https://github.com/mesonbuild/meson-python/issues/619 -->
125 <para>
126 Two tests named <literal>test_missing_version</literal> and
127 <literal>test_pep621</literal> are known to fail with
128 pyproject-metadata-0.8.0 or later.
129 </para>
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>None</seg>
146 <seg>None</seg>
147 <seg>
148 /usr/lib/python&python3-majorver;/site-packages/meson_python and
149 /usr/lib/python&python3-majorver;/site-packages/meson_python-&meson_python-version;.dist-info
150 </seg>
151 </seglistitem>
152 </segmentedlist>
153
154 </sect3>
155
156 </sect2>
Note: See TracBrowser for help on using the repository browser.