Changeset 1037704b


Ignore:
Timestamp:
05/05/2024 05:19:12 PM (2 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
lazarus, trunk
Children:
5b6899bd
Parents:
b3bc5311
git-author:
Xi Ruoyao <xry111@…> (05/05/2024 05:12:35 PM)
git-committer:
Xi Ruoyao <xry111@…> (05/05/2024 05:19:12 PM)
Message:

python-dependencies: Update

  • Update to attrs-23.2.0
  • Update to meson_python-0.16.0
  • Update to pyproject-metadata-0.8.0
  • Add hatch-fancy-pypi-readme-24.1.0 to support attrs-23.2.0
Files:
6 edited

Legend:

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

    rb3bc5311 r1037704b  
    9999      <listitem>
    100100        <para>
     101          <xref linkend="hatch-fancy-pypi-readme"/>
     102        </para>
     103      </listitem>
     104      <listitem>
     105        <para>
    101106          <xref linkend="hatch-vcs"/>
    102107        </para>
     
    258263
    259264  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     265    href="python-dependencies/hatch-fancy-pypi-readme.xml"/>
     266
     267  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    260268    href="python-dependencies/hatch-vcs.xml"/>
    261269
  • general/prog/python-dependencies/attrs.xml

    rb3bc5311 r1037704b  
    6767
    6868      <bridgehead renderas="sect4">Attrs Dependencies</bridgehead>
     69
     70      <bridgehead renderas="sect5">Required</bridgehead>
     71      <para role='required'>
     72        <xref linkend='hatch-fancy-pypi-readme'/> and
     73        <xref linkend='hatch-vcs'/>
     74      </para>
     75
    6976      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
    7077      <para role="optional">
    7178        <xref linkend="pytest"/>,
    72         <ulink url="https://pypi.org/project/coverage/">coverage[toml]</ulink>,
     79        <ulink url="https://pypi.org/project/cloudpickle/">cloudpickle</ulink>,
    7380        <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>,
    7481        <ulink url="https://pypi.org/project/Pympler/">Pympler</ulink>,
    75         <ulink url="https://pypi.org/project/mypy/">mypy</ulink>,
     82        <!-- Upstream wants "< 1.10" for this one:
     83             https://github.com/python-attrs/attrs/commit/46f1f35896e9 -->
     84        <ulink url="https://pypi.org/project/mypy/">mypy &lt; 1.10</ulink>,
    7685        <ulink url="https://pypi.org/project/pytest-mypy-plugins/">pytest-mypy-plugins</ulink>,
    77         <ulink url="https://pypi.org/project/zope.interface/">zope.interface</ulink>, and
    78         <ulink url="https://pypi.org/project/cloudpickle/">cloudpickle</ulink>
     86        <ulink url="https://pypi.org/project/pytest-xdist/">pytest-xdist[psutil]</ulink>, and
     87        <ulink url="https://pypi.org/project/zope.interface/">zope.interface</ulink>
    7988      </para>
    8089
     
    98107    </para>
    99108
    100 <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
    101 source testenv/bin/activate                    &amp;&amp;
    102 pip3 install attrs[tests]                      &amp;&amp;
    103 python3 /usr/bin/pytest                        &amp;&amp;
    104 deactivate</userinput></screen>
     109<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv           &amp;&amp;
     110testenv/bin/pip3 install 'attrs[tests]' 'mypy &lt; 1.10'    &amp;&amp;
     111PATH=$PWD/testenv/bin:$PATH testenv/bin/python -m pytest</userinput></screen>
     112
     113    <!-- https://github.com/python-attrs/attrs/pull/1249 -->
     114    <para>
     115      One test named <literal>TestAssoc::test_unknown</literal> is known
     116      to fail with pytest-8.0.0 or later.
     117    </para>
    105118
    106119    </sect3>
  • general/prog/python-dependencies/meson_python.xml

    rb3bc5311 r1037704b  
    7676        <xref linkend="patchelf"/>
    7777      </para>
     78
     79      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     80      <para role="optional">
     81        <xref linkend="git"/>,
     82        <xref linkend="pytest"/>,
     83        <xref linkend="python3"/> (rebuilt after installing
     84        <xref role="nodep" linkend="sqlite"/>),
     85        <ulink url="https://pypi.org/project/build/">build</ulink>,
     86        <!-- <xref linkend="cython"/> when we update Cython -->
     87        <ulink url="https://pypi.org/project/Cython/">Cython
     88          &gt;= 3.0.3</ulink>,
     89        <!-- pytest-cov mentioned but it seems not really used unless
     90             running the "coverage" command explicitly -->
     91        and
     92        <ulink url="https://pypi.org/project/pytest-mock/">pytest-mock</ulink>
     93      </para>
    7894    </sect3>
    7995
     
    94110
    95111<screen role="root"><userinput>&install-wheel; meson_python</userinput></screen>
     112
     113    <para>
     114      To test the installation, make sure both <xref linkend='git'/> and
     115      <xref linkend='pytest'/> are installed and <xref linkend='python3'/>
     116      has been rebuilt after installing <xref linkend='sqlite'/>, then
     117      issue:
     118    </para>
     119
     120<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
     121testenv/bin/pip3 install 'meson_python[test]'  &amp;&amp;
     122testenv/bin/python -m pytest</userinput></screen>
     123
     124    <!-- https://github.com/mesonbuild/meson-python/issues/619 -->
     125    <para>
     126      Two tests named <literal>test_missing_version</literal> and
     127      <literal>test_pep621</literal> are known to fail with
     128      pyproject-metadata-0.8.0 or later.
     129    </para>
    96130
    97131    </sect3>
  • general/prog/python-dependencies/pyproject-metadata.xml

    rb3bc5311 r1037704b  
    7373      </para>
    7474
     75      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
     76      <para role="optional">
     77        <xref linkend="pytest"/>
     78      </para>
     79
    7580    </sect3>
    7681
     
    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>&install-wheel; pyproject-metadata</userinput></screen>
     94
     95    <!-- "pytest-cov[toml]" is referred but it seems not really used -->
     96    <para>
     97      To test the installation, issue: <command>pytest</command>.
     98    </para>
    9399
    94100    </sect3>
  • introduction/welcome/changelog.xml

    rb3bc5311 r1037704b  
    6262        <listitem>
    6363          <para>[xry111] - Update Python dependencies:
     64          attrs-23.2.0, meson_python-0.16.0, and pyproject-metadata-0.8.0.
     65          Add hatch-fancy-pypi-readme-24.1.0 to support attrs-23.2.0.
     66          Addresses
     67          <ulink url="&blfs-ticket-root;18562">#18562</ulink>.</para>
     68        </listitem>
     69        <listitem>
     70          <para>[xry111] - Update Python dependencies:
    6471          editables-0.5, hatchling-1.24.2, hatch-vcs-0.4.0,
    65           pathspec-0.12.1, pluggy-1.5.0, setuptools_scm-8.0.4,
     72          pathspec-0.12.1, pluggy-1.5.0, setuptools_scm-8.0.4, and
    6673          typing_extensions-4.11.0.  Add trove-classifiers-2024.4.10
    6774          to support hatchling-1.24.2.  Addresses
  • packages.ent

    rb3bc5311 r1037704b  
    616616<!ENTITY alabaster-version              "0.7.13">
    617617<!ENTITY alabaster-md5sum               "2e05a5f4fe5a8b95e5e576cbf4a5d503">
    618 <!ENTITY attrs-version                  "22.2.0">
    619 <!ENTITY attrs-md5sum                   "eff16b3bbd0d9b72e118cca83a19d380">
     618<!ENTITY attrs-version                  "23.2.0">
     619<!ENTITY attrs-md5sum                   "60588a146fb413a997c7519d77198a5e">
    620620<!ENTITY babel-version                  "2.11.0">
    621621<!ENTITY babel-md5sum                   "9ee7784fd452d456206ecd3a12694010">
     
    632632<!ENTITY hatchling-version              "1.24.2">
    633633<!ENTITY hatchling-md5sum               "814948c375ba44603877d032338811ba">
     634<!ENTITY hatch-fancy-pypi-readme-version "24.1.0">
     635<!ENTITY hatch-fancy-pypi-readme-md5sum "f5f9e639f066c91f8e623ec6231beae9">
    634636<!ENTITY hatch-vcs-version              "0.4.0">
    635637<!ENTITY hatch-vcs-md5sum               "d801fe7c3e5955307748f2790bbb3488">
     
    642644<!ENTITY markdown-version               "3.4.1">
    643645<!ENTITY markdown-md5sum                "597656cf4feadf1998b0511201620202">
    644 <!ENTITY meson_python-version           "0.15.0">
    645 <!ENTITY meson_python-md5sum            "e91eb9946d7bb8be06e434c5a2dadd05">
     646<!ENTITY meson_python-version           "0.16.0">
     647<!ENTITY meson_python-md5sum            "0278a447d7aef1cf20964aa369cd5d3b">
    646648<!ENTITY msgpack-version                "1.0.4">
    647649<!ENTITY msgpack-md5sum                 "1822cdb939e7531f7ad0f7f09b434f22">
     
    650652<!ENTITY pluggy-version                 "1.5.0">
    651653<!ENTITY pluggy-md5sum                  "ac0870be78ba0ee227a5c3955efeba59">
    652 <!ENTITY pyproject-metadata-version     "0.7.1">
     654<!ENTITY pyproject-metadata-version     "0.8.0">
    653655<!ENTITY pyproject-metadata-md5sum      "ca5e9527cff96153a976e14530b53746">
    654656<!ENTITY pytz-version                   "2024.1">
Note: See TracChangeset for help on using the changeset viewer.