enthought / pyface

pyface: traits-capable windowing framework
Other
105 stars 55 forks source link

Remove "importlib_metadata" compatibility layer #999

Open rahulporuri opened 3 years ago

rahulporuri commented 3 years ago

At the moment, the codebase relies on the external package importlib_metadata but starting Python 3.10, we will be able to rely on importlib.metadata in the standard library. When we can drop support for Python < 3.10, we can remove the compatibility layer which tries to import the external importlib_metadata and falls back to standard library importlib.metadata if it doesn't exist.

Additionally, compatibility code around the presence of the select interface on entry point objects can also be removed when we drop support for Python < 3.10.

mdickinson commented 3 years ago

With the current version of #1000, we can drop the importlib_metadata requirement at Python 3.8 rather than 3.10. We still need to wait for 3.10 before being able to drop the select interface compatibility code.