Ignore:
Timestamp:
10/16/2022 07:58:22 AM (22 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 12.0, 12.1, 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/llvm18, xry111/spidermonkey128, xry111/xf86-video-removal
Children:
74434cc
Parents:
114f6db9
Message:

Add tests for some python deps and a few fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/python-dependencies/flit_core.xml

    r114f6db9 ref6402e  
    6666      </itemizedlist>
    6767
     68      <bridgehead renderas="sect4">Flit_core Dependencies</bridgehead>
     69
     70      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     71      <para role="optional">
     72        <xref linkend="pytest"/> and
     73        <ulink url="https://pypi.org/project/testpath/">testpath</ulink>
     74      </para>
     75
    6876    </sect3>
    6977
    7078    <sect3 role="installation">
    71       <title>Installation of flit_core</title>
     79      <title>Installation of Flit_core</title>
    7280
    7381      <para>
     
    7886
    7987    <para>
    80       This package does not come with a test suite.
    81     </para>
    82 
    83     <para>
    8488      Now, as the <systemitem class="username">root</systemitem> user:
    8589    </para>
    8690
    8791<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user flit_core</userinput></screen>
     92
     93    <para>
     94      Assuming <xref linkend="pytest"/> is installed, but the other optional
     95      dependencies are not, the installation can be tested with the following
     96      commands:
     97    </para>
     98
     99<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
     100source testenv/bin/activate                    &amp;&amp;
     101pip3 install testpath                          &amp;&amp;
     102python3 /usr/bin/pytest<!-- no && in case there is an error -->
     103deactivate</userinput></screen>
    88104
    89105    </sect3>
Note: See TracChangeset for help on using the changeset viewer.