1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY trove-classifiers-download-http "https://files.pythonhosted.org/packages/source/t/trove_classifiers/trove_classifiers-&trove-classifiers-version;.tar.gz">
|
---|
8 | <!ENTITY trove-classifiers-download-ftp " ">
|
---|
9 | <!ENTITY trove-classifiers-md5sum "&trove-classifiers-md5sum;">
|
---|
10 | <!ENTITY trove-classifiers-size "16 KB">
|
---|
11 | <!ENTITY trove-classifiers-buildsize "276 KB">
|
---|
12 | <!ENTITY trove-classifiers-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect2 id="trove-classifiers" xreflabel="trove-classifiers-&trove-classifiers-version;">
|
---|
16 |
|
---|
17 | <title>Trove-Classifiers-&trove-classifiers-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="trove-classifiers">
|
---|
20 | <primary sortas="a-trove-classifiers">trove-classifiers</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect3 role="package">
|
---|
24 | <title>Introduction to Trove-Classifiers Module</title>
|
---|
25 |
|
---|
26 | <para>
|
---|
27 | <application>Trove-Classifiers</application> is a Python library
|
---|
28 | to encompass all valid PyPI classifiers used to categorize projects
|
---|
29 | and releases per PEP 301, for example
|
---|
30 | <literal>Topic :: System :: Filesystems</literal> and
|
---|
31 | <literal>Development Status :: 6 - Mature</literal>.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs122_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&trove-classifiers-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&trove-classifiers-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &trove-classifiers-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &trove-classifiers-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &trove-classifiers-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &trove-classifiers-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Trove-Classifiers Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
---|
73 | <para role="optional">
|
---|
74 | <xref linkend="pytest"/>
|
---|
75 | </para>
|
---|
76 | </sect3>
|
---|
77 |
|
---|
78 | <sect3 role="installation">
|
---|
79 | <title>Installation of Trove-Classifiers</title>
|
---|
80 |
|
---|
81 | <para>
|
---|
82 | First, hard code the package version into
|
---|
83 | <filename>setup.py</filename> to work around an issue causing the
|
---|
84 | generated wheel contain incorrect version string when the
|
---|
85 | <application>calver</application> module is not installed:
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <screen><userinput>sed -i '/calver/s/^/#/;$iversion="&trove-classifiers-version;"' setup.py</userinput></screen>
|
---|
89 |
|
---|
90 | <para>Build the module: </para>
|
---|
91 |
|
---|
92 | &build-wheel;
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen role="root"><userinput>&install-wheel; trove-classifiers</userinput></screen>
|
---|
99 |
|
---|
100 | <para>
|
---|
101 | To test the installation, issue: <command>pytest</command>.
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | </sect3>
|
---|
105 |
|
---|
106 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
107 | href="../../../xincludes/pip3-cmd-explain.xml"/>
|
---|
108 |
|
---|
109 | <sect3 role="content">
|
---|
110 | <title>Contents</title>
|
---|
111 |
|
---|
112 | <segmentedlist>
|
---|
113 | <segtitle>Installed Programs</segtitle>
|
---|
114 | <segtitle>Installed Libraries</segtitle>
|
---|
115 | <segtitle>Installed Directories</segtitle>
|
---|
116 |
|
---|
117 | <seglistitem>
|
---|
118 | <seg>None</seg>
|
---|
119 | <seg>None</seg>
|
---|
120 | <seg>
|
---|
121 | /usr/lib/python&python3-majorver;/site-packages/trove_classifiers and
|
---|
122 | /usr/lib/python&python3-majorver;/site-packages/trove_classifiers-&trove-classifiers-version;.dist-info
|
---|
123 | </seg>
|
---|
124 | </seglistitem>
|
---|
125 | </segmentedlist>
|
---|
126 |
|
---|
127 | </sect3>
|
---|
128 |
|
---|
129 | </sect2>
|
---|