Skip to content

Commit

Permalink
Support managing Python 3.13 distributions (#1753) d33be84
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Oct 13, 2024
1 parent cb4387a commit 8c4f095
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dev/config/internal/testing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
<span class=w> </span><span class=s2>&quot;pytest-xdist[psutil]~=3.5&quot;</span><span class=p>,</span>
<span class=p>]</span>
</code></pre></div> </div> </div> </div> <h3 id=matrix>Matrix<a class=headerlink href=#matrix title="Permanent link">&para;</a></h3> <p>You can override the default series of <a href=../../environment/advanced/#matrix>matrices</a>:</p> <div class="tabbed-set tabbed-alternate" data-tabs=9:2><input checked=checked id=pyprojecttoml_8 name=__tabbed_9 type=radio><input id=hatchtoml_8 name=__tabbed_9 type=radio><div class=tabbed-labels><label for=pyprojecttoml_8><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 16 16"><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"/></svg></span> pyproject.toml</label><label for=hatchtoml_8><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 16 16"><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"/></svg></span> hatch.toml</label></div> <div class=tabbed-content> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=k>[[tool.hatch.envs.hatch-test.matrix]]</span>
<span class=n>python</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=s2>&quot;3.12&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.11&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.10&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.9&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.8&quot;</span><span class=p>]</span>
<span class=n>python</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=s2>&quot;3.13&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.12&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.11&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.10&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.9&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.8&quot;</span><span class=p>]</span>
</code></pre></div> </div> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=k>[[envs.hatch-test.matrix]]</span>
<span class=n>python</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=s2>&quot;3.12&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.11&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.10&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.9&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.8&quot;</span><span class=p>]</span>
<span class=n>python</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=s2>&quot;3.13&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.12&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.11&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.10&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.9&quot;</span><span class=p>,</span><span class=w> </span><span class=s2>&quot;3.8&quot;</span><span class=p>]</span>
</code></pre></div> </div> </div> </div> <h3 id=scripts>Scripts<a class=headerlink href=#scripts title="Permanent link">&para;</a></h3> <p>If you want to change the default commands that are executed, you can override the <a href=../../environment/overview/#scripts>scripts</a>. The following default scripts must be redefined:</p> <div class="tabbed-set tabbed-alternate" data-tabs=10:2><input checked=checked id=pyprojecttoml_9 name=__tabbed_10 type=radio><input id=hatchtoml_9 name=__tabbed_10 type=radio><div class=tabbed-labels><label for=pyprojecttoml_9><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 16 16"><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"/></svg></span> pyproject.toml</label><label for=hatchtoml_9><span class=twemoji><svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 16 16"><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"/></svg></span> hatch.toml</label></div> <div class=tabbed-content> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=k>[tool.hatch.envs.hatch-test.scripts]</span>
<span class=n>run</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=s2>&quot;pytest{env:HATCH_TEST_ARGS:} {args}&quot;</span>
<span class=n>run-cov</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=s2>&quot;coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}&quot;</span>
Expand Down
Loading

0 comments on commit 8c4f095

Please sign in to comment.