Changeset b50114c


Ignore:
Timestamp:
10/07/2022 08:42:06 PM (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:
b3e18015
Parents:
036821b
Message:

More modules

Finished pytz. Begun pyparsing. Fixed packaging.

Files:
4 edited

Legend:

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

    r036821b rb50114c  
    7070
    7171      <bridgehead renderas="sect5">Required</bridgehead>
    72       <para role="optional">
     72      <para role="required">
    7373        <xref linkend="pyparsing"/>
    7474      </para>
  • general/prog/python-dependencies/pyparsing.xml

    r036821b rb50114c  
    55  %general-entities;
    66
    7   <!ENTITY pyparsing-download-http "https://github.com/pypa/pyparsing/releases/download/&pyparsing-version;/pyparsing-&pyparsing-version;.tar.gz">
     7  <!ENTITY pyparsing-download-http "https://github.com/pyparsing/pyparsing/releases/download/pyparsing_&pyparsing-version;/pyparsing-&pyparsing-version;.tar.gz">
    88  <!ENTITY pyparsing-download-ftp  " ">
    9   <!ENTITY pyparsing-md5sum        "e713c1939f294fd729af4a7be40dd141">
    10   <!ENTITY pyparsing-size          "83 KB">
     9  <!ENTITY pyparsing-md5sum        "fadc2f3bf5872bf6310576a86c3566e0">
     10  <!ENTITY pyparsing-size          "1.9 MB">
    1111  <!ENTITY pyparsing-buildsize     "2.6 MB">
    1212  <!ENTITY pyparsing-time          "less than 0.1 SBU">
     
    1515  <sect2 id="pyparsing" xreflabel="pyparsing-&pyparsing-version;">
    1616
    17     <title>Packaging-&pyparsing-version;</title>
     17    <title>pyparsing-&pyparsing-version;</title>
    1818
    1919    <indexterm zone="pyparsing">
     
    2222
    2323    <sect3 role="package">
    24       <title>Introduction to Packaging Module</title>
     24      <title>Introduction to pyparsing Module</title>
    2525
    2626      <para>
    27         The <application>Packaging</application> library provides utilities
    28         that implement the interoperability specifications which have clearly
    29         one correct behaviour or benefit greatly from having a single shared
    30         implementation.
     27        The <application>pyparsing</application> module is an alternative
     28        approach to creating and executing simple grammars, vs. the
     29        traditional lex/yacc approach, or the use of regular expressions.
     30        It provides a library of classes that client code uses to construct
     31        the grammar directly in Python code.
    3132      </para>
    3233
     
    6768      </itemizedlist>
    6869
    69       <bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
     70      <bridgehead renderas="sect4">pyparsing Dependencies</bridgehead>
    7071
    7172      <bridgehead renderas="sect5">Required</bridgehead>
     73      <para role="required">
     74        <xref linkend="flit_core"/>
     75      </para>
     76
     77      <bridgehead renderas="sect5">Optional</bridgehead>
    7278      <para role="optional">
    73         <xref linkend="pyparsing"/>
     79        <xref linkend="Jinja2"/> and
     80        <ulink url="https://pypi.org/project/railroad-diagrams/">railroad-diagrams</ulink>
    7481      </para>
    7582
     
    7784
    7885    <sect3 role="installation">
    79       <title>Installation of Packaging</title>
     86      <title>Installation of pyparsing</title>
    8087
    8188    <para> Build the module: </para>
  • general/prog/python-dependencies/pytz.xml

    r036821b rb50114c  
    55  %general-entities;
    66
    7   <!ENTITY pytz-download-http "https://github.com/pypa/pytz/releases/download/&pytz-version;/pytz-&pytz-version;.tar.gz">
     7  <!ENTITY pytz-download-http "https://github.com/stub42/pytz/archive/refs/tags/release_&pytz-version;/pytz-&pytz-version;.tar.gz">
    88  <!ENTITY pytz-download-ftp  " ">
    9   <!ENTITY pytz-md5sum        "e713c1939f294fd729af4a7be40dd141">
    10   <!ENTITY pytz-size          "83 KB">
     9  <!ENTITY pytz-md5sum        "855307f8455430a3375946970a2177cc">
     10  <!ENTITY pytz-size          "606 KB">
    1111  <!ENTITY pytz-buildsize     "2.6 MB">
    1212  <!ENTITY pytz-time          "less than 0.1 SBU">
     
    1515  <sect2 id="pytz" xreflabel="pytz-&pytz-version;">
    1616
    17     <title>Packaging-&pytz-version;</title>
     17    <title>Pytz-&pytz-version;</title>
    1818
    1919    <indexterm zone="pytz">
     
    2222
    2323    <sect3 role="package">
    24       <title>Introduction to Packaging Module</title>
     24      <title>Introduction to Pytz Module</title>
    2525
    2626      <para>
    27         The <application>Packaging</application> library provides utilities
    28         that implement the interoperability specifications which have clearly
    29         one correct behaviour or benefit greatly from having a single shared
    30         implementation.
     27        The <application>Pytz</application> library brings the IANA tz database
     28        into Python. It allows acuurate and cross-platform timezone
     29        calculations.
    3130      </para>
    3231
     
    6766      </itemizedlist>
    6867
    69       <bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
     68      <bridgehead renderas="sect4">Pytz dependencies</bridgehead>
    7069
    71       <bridgehead renderas="sect5">Required</bridgehead>
    72       <para role="optional">
    73         <xref linkend="pyparsing"/>
     70      <bridgehead renderas="sect5">Recommended</bridgehead>
     71      <para role="recommended">
     72        <xref linkend="rsync"/> (used in the build instructions)
    7473      </para>
    7574
     
    7776
    7877    <sect3 role="installation">
    79       <title>Installation of Packaging</title>
     78      <title>Installation of Pytz</title>
    8079
    81     <para> Build the module: </para>
     80      <para>
     81        Before building the python wheel, the timezone database has to
     82        be compiled:
     83      </para>
    8284
    83 <screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
     85<screen><userinput>make -C tz               \
     86     ZFLAGS='-b fat'     \
     87     PACKRATDATA=        \
     88     TOPDIR=$(pwd)/build \
     89     USRDIR=             \
     90     USRSHAREDIR=etc     \
     91     install             &amp;&amp;
    8492
    85     <para>
    86       This package does not come with a test suite.
    87     </para>
     93for d in zoneinfo zoneinfo-leaps zoneinfo-posix; do       \
     94    rsync -a $(pwd)/build/etc/$d/ $(pwd)/build/etc/$d.tmp &amp;&amp;
     95    rm -rf $(pwd)/build/etc/$d                            &amp;&amp;
     96    mv $(pwd)/build/etc/$d.tmp $(pwd)/build/etc/$d
     97done &amp;&amp;
    8898
    89     <para>
    90       Now, as the <systemitem class="username">root</systemitem> user:
    91     </para>
     99python3 gen_tzinfo.py &amp;&amp;
     100cp -a build/etc/zoneinfo build/dist/pytz/zoneinfo</userinput></screen>
     101   
     102      <para>
     103        Build the module:
     104      </para>
     105
     106<screen><userinput>cd build/dist &amp;&amp;
     107pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
     108
     109      <para>
     110        This package does not come with a test suite.
     111      </para>
     112
     113      <para>
     114        Now, as the <systemitem class="username">root</systemitem> user:
     115      </para>
    92116
    93117<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user pytz</userinput></screen>
  • packages.ent

    r036821b rb50114c  
    542542<!ENTITY packaging-version              "21.3">
    543543<!ENTITY pyparsing-version              "1.0.2"> <!-- TODO bogus -->
    544 <!ENTITY pytz-version                   "1.0.2"> <!-- TODO bogus -->
     544<!ENTITY pytz-version                   "2022.4">
    545545<!ENTITY snowballstemmer-version        "2.2.0">
    546546<!ENTITY sc-applehelp-version           "1.0.2">
Note: See TracChangeset for help on using the changeset viewer.