Closed rmjarvis closed 1 year ago
Ohhhh man why. We need to move to importlib.resources and the back ports. What a pain.
https://setuptools.pypa.io/en/latest/pkg_resources.html
Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata, and their backports (importlib_resources, importlib_metadata). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.
I'm getting deprecation warnings from importing fitsio lately. At least on 3.10 (I didn't try other versions).
It looks like the whole pkg_resources API is deprecated now and fitsio imports it as a top-line import, even though AFAICT it's only used in testing.
The easiest fix would be to move the import into the testGZIPTileCompressedReadLosslessAstropy function, so it would only trigger if someone ran that function. (Presumably just the CI test suite I suspect.) But probably better to figure out what the new blessed API is for this and switch over.
To replicate: