bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 29 forks source link

Use importlib resources instead of pkg_resources #273

Closed ksunden closed 1 year ago

ksunden commented 1 year ago

Description

replace pkg_resources with importlib.resources

Note that this introduces a dependency on the backport of importlib-resources, which could technically be a version gated dependency, but decided not to bother with that.

I also expired the (related) importlib-metadata python version gating, as that was only in python < 3.8, which is no longer supported anyway, and thus is unreachable

Motivation and Context

Setuptools is removing pkg_resources

How Has This Been Tested?

Standard pytest passes, no longer imports pkg_resources