2022-10-13 23:09:55 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2022-10-14 21:03:28 +08:00
|
|
|
<!ENTITY pluggy-download-http "https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-&pluggy-version;.tar.gz">
|
2022-10-13 23:09:55 +08:00
|
|
|
<!ENTITY pluggy-download-ftp " ">
|
2023-02-01 08:02:12 +08:00
|
|
|
<!ENTITY pluggy-md5sum "&pluggy-md5sum;">
|
2022-10-14 22:21:43 +08:00
|
|
|
<!ENTITY pluggy-size "50 KB">
|
2022-11-04 19:24:09 +08:00
|
|
|
<!ENTITY pluggy-buildsize "636 KB (add 26 MB for tests)">
|
|
|
|
<!ENTITY pluggy-time "less than 0.1 SBU (with tests)">
|
2022-10-13 23:09:55 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect2 id="pluggy" xreflabel="pluggy-&pluggy-version;">
|
|
|
|
|
|
|
|
<title>Pluggy-&pluggy-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="pluggy">
|
|
|
|
<primary sortas="a-pluggy">pluggy</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect3 role="package">
|
|
|
|
<title>Introduction to Pluggy Module</title>
|
|
|
|
|
|
|
|
<para>
|
2022-10-14 22:21:43 +08:00
|
|
|
The <application>Pluggy</application> package gives users the ability
|
|
|
|
to extend or modify the behaviour of a host program by installing a
|
|
|
|
plugin for that program. The plugin code will run as part of normal
|
|
|
|
program execution, changing or enhancing certain aspects of it. In
|
|
|
|
essence, <application>pluggy</application> enables function hooking
|
|
|
|
so a user can build <quote>pluggable</quote> systems.
|
2022-10-13 23:09:55 +08:00
|
|
|
</para>
|
|
|
|
|
2023-08-16 06:21:31 +08:00
|
|
|
&lfs120_checked;
|
2022-10-13 23:09:55 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&pluggy-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&pluggy-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &pluggy-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &pluggy-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &pluggy-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &pluggy-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2022-10-14 22:21:43 +08:00
|
|
|
<bridgehead renderas="sect4">Pluggy Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect5">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="setuptools_scm"/>
|
|
|
|
</para>
|
|
|
|
|
2022-10-16 15:58:22 +08:00
|
|
|
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="pytest"/> and
|
|
|
|
<ulink url="https://pypi.org/project/pytest-benchmark/">pytest-benchmark</ulink>
|
|
|
|
</para>
|
2022-10-14 22:21:43 +08:00
|
|
|
|
2022-10-13 23:09:55 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="installation">
|
|
|
|
<title>Installation of Pluggy</title>
|
|
|
|
|
|
|
|
<para>Build the module: </para>
|
|
|
|
|
2023-09-11 10:14:32 +08:00
|
|
|
&build-wheel;
|
2022-10-13 23:09:55 +08:00
|
|
|
|
|
|
|
<para>
|
2022-10-16 15:58:22 +08:00
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
2022-10-13 23:09:55 +08:00
|
|
|
</para>
|
|
|
|
|
2023-09-11 10:14:32 +08:00
|
|
|
<screen role="root"><userinput>&install-wheel; pluggy</userinput></screen>
|
2022-10-16 15:58:22 +08:00
|
|
|
|
2022-10-13 23:09:55 +08:00
|
|
|
<para>
|
2022-10-16 15:58:22 +08:00
|
|
|
Assuming <xref linkend="pytest"/> is installed, but the other optional
|
|
|
|
dependencies are not, the installation can be tested with the following
|
|
|
|
commands:
|
2022-10-13 23:09:55 +08:00
|
|
|
</para>
|
|
|
|
|
2022-10-16 15:58:22 +08:00
|
|
|
<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &&
|
|
|
|
source testenv/bin/activate &&
|
|
|
|
pip3 install pytest-benchmark &&
|
|
|
|
python3 /usr/bin/pytest<!-- no && in case there is an error -->
|
|
|
|
deactivate</userinput></screen>
|
2022-10-13 23:09:55 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../../xincludes/pip3-cmd-explain.xml"/>
|
|
|
|
|
|
|
|
<sect3 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/lib/python&python3-majorver;/site-packages/pluggy and
|
|
|
|
/usr/lib/python&python3-majorver;/site-packages/pluggy-&pluggy-version;.dist-info
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|