Open mdickinson opened 3 years ago
Currently, using importlib.resources
is unpleasant if one also wants to remain compatible with Python versions earlier than 3.9: in Python 3.11, essentially all of the pre-3.9 version of importlib.resources
is deprecated. I suggest we close this issue for now. We can revisit to use importlib.resources
once Python 3.8 and older are no longer a concern.
We could use pkg_resources
in the interim.
Some of the unit tests are currently using
__file__
to locate test data. We should useimportlib.resources
instead.