glfs/general/prog/python-modules/cssselect.xml
Ken Moffat 5a434ec758 Modules for inkscape - add cssselect.
All the docs refer to it as lowercase, so I have used CSSSelect
for titlecase.
2023-02-26 16:48:05 +00:00

124 lines
3.5 KiB
XML

<?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;
<!ENTITY cssselect-download-http "https://files.pythonhosted.org/packages/source/c/cssselect/cssselect-&cssselect-version;.tar.gz">
<!ENTITY cssselect-download-ftp " ">
<!ENTITY cssselect-md5sum "&cssselect-md5sum;">
<!ENTITY cssselect-size "1.2 MB">
<!ENTITY cssselect-buildsize "512 KB (add 488 KB for tests)">
<!ENTITY cssselect-time "less than 0.1 SBU">
]>
<sect2 id="cssselect" xreflabel="cssselect-&cssselect-version;">
<title>CSSSelect-&cssselect-version;</title>
<indexterm zone="cssselect">
<primary sortas="a-cssselect">cssselect</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to CSSSelect Module</title>
<para>
<application>CSSSelect</application> provides CSS selectors
for Python.
</para>
&lfs113_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&cssselect-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&cssselect-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &cssselect-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &cssselect-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &cssselect-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &cssselect-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">CSSSelect Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="setuptools_scm"/>
</para>
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
<para role="optional">
<xref linkend="pytest"/>,
<xref linkend="pluggy"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of CSSSelect</title>
<para> Build the module: </para>
<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user cssselect</userinput></screen>
<para>
To test the installation issue <command>pytest</command>.
</para>
</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/cssselect
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>