glfs/general/prog/python-dependencies/Babel.xml

160 lines
4.8 KiB
XML
Raw Normal View History

<?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 babel-download-http "https://files.pythonhosted.org/packages/source/B/Babel/Babel-&babel-version;.tar.gz">
2022-09-30 22:25:05 +08:00
<!ENTITY babel-download-ftp " ">
2022-10-30 05:05:49 +08:00
<!ENTITY babel-md5sum "809ed21b4f643167d0f6f5e936bbfbdc">
2022-10-14 21:03:28 +08:00
<!ENTITY babel-size "8.9 MB">
2022-09-30 22:25:05 +08:00
<!ENTITY babel-buildsize "2.6 MB">
<!ENTITY babel-time "less than 0.1 SBU">
]>
2022-10-14 21:03:28 +08:00
<sect2 id="babel" xreflabel="Babel-&babel-version;">
2022-09-30 22:25:05 +08:00
<title>Babel-&babel-version;</title>
2022-09-30 22:25:05 +08:00
<indexterm zone="babel">
2022-10-14 21:03:28 +08:00
<primary sortas="a-Babel">Babel</primary>
</indexterm>
<sect3 role="package">
2022-09-30 22:25:05 +08:00
<title>Introduction to Babel Module</title>
<para>
2022-10-14 21:03:28 +08:00
The <application>Babel</application> package is an integrated
2022-09-30 22:25:05 +08:00
collection of utilities that assist in internationalizing and
localizing Python applications, with an emphasis on web-based
applications.
</para>
&lfs112_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download (HTTP): <ulink url="&babel-download-http;"/>
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download (FTP): <ulink url="&babel-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download MD5 sum: &babel-md5sum;
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download size: &babel-size;
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Estimated disk space required: &babel-buildsize;
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Estimated build time: &babel-time;
</para>
</listitem>
</itemizedlist>
2022-10-03 04:50:11 +08:00
<bridgehead renderas="sect4">Babel Dependencies</bridgehead>
2022-09-30 22:25:05 +08:00
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="pytz"/>
</para>
2022-10-16 05:48:33 +08:00
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
<para role="optional">
<xref linkend="pytest"/>,
<ulink url="https://pypi.org/project/freezegun/">freezegun</ulink>==0.3.12, and
<ulink url="https://pypi.org/project/pytest-cov/">pytest-cov</ulink>
</para>
</sect3>
<sect3 role="installation">
2022-09-30 22:25:05 +08:00
<title>Installation of Babel</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>
2022-10-14 21:03:28 +08:00
<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Babel</userinput></screen>
2022-10-16 05:48:33 +08:00
<para>
Assuming <xref linkend="pytest"/> is installed, but the other optional
dependencies are not, the installation can be tested with the following
commands:
</para>
<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
source testenv/bin/activate &amp;&amp;
pip3 install pytest-cov freezegun==0.3.12 &amp;&amp;
python3 /usr/bin/pytest<!-- no && because of the error -->
2022-10-16 05:48:33 +08:00
deactivate</userinput></screen>
<para>
One test involving zh_TW locale is known to fail.
</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>
2022-09-30 22:25:05 +08:00
pybabel
</seg>
<seg>None</seg>
<seg>
2022-09-30 22:25:05 +08:00
/usr/lib/python&python3-majorver;/site-packages/babel and
/usr/lib/python&python3-majorver;/site-packages/Babel-&babel-version;.dist-info
</seg>
</seglistitem>
</segmentedlist>
2022-09-30 22:25:05 +08:00
<variablelist>
<bridgehead renderas="sect5">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
2022-09-30 22:25:05 +08:00
<varlistentry id="pybabel">
<term><command>pybabel</command></term>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
is a command-line interface for working with message
catalogs
</para>
2022-09-30 22:25:05 +08:00
<indexterm zone="babel pybabel">
<primary sortas="b-pybabel">pybabel</primary>
</indexterm>
</listitem>
</varlistentry>
2022-10-03 04:50:11 +08:00
</variablelist>
</sect3>
</sect2>