Changeset ab3ae35a


Ignore:
Timestamp:
12/12/2022 11:09:06 PM (17 months ago)
Author:
Ken Moffat <ken@…>
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:
3bdc4eb
Parents:
89a8d9a
Message:

python-modules: patch Requests to be able to use system certs.

Files:
4 edited

Legend:

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

    r89a8d9a rab3ae35a  
    7474      <listitem>
    7575        <para>
    76           <xref linkend="certifi"/>
    77         </para>
    78       </listitem>
    79       <listitem>
    80         <para>
    8176          <xref linkend="charset-normalizer"/>
    8277        </para>
  • general/prog/python-dependencies/pythonhosted.xml

    r89a8d9a rab3ae35a  
    110110    <screen><userinput>cat &gt; pythonhosted-files.md5 &lt;&lt; "EOF"
    111111<literal>3591827fde96d1dd23970fb05410ed04  alabaster-0.7.12.tar.gz
    112 ff9c8d5c7e7fb083de6b874609c5ca68  certifi-2022.9.24.tar.gz
    1131124332ddc7bbee0f344a03915b2ad59a54  snowballstemmer-2.2.0.tar.gz
    114113b1d2ed6592bbdf6002ef52b4ab8e2efe  pytz-2022.4.tar.gz
  • general/prog/python-modules/requests.xml

    r89a8d9a rab3ae35a  
    6666      </itemizedlist>
    6767
     68    <bridgehead renderas="sect3">Recommended Additional Download</bridgehead>
     69    <itemizedlist spacing="compact">
     70      <listitem>
     71        <para>
     72          Recommended patch: <ulink
     73          url="&patch-root;/requests-&requests-version;-use_system_certs-1.patch"/>
     74        </para>
     75      </listitem>
     76    </itemizedlist>
    6877      <bridgehead renderas="sect4">Requests Dependencies</bridgehead>
    6978
    7079      <bridgehead renderas="sect5">Required</bridgehead>
    7180      <para role="required">
    72         <xref linkend="certifi"/>,
    7381        <xref linkend="charset-normalizer"/>,
    7482        <xref linkend="idna"/>, and
    7583        <xref linkend="urllib3"/>
     84      </para>
     85
     86      <bridgehead renderas="sect5">Recommended</bridgehead>
     87      <para role="recommended">
     88        <xref linkend="make-ca"/>, with
     89        <xref linkend="p11-kit"/> (both needed to use system https: certificates,
     90        removing an unnecessary dependency on the <application>Certifi</application>
     91        module).
    7692      </para>
    7793
     
    97113    <sect3 role="installation">
    98114      <title>Installation of Requests</title>
     115
     116    <para>
     117      First apply a patch so that the same environment variable already used to
     118      point to system certificates in <application>Python3</application> following
     119      the installation of <application>make-ca</application> can also be used by
     120      this module:
     121    </para>
     122
     123<screen><userinput>patch -Np1 -i ../requests-&requests-version;-use_system_certs-1.patch</userinput></screen>
    99124
    100125    <para> Build the module: </para>
     
    126151deactivate</userinput></screen>
    127152
     153    <note>
     154      <para>
     155        See <xref linkend="make-ca"/> for how to set the environment variable,
     156        and for how local copies of the Certifi and Requests modules installed
     157        in a virtual environment <emphasis>will</emphasis> override the system
     158        certificates.
     159      </para>
     160    </note>
     161
    128162    </sect3>
    129163
  • introduction/welcome/changelog.xml

    r89a8d9a rab3ae35a  
    4040    -->
    4141    <listitem>
     42      <para>December 12th, 2022</para>
     43      <itemizedlist>
     44        <listitem>
     45          <para>[ken] - Patch python module Requests to use the same
     46          environment variable as Pip to access system certificates,
     47          therefore remove the unneeded dependency of Certifi.</para>
     48        </listitem>
     49      </itemizedlist>
     50    </listitem>
     51
     52    <listitem>
    4253      <para>December 11th, 2022</para>
    4354      <itemizedlist>
Note: See TracChangeset for help on using the changeset viewer.