mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
Remove toml and tomli python module dependencies
They are not needed anymore. All modules now use tomllib from the core python library.
This commit is contained in:
parent
a3fb37f612
commit
658a4b405c
@ -168,16 +168,6 @@
|
||||
<xref linkend="sc-serializinghtml"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<xref linkend="toml"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<xref linkend="tomli"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<xref linkend="typing_extensions"/>
|
||||
@ -272,12 +262,6 @@
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="python-dependencies/sphinxcontrib-serializinghtml.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="python-dependencies/toml.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="python-dependencies/tomli.xml"/>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="python-dependencies/typing_extensions.xml"/>
|
||||
|
||||
|
@ -1,129 +0,0 @@
|
||||
<?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 toml-download-http "https://files.pythonhosted.org/packages/source/t/toml/toml-&toml-version;.tar.gz">
|
||||
<!ENTITY toml-download-ftp " ">
|
||||
<!ENTITY toml-md5sum "59bce5d8d67e858735ec3f399ec90253">
|
||||
<!ENTITY toml-size "22 KB">
|
||||
<!ENTITY toml-buildsize "588 KB (add 101 MB for tests)">
|
||||
<!ENTITY toml-time "less than 0.1 SBU (with tests)">
|
||||
]>
|
||||
|
||||
<sect2 id="toml" xreflabel="toml-&toml-version;">
|
||||
|
||||
<title>Toml-&toml-version;</title>
|
||||
|
||||
<indexterm zone="toml">
|
||||
<primary sortas="a-toml">toml</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3 role="package">
|
||||
<title>Introduction to Toml Module</title>
|
||||
|
||||
<para>
|
||||
The <application>Toml</application> library is used for parsing
|
||||
and creating TOML files.
|
||||
</para>
|
||||
|
||||
&lfs112_checked;
|
||||
|
||||
<bridgehead renderas="sect4">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&toml-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&toml-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download MD5 sum: &toml-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download size: &toml-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated disk space required: &toml-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated build time: &toml-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect4">Toml Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
||||
<para role="optional">
|
||||
<xref linkend="pytest"/> and
|
||||
<ulink url="https://pypi.org/project/numpy/">numpy</ulink>
|
||||
</para>
|
||||
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3 role="installation">
|
||||
<title>Installation of Toml</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 toml</userinput></screen>
|
||||
|
||||
<para>
|
||||
Assuming <xref linkend="pytest"/> is installed and the other optional
|
||||
dependency is not, the installation can be tested with (some test
|
||||
files need to be downloaded from github):
|
||||
</para>
|
||||
|
||||
<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &&
|
||||
source testenv/bin/activate &&
|
||||
pip3 install numpy &&
|
||||
git clone https://github.com/BurntSushi/toml-test.git &&
|
||||
python3 /usr/bin/pytest<!-- no && because of a possible error -->
|
||||
deactivate</userinput></screen>
|
||||
|
||||
</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/toml and
|
||||
/usr/lib/python&python3-majorver;/site-packages/toml-&toml-version;.dist-info
|
||||
</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
</sect3>
|
||||
|
||||
</sect2>
|
@ -1,119 +0,0 @@
|
||||
<?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 tomli-download-http "https://files.pythonhosted.org/packages/source/t/tomli/tomli-&tomli-version;.tar.gz">
|
||||
<!ENTITY tomli-download-ftp " ">
|
||||
<!ENTITY tomli-md5sum "d4341621d423a7ca6822e23d6d52bb9a">
|
||||
<!ENTITY tomli-size "15 KB">
|
||||
<!ENTITY tomli-buildsize "260 KB">
|
||||
<!ENTITY tomli-time "less than 0.1 SBU">
|
||||
]>
|
||||
|
||||
<sect2 id="tomli" xreflabel="tomli-&tomli-version;">
|
||||
|
||||
<title>Tomli-&tomli-version;</title>
|
||||
|
||||
<indexterm zone="tomli">
|
||||
<primary sortas="a-tomli">tomli</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3 role="package">
|
||||
<title>Introduction to Tomli Module</title>
|
||||
|
||||
<para>
|
||||
<application>Tomli</application> is a python library for parsing
|
||||
TOML format.
|
||||
</para>
|
||||
|
||||
&lfs112_checked;
|
||||
|
||||
<bridgehead renderas="sect4">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&tomli-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&tomli-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download MD5 sum: &tomli-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download size: &tomli-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated disk space required: &tomli-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated build time: &tomli-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect4">Tomli Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect5">Required</bridgehead>
|
||||
<para role="required">
|
||||
<xref linkend="flit_core"/>
|
||||
</para>
|
||||
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3 role="installation">
|
||||
<title>Installation of Tomli</title>
|
||||
|
||||
<para>Build the module: </para>
|
||||
|
||||
<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
||||
|
||||
<para>
|
||||
This package does not come with a test suite.
|
||||
</para>
|
||||
|
||||
<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 tomli</userinput></screen>
|
||||
|
||||
</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/tomli and
|
||||
/usr/lib/python&python3-majorver;/site-packages/tomli-&tomli-version;.dist-info
|
||||
</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
</sect3>
|
||||
|
||||
</sect2>
|
Loading…
Reference in New Issue
Block a user