wcwidth icon indicating copy to clipboard operation
wcwidth copied to clipboard

Switch to using importlib.metadata

Open s-t-e-v-e-n-k opened this issue 3 years ago • 1 comments

pkg_resources is a little heavyweight, and has some rather glaring shortcomings for checking the metadata of an install Python package. importlib.metadata is contained in the standard library (as of 3.8), and provides a much nicer interface. Switch to using it, falling back to importlib_metadata if the Python version is too old.

s-t-e-v-e-n-k avatar Jul 18 '22 13:07 s-t-e-v-e-n-k

Thanks for this, this all seems sensible. I will have this PR merged for next release with #61

I was just working with pkg_resources in my day job so I appreciate you teaching me about this importlib.metadata :)

jquast avatar Jul 22 '22 16:07 jquast