---
title: "packaging 26.4 Breaking Changes on PyPI | Since.dev"
description: "What each packaging release removed, renamed or changed: 165 breaking changes in 11 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/packaging
last_updated: 2026-12-04
---

# packaging breaking changes

packaging 26.4 (November 23, 2026) is its newest release with breaking changes, 16 of them. The first: packaging 26.4 drops support for Python 3.9. Every breaking API change we have recorded in packaging on PyPI: 165 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `26.4`, released November 23, 2026. [Source repository](https://github.com/pypa/packaging)

Its 26.4 release drops [Python 3.9](https://since.dev/calendar/python/3.9.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [25.0](#v-25-0) to [26.4](#v-26-4): 74 breaking changes in 6 versions.
- From [22.0](#v-22-0) to [26.4](#v-26-4): 112 breaking changes in 10 versions.

## packaging 26.4 breaking changes

packaging 26.4, released November 23, 2026: 16 breaking changes.

- **Removed**  

Python 3.9 is no longer supported by this release, so code running on Python 3.9 must move to a newer Python version. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `compatible_tags`  

An explicitly empty platforms iterable now yields no platforms instead of using the host platforms. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `cpython_tags`  

An explicitly empty platforms iterable now yields no platforms instead of using the host platforms. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `generic_tags`  

An explicitly empty platforms iterable now yields no platforms instead of using the host platforms. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `InvalidMarker`  

Markers nested more than 200 levels deep now raise InvalidMarker. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `License-File`  

Windows drive-relative License-File paths such as C:LICENSE are now rejected. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `Marker.evaluate`  

Marker.evaluate() now raises UndefinedComparison when extras or dependency_groups is a string instead of a set. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `Pylock.select`  

Pylock.select() now raises PylockSelectError for an explicitly empty environments list and for unknown extras and dependency groups. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `Requirement`  

Requirement URLs containing any whitespace, including Unicode whitespace, are now rejected. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `Specifier`  

An empty arbitrary-equality version (===) in specifiers and requirements is now rejected, so such inputs that used to parse will fail. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `SpecifierSet`  

Elements of the iterable form of SpecifierSet that are not Specifier or str now raise TypeError. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `str`  

str() of markers joined with & or | now omits parentheses when unambiguous, so code that compares or parses marker strings may see different text. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Behavior changed** `Version.__replace__`  

Unknown keyword arguments passed to Version.\_\_replace\_\_() now raise TypeError instead of being ignored, so calls passing extra arguments will fail. [github.com](https://github.com/pypa/packaging/releases/tag/26.4)
- **Signature changed** `packaging.requirements.Requirement.__getstate__`  

Was def \_\_getstate\_\_(self) -> tuple\[str, bool | None\]; now def \_\_getstate\_\_(self) -> tuple\[str, bool | None, tuple\[bool | None, ...\]\]. [pypi.org](https://pypi.org/project/packaging/26.4/)
- **Signature changed** `packaging.specifiers.SpecifierSet.__init__`  

Was def \_\_init\_\_(self, specifiers: str | Iterable\[Specifier\] = '', prereleases: bool | None = None) -> None; now def \_\_init\_\_(self, specifiers: str | Iterable\[Specifier | str\] = '', prereleases: bool | None = None) -> None. [pypi.org](https://pypi.org/project/packaging/26.4/)
- **Signature changed** `packaging.version.Version.__replace__`  

Was def \_\_replace\_\_(self, \*\*kwargs: Unpack\[\_VersionReplace\]) -> Self; now def \_\_replace\_\_(self, \*, epoch: int | None = \_UNSET, release: tuple\[int, ...\] | None = \_UNSET, pre: tuple\[str, int\] | None = \_UNSET, post: int | None = \_UNSET, dev... [pypi.org](https://pypi.org/project/packaging/26.4/)

## packaging 26.3 breaking changes

packaging 26.3, released August 4, 2026: 12 breaking changes.

- **Removed**  

packaging now requires Python 3.9 or later, so Python 3.8 users must upgrade their interpreter before installing this release. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Behavior changed**  

Local directory URLs in direct_url must now be absolute file URLs; relative forms that were accepted before are rejected. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Behavior changed**  

On Linux, native linux\_\* platform tags are now preferred over manylinux and musllinux tags, which changes which wheels are selected. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Behavior changed** `InvalidSpecifier`  

A requirement containing an invalid specifier now raises InvalidRequirement instead of InvalidSpecifier, so handlers must catch InvalidRequirement. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Behavior changed** `is_normalized_name`  

Names with collapsed double hyphens such as a--b are no longer treated as normalized, so callers relying on the old result will see different outcomes. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Behavior changed** `Pylock.select`  

An explicitly empty tags sequence passed to Pylock.select now selects nothing instead of falling back to the running platform's tags. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Behavior changed** `Version`  

Passing a non-string to Version now raises InvalidVersion instead of TypeError, so code catching TypeError must catch InvalidVersion. [github.com](https://github.com/pypa/packaging/releases/tag/26.3)
- **Signature changed** `packaging.markers.UndefinedEnvironmentName`  

Was class UndefinedEnvironmentName(ValueError); now class UndefinedEnvironmentName(KeyError). [pypi.org](https://pypi.org/project/packaging/26.3/)
- **Signature changed** `packaging.metadata.Metadata.version`  

Was version: \_Validator\[version_module.Version\]; now version: \_Validator\[Version\]. [pypi.org](https://pypi.org/project/packaging/26.3/)
- **Signature changed** `packaging.pylock.Pylock.select`  

Was def select(self, \*, environment: Environment | None = None, tags: Sequence\[Tag\] | None = None, extras: Collection\[str\] | None = None, dependency_groups: Collection\[str\] | None = None) -> Iterator\[tuple\[Package, PackageVcs |... [pypi.org](https://pypi.org/project/packaging/26.3/)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## packaging 26.2 breaking changes

packaging 26.2, released April 24, 2026: 1 breaking change.

- **Signature changed** `packaging.tags.Tag.__setstate__`  

Was def \_\_setstate\_\_(self, state: tuple\[None, dict\[str, Any\]\]) -> None; now def \_\_setstate\_\_(self, state: object) -> None. [pypi.org](https://pypi.org/project/packaging/26.2/)

## packaging 26.1 breaking changes

packaging 26.1, released April 14, 2026: 30 breaking changes.

- **Removed** `packaging.metadata.licenses`  

packaging.metadata.licenses was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.metadata.NormalizedLicenseExpression`  

packaging.metadata.NormalizedLicenseExpression was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.metadata.requirements`  

packaging.metadata.requirements was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.metadata.specifiers`  

packaging.metadata.specifiers was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.metadata.T`  

packaging.metadata.T was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.metadata.utils`  

packaging.metadata.utils was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.metadata.version_module`  

packaging.metadata.version_module was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.requirements.canonicalize_name`  

packaging.requirements.canonicalize_name was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.requirements.Marker`  

packaging.requirements.Marker was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)
- **Removed** `packaging.requirements.ParserSyntaxError`  

packaging.requirements.ParserSyntaxError was removed in packaging 26.1 [pypi.org](https://pypi.org/project/packaging/26.1/)

And 20 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## packaging 26.0 breaking changes

packaging 26.0, released January 21, 2026: 9 breaking changes.

- **Behavior changed** `Marker`  

Only certain marker keys are parsed as Version, and unequal ordered comparisons now return False, which can change marker evaluation results. [github.com](https://github.com/pypa/packaging/releases/tag/26.0)
- **Behavior changed** `Specifier.contains`  

Prerelease matching in Specifier.contains, SpecifierSet.contains and SpecifierSet.filter now follows PEP 440, so results may differ from earlier versions for prerelease versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0)
- **Behavior changed** `SpecifierSet`  

The preservation of arbitrary equality specifiers when intersecting in SpecifierSet was changed, so combined specifier sets may differ from earlier versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0)
- **Behavior changed** `SpecifierSet.contains`  

Prerelease matching in Specifier.contains, SpecifierSet.contains and SpecifierSet.filter now follows PEP 440, so results may differ from earlier versions for prerelease versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0)
- **Behavior changed** `SpecifierSet.filter`  

Prerelease matching in Specifier.contains, SpecifierSet.contains and SpecifierSet.filter now follows PEP 440, so results may differ from earlier versions for prerelease versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0)
- **Signature changed** `packaging.markers.Marker.__eq__`  

Was def \_\_eq\_\_(self, other: Any) -> bool; now def \_\_eq\_\_(self, other: object) -> bool. [pypi.org](https://pypi.org/project/packaging/26.0/)
- **Signature changed** `packaging.markers.Marker.evaluate`  

Was def evaluate(self, environment: dict\[str, str\] | None = None, context: EvaluateContext = 'metadata') -> bool; now def evaluate(self, environment: Mapping\[str, str | AbstractSet\[str\]\] | None = None, context: EvaluateContext =... [pypi.org](https://pypi.org/project/packaging/26.0/)
- **Signature changed** `packaging.requirements.Requirement.__eq__`  

Was def \_\_eq\_\_(self, other: Any) -> bool; now def \_\_eq\_\_(self, other: object) -> bool. [pypi.org](https://pypi.org/project/packaging/26.0/)
- **Signature changed** `packaging.specifiers.Specifier.prereleases`  

Was prereleases: bool; now prereleases: bool | None. [pypi.org](https://pypi.org/project/packaging/26.0/)

## packaging 26.0rc1 breaking changes

packaging 26.0rc1, released January 21, 2026: 6 breaking changes.

- **Removed** `_version`  

The private \_version (\_Version NamedTuple) attribute was dropped; code that reads it must stop doing so. [github.com](https://github.com/pypa/packaging/releases/tag/26.0rc1)
- **Behavior changed**  

Log messages are now emitted on the packaging logger instead of the root logger, so logging configuration may need updating. [github.com](https://github.com/pypa/packaging/releases/tag/26.0rc1)
- **Behavior changed** `Specifier.contains`  

Prerelease matching in Specifier.contains now follows PEP 440 rules, so results can differ from earlier versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0rc1)
- **Behavior changed** `SpecifierSet`  

Intersections involving arbitrary equality (===) are preserved differently, so combined specifier results may change. [github.com](https://github.com/pypa/packaging/releases/tag/26.0rc1)
- **Behavior changed** `SpecifierSet.contains`  

Prerelease matching in SpecifierSet.contains now follows PEP 440 rules, so results can differ from earlier versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0rc1)
- **Behavior changed** `SpecifierSet.filter`  

Prerelease filtering in SpecifierSet.filter now follows PEP 440 rules, so results can differ from earlier versions. [github.com](https://github.com/pypa/packaging/releases/tag/26.0rc1)

## Older versions

5 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### packaging 25.0 breaking changes

packaging 25.0, released April 19, 2025: 1 breaking change.

- **Signature changed** `packaging.markers.Marker.evaluate`  

Was def evaluate(self, environment: dict\[str, str\] | None = None) -> bool; now def evaluate(self, environment: dict\[str, str\] | None = None, context: EvaluateContext = 'metadata') -> bool. [pypi.org](https://pypi.org/project/packaging/25.0/)

### packaging 24.2 breaking changes

packaging 24.2, released November 8, 2024: 5 breaking changes.

- **Removed**  

The release drops Python 3.7 support, as noted in a changelog entry. Users on Python 3.7 must stay on an earlier release or upgrade their Python. [github.com](https://github.com/pypa/packaging/releases/tag/24.2)
- **Removed** `packaging.tags.MacVersion`  

packaging.tags.MacVersion was removed in packaging 24.2 [pypi.org](https://pypi.org/project/packaging/24.2/)

And 3 more in this version.

### packaging 24.0 breaking changes

packaging 24.0, released March 10, 2024: 31 breaking changes.

- **Removed** `packaging.metadata.ExceptionGroup.__init__`  

ExceptionGroup() was removed in packaging 24.0 [pypi.org](https://pypi.org/project/packaging/24.0/)
- **Removed** `packaging.metadata.ExceptionGroup.__repr__`  

ExceptionGroup.\_\_repr\_\_ was removed in packaging 24.0 [pypi.org](https://pypi.org/project/packaging/24.0/)

And 29 more in this version.

### packaging 23.0 breaking changes

packaging 23.0, released January 8, 2023: 1 breaking change.

- **Signature changed** `packaging.specifiers.BaseSpecifier.filter`  

Was def filter(self, iterable: Iterable\[UnparsedVersion\], prereleases: Optional\[bool\] = None) -> Iterator\[UnparsedVersion\]; now def filter(self, iterable: Iterable\[UnparsedVersionVar\], prereleases: Optional\[bool\] = None) ->... [pypi.org](https://pypi.org/project/packaging/23.0/)

### packaging 22.0 breaking changes

packaging 22.0, released December 7, 2022: 53 breaking changes.

- **Removed**  

Python 3.6 is no longer supported; upgrade the interpreter before using this release. [github.com](https://github.com/pypa/packaging/releases/tag/22.0)
- **Removed** `packaging.metadata`  

The packaging.metadata module was removed again before this release. [github.com](https://github.com/pypa/packaging/releases/tag/22.0)

And 51 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
