- Timestamp:
- 10/15/2022 09:48:33 PM (2 years ago)
- Branches:
- 11.3, 12.0, 12.1, 12.2, gimp3, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128, xry111/xf86-video-removal
- Children:
- ef6402e
- Parents:
- 7775697
- Location:
- general/prog
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/python-dependencies/Babel.xml
r7775697 r114f6db9 74 74 </para> 75 75 76 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 77 <para role="optional"> 78 <xref linkend="pytest"/>, 79 <ulink url="https://pypi.org/project/freezegun/">freezegun</ulink>==0.3.12, and 80 <ulink url="https://pypi.org/project/pytest-cov/">pytest-cov</ulink> 81 </para> 82 76 83 </sect3> 77 84 … … 91 98 92 99 <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Babel</userinput></screen> 100 101 <para> 102 Assuming <xref linkend="pytest"/> is installed, but the other optional 103 dependencies are not, the installation can be tested with the following 104 commands: 105 </para> 106 107 <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv && 108 source testenv/bin/activate && 109 pip3 install pytest-cov freezegun==0.3.12 && 110 python3 /usr/bin/pytest && 111 deactivate</userinput></screen> 112 113 <para> 114 One test involving zh_TW locale is known to fail. 115 </para> 93 116 94 117 </sect3> -
general/prog/python-dependencies/attrs.xml
r7775697 r114f6db9 66 66 </itemizedlist> 67 67 68 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 69 <para role="optional"> 70 <xref linkend="pytest"/>, 71 <ulink url="https://pypi.org/project/coverage/">coverage[toml]</ulink>, 72 <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>, 73 <ulink url="https://pypi.org/project/Pympler/">Pympler</ulink>, 74 <ulink url="https://pypi.org/project/mypy/">mypy</ulink>, 75 <ulink url="https://pypi.org/project/pytest-mypy-plugins/">pytest-mypy-plugins</ulink>, 76 <ulink url="https://pypi.org/project/zope.interface/">zope.interface</ulink>, and 77 <ulink url="https://pypi.org/project/cloudpickle/">cloudpickle</ulink> 78 </para> 79 68 80 </sect3> 69 81 … … 76 88 77 89 <para> 78 This package does not come with a test suite.79 </para>80 81 <para>82 90 Now, as the <systemitem class="username">root</systemitem> user: 83 91 </para> 84 92 85 93 <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user attrs</userinput></screen> 94 95 <para> 96 To test the installation, run: 97 </para> 98 99 <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv && 100 source testenv/bin/activate && 101 pip3 install attrs[tests] && 102 python3 /usr/bin/pytest tests && 103 deactivate</userinput></screen> 86 104 87 105 </sect3> -
general/prog/python-dependencies/pytz.xml
r7775697 r114f6db9 68 68 <bridgehead renderas="sect4">Pytz dependencies</bridgehead> 69 69 70 <bridgehead renderas="sect5"> Recommended</bridgehead>71 <para role=" recommended">72 <xref linkend=" rsync"/> (used in the build instructions)70 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 71 <para role="optional"> 72 <xref linkend="pytest"/> 73 73 </para> 74 74 … … 85 85 86 86 <para> 87 This package does not come with a test suite.88 </para>89 90 <para>91 87 Now, as the <systemitem class="username">root</systemitem> user: 92 88 </para> 93 89 94 90 <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user pytz</userinput></screen> 91 92 <para> 93 To test the installation, run <command>pytest pytz/tests</command>. 94 </para> 95 95 96 96 </sect3> -
general/prog/python-modules/pytest.xml
r7775697 r114f6db9 5 5 %general-entities; 6 6 7 <!ENTITY pytest-download-http "https:// github.com/pytest-dev/pytest/archive/refs/tags/&pytest-version;/pytest-&pytest-version;.tar.gz">7 <!ENTITY pytest-download-http "https://files.pythonhosted.org/packages/source/p/pytest/pytest-&pytest-version;.tar.gz"> 8 8 <!ENTITY pytest-download-ftp " "> 9 <!ENTITY pytest-md5sum " d9e98570d8b8822af4b39576f8f86abc">9 <!ENTITY pytest-md5sum "c4de3e192e5bb4b39deada36cc2f393a"> 10 10 <!ENTITY pytest-size "1.2 MB"> 11 11 <!ENTITY pytest-buildsize "2.6 MB"> … … 83 83 </para> 84 84 85 <bridgehead renderas="sect5">Optional ( runtime)</bridgehead>85 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 86 86 <para role="optional"> 87 <xref linkend=" docbook-xsl"/>,88 <xref linkend=" fop"/>,89 < xref linkend="libxslt"/>,90 < xref linkend="lynx"/>,91 <ulink url="https:// sourceforge.net/projects/dblatex/">dblatex</ulink>, and92 <ulink url=" &w3m-url;">W3m</ulink>87 <xref linkend="pygments"/>, 88 <xref linkend="requests"/>, 89 <ulink url="https://pypi.org/project/argcomplete/">argcomplete</ulink>, 90 <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>, 91 <ulink url="https://pypi.org/project/nose/">nose</ulink>, and 92 <ulink url="https://pypi.org/project/xmlschema/">xmlschema</ulink> 93 93 </para> 94 94 … … 127 127 <seglistitem> 128 128 <seg> 129 pytest 129 pytest and py.test (different files but with same content) 130 130 </seg> 131 131 <seg>None</seg> 132 132 <seg> 133 /usr/lib/python&python3-majorver;/site-packages/pytest and 133 /usr/lib/python&python3-majorver;/site-packages/_pytest, 134 /usr/lib/python&python3-majorver;/site-packages/pytest, and 134 135 /usr/lib/python&python3-majorver;/site-packages/pytest-&pytest-version;.dist-info 135 136 </seg> 136 137 </seglistitem> 137 138 </segmentedlist> 138 <!-- 139 139 140 <variablelist> 140 141 <bridgehead renderas="sect5">Short Descriptions</bridgehead> … … 142 143 <?dbhtml list-presentation="table"?> 143 144 144 <varlistentry id="a2x">145 <term><command>a2x</command></term>146 <listitem>147 <para>148 is a toolchain manager for AsciiDoc149 (converts Asciidoc text files to other file formats)150 </para>151 <indexterm zone="pytest a2x">152 <primary sortas="b-a2x">a2x</primary>153 </indexterm>154 </listitem>155 </varlistentry>156 157 145 <varlistentry id="pytest-prog"> 158 146 <term><command>pytest</command></term> 159 147 <listitem> 160 148 <para> 161 converts an AsciiDoc text file to HTML or DocBook 149 sets up, manages, and/or runs test in python module source 150 directories 162 151 </para> 163 152 <indexterm zone="pytest pytest-prog"> … … 168 157 169 158 </variablelist> 170 --> 159 171 160 </sect3> 172 161 -
general/prog/python-modules/requests.xml
r7775697 r114f6db9 76 76 </para> 77 77 78 <bridgehead renderas="sect5">Optional</bridgehead> 79 <para role="optional"> 80 <ulink url="https://pypi.org/project/PySocks/">PySocks</ulink> (also needed for testing) 81 </para> 82 83 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 84 <para role="optional"> 85 <xref linkend="pytest"/>, 86 <ulink url="https://pypi.org/project/Flask/">Flask</ulink><2, 87 <ulink url="https://pypi.org/project/httpbin/">httpbin</ulink>, 88 <ulink url="https://pypi.org/project/MarkupSafe/">MarkupSafe</ulink><2.1, 89 <ulink url="https://pypi.org/project/pytest-mock/">pytest-mock</ulink>, 90 <ulink url="https://pypi.org/project/pytest-httpbin/">pytest-httpbin</ulink>, 91 <ulink url="https://pypi.org/project/trustme/">trustme</ulink>, and 92 <ulink url="https://pypi.org/project/Werkzeug/">Werkzeug</ulink><2 93 </para> 94 78 95 </sect3> 79 96 … … 86 103 87 104 <para> 88 This package does not come with a test suite.89 </para>90 91 <para>92 105 Now, as the <systemitem class="username">root</systemitem> user: 93 106 </para> 94 107 95 108 <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user requests</userinput></screen> 109 110 <para> 111 Assuming <xref linkend="pytest"/> is installed, but the other optional 112 dependencies are not, the installation can be tested with the following 113 commands: 114 </para> 115 116 <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv && 117 source testenv/bin/activate && 118 pip3 install pytest-mock \ 119 werkzeug\<2 \ 120 flask\<2 \ 121 pytest-httpbin \ 122 pysocks \ 123 trustme && 124 pip3 install --force-reinstall Markupsafe\<2.1 && 125 python3 /usr/bin/pytest tests && 126 deactivate</userinput></screen> 96 127 97 128 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.