Skip to content

build(deps): bump packaging from 25.0 to 26.4 - #25

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/packaging-26.4
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/packaging-26.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown

Bumps packaging from 25.0 to 26.4.

Release notes

Sourced from packaging's releases.

26.4

What's Changed

Removals

  • Drop support for EOL Python 3.9. (#1354)

Features

  • Add prepare_environment() and Marker.evaluate_prepared() to evaluate many markers against one prepared environment. Pylock.select() now uses them. (#1469)
  • Add __replace__ to Requirement, Specifier, and SpecifierSet, for copy.replace() on Python 3.13+. (#1377, #1457)
  • Add VersionRange.from_bounds() to make a range from explicit bounds. (#1475)
  • Add VersionRange.snap_bounds() to move range endpoints onto known versions. (#1477)
  • Add VersionRange.relation() and RangeRelation, which give containment and disjointness in one pass. (#1473)
  • Add interpreter_abi(). (#611)
  • Marker.evaluate() accepts a set of names for extra, to evaluate a marker against several selected extras at once. (#1438)
  • Add message, source, and span attributes to InvalidRequirement and InvalidMarker for syntax errors. (#1547, #1554)

Behavior adaptations

  • str() of markers joined with & or | has fewer parentheses when unambiguous. Evaluation and parsed markers do not change. (#1510)
  • The pylock and direct_url dataclasses use __slots__. Pickles from 26.3 still load. (#1366, #1548)
  • Version.__replace__() raises TypeError for unknown keyword arguments instead of ignoring them. (#1378)

Fixes for versions and specifiers

  • Parse plain strings in the iterable form of SpecifierSet, and raise TypeError for elements that are not Specifier or str. (#1485)
  • Reject an empty arbitrary-equality version (===) in specifiers and requirements. (#1430)
  • Reject non-ASCII letters in ~= pre, post, and dev segments. (#1384)
  • Keep the explicit pre-release opt-in of a literal pre-release version that overlaps an ordinary bound in a VersionRange. (#1511)
  • Support copy and pickle for VersionRange, which raised TypeError before. (#1504)

Fixes for requirements and markers

  • Reject all whitespace in the URL of a requirement, including Unicode whitespace such as a no-break space. (#1379)
  • Parse === followed by a comma and a spaced specifier in a requirement. (#1531)
  • Keep the prereleases override of each specifier when a Requirement is pickled or copied. (#1462)
  • Raise InvalidMarker for markers nested more than 200 levels deep. (#1450)
  • Keep chains of & and | on markers flat, so long chains do not raise. (#1510)
  • Marker.evaluate() raises UndefinedComparison when extras or dependency_groups is a string instead of a set. (#1507)

Fixes for metadata and licenses

  • Validate and serialize inherited fields in Metadata subclasses. (#1454)
  • Reject Windows drive-relative License-File paths like C:LICENSE. (#1382)
  • Use one spelling, the first one, for case variants of a LicenseRef- identifier in canonicalize_license_expression(). (#1412)
  • Reject non-ASCII LicenseRef- identifiers before normalization. (#1481)

... (truncated)

Changelog

Sourced from packaging's changelog.

26.4 - 2026-11-23


Removals:
  • Drop support for EOL Python 3.9. (:pull:1354)

Features:

  • Add :func:~packaging.markers.prepare_environment and
    :meth:Marker.evaluate_prepared() <packaging.markers.Marker.evaluate_prepared>
    to evaluate many markers against one prepared environment.
    Pylock.select() now uses them. (:pull:1469)
  • Add __replace__ to :class:~packaging.requirements.Requirement,
    :class:~packaging.specifiers.Specifier, and
    :class:~packaging.specifiers.SpecifierSet, for copy.replace() on
    Python 3.13+. (:pull:1377, :pull:1457)
  • Add :meth:VersionRange.from_bounds() <packaging.ranges.VersionRange.from_bounds>
    to make a range from explicit bounds. (:pull:1475)
  • Add :meth:VersionRange.snap_bounds() <packaging.ranges.VersionRange.snap_bounds>
    to move range endpoints onto known versions. (:pull:1477)
  • Add :meth:VersionRange.relation() <packaging.ranges.VersionRange.relation>
    and :class:~packaging.ranges.RangeRelation, which give containment and
    disjointness in one pass. (:pull:1473)
  • Add :func:~packaging.tags.interpreter_abi. (:pull:611)
  • Marker.evaluate() accepts a set of names for extra, to evaluate
    a marker against several selected extras at once. (:pull:1438)
  • Add message, source, and span attributes to
    :class:~packaging.requirements.InvalidRequirement and
    :class:~packaging.markers.InvalidMarker for syntax errors. (:pull:1547, :pull:1554)

Behavior adaptations:

  • str() of markers joined with & or | has fewer parentheses when
    unambiguous. Evaluation and parsed markers do not change. (:pull:1510)
  • The pylock and direct_url dataclasses use __slots__. Pickles
    from 26.3 still load. (:pull:1366, :pull:1548)
  • Version.__replace__() raises TypeError for unknown keyword arguments
    instead of ignoring them. (:pull:1378)

Fixes for versions and specifiers:

  • Parse plain strings in the iterable form of SpecifierSet, and raise
    TypeError for elements that are not Specifier or str.
    (:pull:1485)
  • Reject an empty arbitrary-equality version (===) in specifiers and
    requirements. (:pull:1430)
  • Reject non-ASCII letters in ~= pre, post, and dev segments.
    (:pull:1384)
  • Keep the explicit pre-release opt-in of a literal pre-release version that
    </tr></table>

... (truncated)

Commits
  • 19a13d0 Bump for release
  • 20de131 docs(changelog): notes for 26.4 (#1535)
  • 56402fd perf(specifiers): avoid canonicalize_version in Specifier (#1571)
  • 641a31f chore(bench): rename pubgrub benchmark to resolver: pubgrub (#1570)
  • efc0071 perf(ranges): use binary search for version filtering and membership checks (...
  • a6308d4 perf(ranges): store the plain flag on VersionRange (#1564)
  • 126bc23 ci(downstream): use PDM's locked argcomplete version (#1566)
  • 3be01d3 docs: fix typos (#1565)
  • b8ecefd perf(ranges): reuse the least version above a boundary (#1563)
  • dbddf5b perf(ranges): skip unused local boundaries in specifier conversion (#1562)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [packaging](https://github.com/pypa/packaging) from 25.0 to 26.4.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](pypa/packaging@25.0...26.4)

---
updated-dependencies:
- dependency-name: packaging
  dependency-version: '26.4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants