Skip to content

Upgrading importlib-metadata 7 to 8

Breaking7.2.1 → 8.9.0Breaking3Platform1New2Changed7Fixed3Other1

BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Custom Distribution subclasses must now implement all required abstract methods.
  • You can no longer pass a 'dist' argument when selecting entry points, so code that did so will fail.
  • Looking up a header that does not exist in a message now raises an error instead of returning something else.
  • This version no longer supports Python 3.9, so users on that Python version should stay on an older release.
4 items need code or config changes

Python requirement changed in 8.8.0: >=3.8 → >=3.10.

Breaking3
Removes deprecated support for Distribution subclasses that do not implement abstract methods.
Distribution
Disallows passing 'dist' to EntryPoints.select.
EntryPoints.selectdist
Message.__getitem__ now raises a KeyError on missing keys.
Message.__getitem__
Platform1
Removes Python 3.9 compatibility.