Changeset 1037704b for general/prog
- Timestamp:
- 05/05/2024 05:19:12 PM (5 months ago)
- Branches:
- 12.2, gimp3, lazarus, trunk, xry111/for-12.3, xry111/spidermonkey128
- 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)
- Location:
- general/prog
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/python-dependencies.xml
rb3bc5311 r1037704b 99 99 <listitem> 100 100 <para> 101 <xref linkend="hatch-fancy-pypi-readme"/> 102 </para> 103 </listitem> 104 <listitem> 105 <para> 101 106 <xref linkend="hatch-vcs"/> 102 107 </para> … … 258 263 259 264 <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" 260 268 href="python-dependencies/hatch-vcs.xml"/> 261 269 -
general/prog/python-dependencies/attrs.xml
rb3bc5311 r1037704b 67 67 68 68 <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 69 76 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 70 77 <para role="optional"> 71 78 <xref linkend="pytest"/>, 72 <ulink url="https://pypi.org/project/c overage/">coverage[toml]</ulink>,79 <ulink url="https://pypi.org/project/cloudpickle/">cloudpickle</ulink>, 73 80 <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>, 74 81 <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 < 1.10</ulink>, 76 85 <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>, and78 <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> 79 88 </para> 80 89 … … 98 107 </para> 99 108 100 <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv && 101 source testenv/bin/activate && 102 pip3 install attrs[tests] && 103 python3 /usr/bin/pytest && 104 deactivate</userinput></screen> 109 <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv && 110 testenv/bin/pip3 install 'attrs[tests]' 'mypy < 1.10' && 111 PATH=$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> 105 118 106 119 </sect3> -
general/prog/python-dependencies/meson_python.xml
rb3bc5311 r1037704b 76 76 <xref linkend="patchelf"/> 77 77 </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 >= 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> 78 94 </sect3> 79 95 … … 94 110 95 111 <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 && 121 testenv/bin/pip3 install 'meson_python[test]' && 122 testenv/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> 96 130 97 131 </sect3> -
general/prog/python-dependencies/pyproject-metadata.xml
rb3bc5311 r1037704b 73 73 </para> 74 74 75 <bridgehead renderas="sect5">Optional (for testing)</bridgehead> 76 <para role="optional"> 77 <xref linkend="pytest"/> 78 </para> 79 75 80 </sect3> 76 81 … … 83 88 84 89 <para> 85 This package does not come with a test suite.86 </para>87 88 <para>89 90 Now, as the <systemitem class="username">root</systemitem> user: 90 91 </para> 91 92 92 93 <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> 93 99 94 100 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.