glfs/general/prog/python-modules/cachecontrol.xml
Ken Moffat 381cfd1854 Attempt to add CacheControl and its dep.
CacheControl is used an inkscape clipart file, and in an inkman
file for searching for external packages and getting meta data
about them.

Unfortunately, I cannot find a working link.  When I go to
https://pypi.org/project/CacheControl/#files and click on the
link for CacheControl-0.12.11.tar.gz I get a good download,
but if I mouse over that to read where it points to I get
a very long link which starts
 https://files.pythonhosted.org/packages/49/9b/
followed by \n unfeasibly long hash which only remains visible
while my mouse is on the link.

Trying to point to c/CacheControl fails.

Current upstream has v0.12.12 but there is at least one issue for
why that might not be at pythonhosted, and trying to link to the
tag for 0.12.11 (there are no releases there) fails.
2023-02-26 20:58:24 +00:00

158 lines
5.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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;
<!-- cannot access, page for 0.12.11 has unreadably long hashes and I cannot paste it
<!ENTITY cachecontrol-download-http "https://files.pythonhosted.org/packages/source/c/CacheControl/CacheControl-&cachecontrol-version;.tar.gz">
Latest version is 0.12.12 but NOT at pypi, has at least one issue
https://github.com/ionrock/cachecontrol/issues/285 -->
<!ENTITY cachecontrol-download-http "https://github.com/ionrock/cachecontrol/cachecontrol/archive/refs/tags/v&cachecontrol-version;.tar.gz">
<!ENTITY cachecontrol-download-ftp " ">
<!ENTITY cachecontrol-md5sum "&cachecontrol-md5sum;">
<!ENTITY cachecontrol-size "17 KB">
<!ENTITY cachecontrol-buildsize "468 KB">
<!ENTITY cachecontrol-time "less than 0.1 SBU">
]>
<sect2 id="cachecontrol" xreflabel="CacheControl-&cachecontrol-version;">
<title>CacheControl-&cachecontrol-version;</title>
<indexterm zone="cachecontrol">
<primary sortas="a-cachecontrol">cachecontrol</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to CacheControl Module</title>
<para>
<application>CacheControl</application> is a port of the caching
algorithms in httplib2 for use with requests session object. It was
written because httplib2s better support for caching is often
mitigated by its lack of thread safety. The same is true of requests
in terms of caching.
</para>
&lfs113_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&cachecontrol-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&cachecontrol-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &cachecontrol-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &cachecontrol-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &cachecontrol-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &cachecontrol-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">CacheControl Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="msgpack"/>,
<xref linkend="requests"/>
</para>
<!-- commented in case fixed in newer version
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
<para role="optional">
<xref linkend="pluggy"/>,
<xref linkend="pytests"/>
</para> -->
</sect3>
<sect3 role="installation">
<title>Installation of CacheControl</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 cachecontrol</userinput></screen>
<para>
<!-- tests run with plain 'pytest', but 0 items are selected,
resulting in non-zero status -->
This module does not have a working test suite.
</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>
doesitcache
</seg>
<seg>None</seg>
<seg>
/usr/lib/python&python3-majorver;/site-packages/CacheControl-&cachecontrol-version;.dist-info,
/usr/lib/python&python3-majorver;/site-packages/cachecontrol
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect5">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="doesitcache">
<term><command>doesitcache</command></term>
<listitem>
<para>
is an undocumented command line script.
<!-- debian patch this out as undocumented and unnecessary -->
</para>
<indexterm zone="cachecontrol">
<primary sortas="b-cachecontrol">doesitcache</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>