Bump packaging from 26.3 to 26.4 in /docs #8915
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8915"
general
weight: 0.35
twz123
Bumps packaging from 26.3 to 26.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pypa/packaging/releases">packaging's releases</a>.</em></p>
<blockquote>
<h2>26.4</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Removals</h3>
<ul>
<li>Drop support for EOL Python 3.9. (<a href="https://redirect.github.com/pypa/packaging/pull/1354">#1354</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Add <code>prepare_environment()</code> and <code>Marker.evaluate_prepared()</code> to evaluate many markers against one prepared environment. <code>Pylock.select()</code> now uses them. (<a href="https://redirect.github.com/pypa/packaging/pull/1469">#1469</a>)</li>
<li>Add <code>__replace__</code> to <code>Requirement</code>, <code>Specifier</code>, and <code>SpecifierSet</code>, for <code>copy.replace()</code> on Python 3.13+. (<a href="https://redirect.github.com/pypa/packaging/pull/1377">#1377</a>, <a href="https://redirect.github.com/pypa/packaging/pull/1457">#1457</a>)</li>
<li>Add <code>VersionRange.from_bounds()</code> to make a range from explicit bounds. (<a href="https://redirect.github.com/pypa/packaging/pull/1475">#1475</a>)</li>
<li>Add <code>VersionRange.snap_bounds()</code> to move range endpoints onto known versions. (<a href="https://redirect.github.com/pypa/packaging/pull/1477">#1477</a>)</li>
<li>Add <code>VersionRange.relation()</code> and <code>RangeRelation</code>, which give containment and disjointness in one pass. (<a href="https://redirect.github.com/pypa/packaging/pull/1473">#1473</a>)</li>
<li>Add <code>interpreter_abi()</code>. (<a href="https://redirect.github.com/pypa/packaging/pull/611">#611</a>)</li>
<li><code>Marker.evaluate()</code> accepts a set of names for <code>extra</code>, to evaluate a marker against several selected extras at once. (<a href="https://redirect.github.com/pypa/packaging/pull/1438">#1438</a>)</li>
<li>Add <code>message</code>, <code>source</code>, and <code>span</code> attributes to <code>InvalidRequirement</code> and <code>InvalidMarker</code> for syntax errors. (<a href="https://redirect.github.com/pypa/packaging/pull/1547">#1547</a>, <a href="https://redirect.github.com/pypa/packaging/pull/1554">#1554</a>)</li>
</ul>
<h3>Behavior adaptations</h3>
<ul>
<li><code>str()</code> of markers joined with <code>&</code> or <code>|</code> has fewer parentheses when unambiguous. Evaluation and parsed markers do not change. (<a href="https://redirect.github.com/pypa/packaging/pull/1510">#1510</a>)</li>
<li>The <code>pylock</code> and <code>direct_url</code> dataclasses use <code>__slots__</code>. Pickles from 26.3 still load. (<a href="https://redirect.github.com/pypa/packaging/pull/1366">#1366</a>, <a href="https://redirect.github.com/pypa/packaging/pull/1548">#1548</a>)</li>
<li><code>Version.__replace__()</code> raises <code>TypeError</code> for unknown keyword arguments instead of ignoring them. (<a href="https://redirect.github.com/pypa/packaging/pull/1378">#1378</a>)</li>
</ul>
<h3>Fixes for versions and specifiers</h3>
<ul>
<li>Parse plain strings in the iterable form of <code>SpecifierSet</code>, and raise <code>TypeError</code> for elements that are not <code>Specifier</code> or <code>str</code>. (<a href="https://redirect.github.com/pypa/packaging/pull/1485">#1485</a>)</li>
<li>Reject an empty arbitrary-equality version (<code>===</code>) in specifiers and requirements. (<a href="https://redirect.github.com/pypa/packaging/pull/1430">#1430</a>)</li>
<li>Reject non-ASCII letters in <code>~=</code> pre, post, and dev segments. (<a href="https://redirect.github.com/pypa/packaging/pull/1384">#1384</a>)</li>
<li>Keep the explicit pre-release opt-in of a literal pre-release version that overlaps an ordinary bound in a <code>VersionRange</code>. (<a href="https://redirect.github.com/pypa/packaging/pull/1511">#1511</a>)</li>
<li>Support <code>copy</code> and <code>pickle</code> for <code>VersionRange</code>, which raised <code>TypeError</code> before. (<a href="https://redirect.github.com/pypa/packaging/pull/1504">#1504</a>)</li>
</ul>
<h3>Fixes for requirements and markers</h3>
<ul>
<li>Reject all whitespace in the URL of a requirement, including Unicode whitespace such as a no-break space. (<a href="https://redirect.github.com/pypa/packaging/pull/1379">#1379</a>)</li>
<li>Parse <code>===</code> followed by a comma and a spaced specifier in a requirement. (<a href="https://redirect.github.com/pypa/packaging/pull/1531">#1531</a>)</li>
<li>Keep the <code>prereleases</code> override of each specifier when a <code>Requirement</code> is pickled or copied. (<a href="https://redirect.github.com/pypa/packaging/pull/1462">#1462</a>)</li>
<li>Raise <code>InvalidMarker</code> for markers nested more than 200 levels deep. (<a href="https://redirect.github.com/pypa/packaging/pull/1450">#1450</a>)</li>
<li>Keep chains of <code>&</code> and <code>|</code> on markers flat, so long chains do not raise. (<a href="https://redirect.github.com/pypa/packaging/pull/1510">#1510</a>)</li>
<li><code>Marker.evaluate()</code> raises <code>UndefinedComparison</code> when <code>extras</code> or <code>dependency_groups</code> is a string instead of a set. (<a href="https://redirect.github.com/pypa/packaging/pull/1507">#1507</a>)</li>
</ul>
<h3>Fixes for metadata and licenses</h3>
<ul>
<li>Validate and serialize inherited fields in <code>Metadata</code> subclasses. (<a href="https://redirect.github.com/pypa/packaging/pull/1454">#1454</a>)</li>
<li>Reject Windows drive-relative <code>License-File</code> paths like <code>C:LICENSE</code>. (<a href="https://redirect.github.com/pypa/packaging/pull/1382">#1382</a>)</li>
<li>Use one spelling, the first one, for case variants of a <code>LicenseRef-</code> identifier in <code>canonicalize_license_expression()</code>. (<a href="https://redirect.github.com/pypa/packaging/pull/1412">#1412</a>)</li>
<li>Reject non-ASCII <code>LicenseRef-</code> identifiers before normalization. (<a href="https://redirect.github.com/pypa/packaging/pull/1481">#1481</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pypa/packaging/blob/main/CHANGELOG.rst">packaging's changelog</a>.</em></p>
<blockquote>
<p>26.4 - 2026-11-23</p>
<pre><code>
Removals:
<ul>
<li>Drop support for EOL Python 3.9. (:pull:<code>1354</code>)</li>
</ul>
<p>Features:</p>
<ul>
<li>Add :func:<code>~packaging.markers.prepare_environment</code> and<br />
:meth:<code>Marker.evaluate_prepared() &lt;packaging.markers.Marker.evaluate_prepared&gt;</code><br />
to evaluate many markers against one prepared environment.<br />
<code>Pylock.select()</code> now uses them. (:pull:<code>1469</code>)</li>
<li>Add <code>__replace__</code> to :class:<code>~packaging.requirements.Requirement</code>,<br />
:class:<code>~packaging.specifiers.Specifier</code>, and<br />
:class:<code>~packaging.specifiers.SpecifierSet</code>, for <code>copy.replace()</code> on<br />
Python 3.13+. (:pull:<code>1377</code>, :pull:<code>1457</code>)</li>
<li>Add :meth:<code>VersionRange.from_bounds() &lt;packaging.ranges.VersionRange.from_bounds&gt;</code><br />
to make a range from explicit bounds. (:pull:<code>1475</code>)</li>
<li>Add :meth:<code>VersionRange.snap_bounds() &lt;packaging.ranges.VersionRange.snap_bounds&gt;</code><br />
to move range endpoints onto known versions. (:pull:<code>1477</code>)</li>
<li>Add :meth:<code>VersionRange.relation() &lt;packaging.ranges.VersionRange.relation&gt;</code><br />
and :class:<code>~packaging.ranges.RangeRelation</code>, which give containment and<br />
disjointness in one pass. (:pull:<code>1473</code>)</li>
<li>Add :func:<code>~packaging.tags.interpreter_abi</code>. (:pull:<code>611</code>)</li>
<li><code>Marker.evaluate()</code> accepts a set of names for <code>extra</code>, to evaluate<br />
a marker against several selected extras at once. (:pull:<code>1438</code>)</li>
<li>Add <code>message</code>, <code>source</code>, and <code>span</code> attributes to<br />
:class:<code>~packaging.requirements.InvalidRequirement</code> and<br />
:class:<code>~packaging.markers.InvalidMarker</code> for syntax errors. (:pull:<code>1547</code>, :pull:<code>1554</code>)</li>
</ul>
<p>Behavior adaptations:</p>
<ul>
<li><code>str()</code> of markers joined with <code>&amp;</code> or <code>|</code> has fewer parentheses when<br />
unambiguous. Evaluation and parsed markers do not change. (:pull:<code>1510</code>)</li>
<li>The <code>pylock</code> and <code>direct_url</code> dataclasses use <code>__slots__</code>. Pickles<br />
from 26.3 still load. (:pull:<code>1366</code>, :pull:<code>1548</code>)</li>
<li><code>Version.__replace__()</code> raises <code>TypeError</code> for unknown keyword arguments<br />
instead of ignoring them. (:pull:<code>1378</code>)</li>
</ul>
<p>Fixes for versions and specifiers:</p>
<ul>
<li>Parse plain strings in the iterable form of <code>SpecifierSet</code>, and raise<br />
<code>TypeError</code> for elements that are not <code>Specifier</code> or <code>str</code>.<br />
(:pull:<code>1485</code>)</li>
<li>Reject an empty arbitrary-equality version (<code>===</code>) in specifiers and<br />
requirements. (:pull:<code>1430</code>)</li>
<li>Reject non-ASCII letters in <code>~=</code> pre, post, and dev segments.<br />
(:pull:<code>1384</code>)</li>
<li>Keep the explicit pre-release opt-in of a literal pre-release version that<br />
</tr></table><br />
</code></pre></li>
</ul>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pypa/packaging/commit/19a13d0652ab358ac6be3f069a7fb2f1b304ac73"><code>19a13d0</code></a> Bump for release</li>
<li><a href="https://github.com/pypa/packaging/commit/20de131f397a24a2d1723ff90c17f2e5b33d2766"><code>20de131</code></a> docs(changelog): notes for 26.4 (<a href="https://redirect.github.com/pypa/packaging/issues/1535">#1535</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/56402fd893884645375adffedd54a765779f4040"><code>56402fd</code></a> perf(specifiers): avoid canonicalize_version in Specifier (<a href="https://redirect.github.com/pypa/packaging/issues/1571">#1571</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/641a31f7efd76256de24c35a7dd4be53048acfb1"><code>641a31f</code></a> chore(bench): rename pubgrub benchmark to resolver: pubgrub (<a href="https://redirect.github.com/pypa/packaging/issues/1570">#1570</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/efc0071b27d206d1b41f5a490ddaa60ea1c4001f"><code>efc0071</code></a> perf(ranges): use binary search for version filtering and membership checks (...</li>
<li><a href="https://github.com/pypa/packaging/commit/a6308d48ab469499d9cb617501876132255dc7be"><code>a6308d4</code></a> perf(ranges): store the plain flag on VersionRange (<a href="https://redirect.github.com/pypa/packaging/issues/1564">#1564</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/126bc239ab46477f18f2344f03300a0aa20867c1"><code>126bc23</code></a> ci(downstream): use PDM's locked argcomplete version (<a href="https://redirect.github.com/pypa/packaging/issues/1566">#1566</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/3be01d3d5bb6fa5a9f6d7bd391e09ff2f3c4f95a"><code>3be01d3</code></a> docs: fix typos (<a href="https://redirect.github.com/pypa/packaging/issues/1565">#1565</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/b8ecefd3f425c09d0e843b9263314a5d51a3e276"><code>b8ecefd</code></a> perf(ranges): reuse the least version above a boundary (<a href="https://redirect.github.com/pypa/packaging/issues/1563">#1563</a>)</li>
<li><a href="https://github.com/pypa/packaging/commit/dbddf5b01212e6aa431554f22320832bf3e48d2b"><code>dbddf5b</code></a> perf(ranges): skip unused local boundaries in specifier conversion (<a href="https://redirect.github.com/pypa/packaging/issues/1562">#1562</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/pypa/packaging/compare/26.3...26.4">compare view</a></li>
</ul>
</details>
<br />