Skip to content

Upgrading importlib-metadata 5 to 6

Breaking5.2.0 → 6.11.0Breaking2Platform1New5Changed2Fixed4Other3

BreakingUpgrade verdict

2 breaking changes and a platform requirement change.

  • The Distribution class no longer uses an abstract base class, and creating one without implementing its methods is now deprecated.
  • The Distribution class can no longer be created directly, and any custom subclass must now provide the required methods before it can be used.
  • This version no longer works on Python older than 3.8, so users on older Python must upgrade Python before upgrading the package.
3 items need code or config changes

Python requirement changed in 6.8.0: >=3.7 → >=3.8.

Breaking2
Removes the ABC metaclass from Distribution and deprecates constructing Distribution objects without concrete methods.
Distribution
Declares Distribution as an abstract class, so it and subclasses cannot be instantiated unless they define the abstract methods.
Distribution
Platform1
Requires Python 3.8 or later.