Changeset ef6402e


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

Add tests for some python deps and a few fixes

Location:
general/prog/python-dependencies
Files:
9 edited

Legend:

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

    r114f6db9 ref6402e  
    9090
    9191    <para>
    92       This package does not come with a test suite.
    93     </para>
    94 
    95     <para>
    9692      Now, as the <systemitem class="username">root</systemitem> user:
    9793    </para>
     
    108104source testenv/bin/activate                    &amp;&amp;
    109105pip3 install pytest-cov freezegun==0.3.12      &amp;&amp;
    110 python3 /usr/bin/pytest                        &amp;&amp;
     106python3 /usr/bin/pytest<!-- no && because of the error -->
    111107deactivate</userinput></screen>
    112108
  • general/prog/python-dependencies/certifi.xml

    r114f6db9 ref6402e  
    7070
    7171    <sect3 role="installation">
    72       <title>Installation of Packaging</title>
     72      <title>Installation of Certifi</title>
    7373
    7474    <para> Build the module: </para>
  • general/prog/python-dependencies/charset-normalizer.xml

    r114f6db9 ref6402e  
    6565      </itemizedlist>
    6666
     67      <bridgehead renderas="sect4">Charset-normalizer Dependencies</bridgehead>
     68
     69      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     70      <para role="optional">
     71        <xref linkend="pytest"/> and
     72        <ulink url="https://pypi.org/project/pytest-cov/">pytest-cov</ulink>
     73      </para>
     74
    6775    </sect3>
    6876
     
    7583
    7684    <para>
    77       This package does not come with a test suite.
    78     </para>
    79 
    80     <para>
    8185      Now, as the <systemitem class="username">root</systemitem> user:
    8286    </para>
    8387
    8488<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user charset-normalizer</userinput></screen>
     89
     90    <para>
     91      Assuming <xref linkend="pytest"/> is installed, but the other optional
     92      dependencies are not, the installation can be tested with the following
     93      commands:
     94    </para>
     95
     96<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
     97source testenv/bin/activate                    &amp;&amp;
     98pip3 install pytest-cov                        &amp;&amp;
     99python3 /usr/bin/pytest<!-- no && because of a possible error -->
     100deactivate</userinput></screen>
    85101
    86102    </sect3>
  • 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>
  • general/prog/python-dependencies/idna.xml

    r114f6db9 ref6402e  
    6666      </itemizedlist>
    6767
    68       <bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
     68      <bridgehead renderas="sect4">Idna Dependencies</bridgehead>
    6969
    7070      <bridgehead renderas="sect5">Required</bridgehead>
    7171      <para role="required">
    7272        <xref linkend="flit_core"/>
     73      </para>
     74
     75      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     76      <para role="optional">
     77        <xref linkend="pytest"/>
    7378      </para>
    7479
     
    8388
    8489    <para>
    85       This package does not come with a test suite.
    86     </para>
    87 
    88     <para>
    8990      Now, as the <systemitem class="username">root</systemitem> user:
    9091    </para>
    9192
    9293<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user idna</userinput></screen>
     94
     95    <para>
     96      To test the installation, run <command>pytest</command>.
     97    </para>
    9398
    9499    </sect3>
  • general/prog/python-dependencies/imagesize.xml

    r114f6db9 ref6402e  
    6666      </itemizedlist>
    6767
     68      <bridgehead renderas="sect4">Imagesize Dependencies</bridgehead>
     69
     70      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     71      <para role="optional">
     72        <xref linkend="pytest"/>
     73      </para>
     74
    6875    </sect3>
    6976
     
    7683
    7784    <para>
    78       This package does not come with a test suite.
    79     </para>
    80 
    81     <para>
    8285      Now, as the <systemitem class="username">root</systemitem> user:
    8386    </para>
    8487
    8588<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user imagesize</userinput></screen>
     89
     90    <para>
     91      To test the installation, run <command>pytest</command>.
     92    </para>
    8693
    8794    </sect3>
  • general/prog/python-dependencies/iniconfig.xml

    r114f6db9 ref6402e  
    2525
    2626      <para>
    27         <application>Iniconfig</application> iniconfig is a small and simple
     27        <application>Iniconfig</application> is a small and simple
    2828        INI-file parser module.
    2929      </para>
     
    7272      </para>
    7373
     74      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     75      <para role="optional">
     76        <xref linkend="pytest"/>
     77      </para>
     78
    7479    </sect3>
    7580
     
    8287
    8388    <para>
    84       This package does not come with a test suite.
    85     </para>
    86 
    87     <para>
    8889      Now, as the <systemitem class="username">root</systemitem> user:
    8990    </para>
    9091
    9192<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user iniconfig</userinput></screen>
     93
     94    <para>
     95      To test the installation, run <command>pytest</command>.
     96    </para>
    9297
    9398    </sect3>
  • general/prog/python-dependencies/packaging.xml

    r114f6db9 ref6402e  
    7474      </para>
    7575
     76      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     77      <para role="optional">
     78        <xref linkend="pytest"/> and
     79        <ulink url="https://pypi.org/project/pretend/">pretend</ulink>
     80      </para>
     81
     82
    7683    </sect3>
    7784
     
    8491
    8592    <para>
    86       This package does not come with a test suite.
    87     </para>
    88 
    89     <para>
    9093      Now, as the <systemitem class="username">root</systemitem> user:
    9194    </para>
    9295
    9396<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user packaging</userinput></screen>
     97
     98    <para>
     99      Assuming <xref linkend="pytest"/> is installed, but the other optional
     100      dependencies are not, the installation can be tested with the following
     101      commands:
     102    </para>
     103
     104<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
     105source testenv/bin/activate                    &amp;&amp;
     106pip3 install pretend                           &amp;&amp;
     107python3 /usr/bin/pytest<!-- no && because of a possible error -->
     108deactivate</userinput></screen>
    94109
    95110    </sect3>
  • general/prog/python-dependencies/pluggy.xml

    r114f6db9 ref6402e  
    7676      </para>
    7777
     78      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     79      <para role="optional">
     80        <xref linkend="pytest"/> and
     81        <ulink url="https://pypi.org/project/pytest-benchmark/">pytest-benchmark</ulink>
     82      </para>
    7883
    7984    </sect3>
     
    8792
    8893    <para>
    89       This package does not come with a test suite.
    90     </para>
    91 
    92     <para>
    9394      Now, as the <systemitem class="username">root</systemitem> user:
    9495    </para>
    9596
    9697<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user pluggy</userinput></screen>
     98
     99    <para>
     100      Assuming <xref linkend="pytest"/> is installed, but the other optional
     101      dependencies are not, the installation can be tested with the following
     102      commands:
     103    </para>
     104
     105<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
     106source testenv/bin/activate                    &amp;&amp;
     107pip3 install pytest-benchmark                  &amp;&amp;
     108python3 /usr/bin/pytest<!-- no && in case there is an error -->
     109deactivate</userinput></screen>
    97110
    98111    </sect3>
Note: See TracChangeset for help on using the changeset viewer.