esheldon / fitsio

A python package for FITS input/output wrapping cfitsio
GNU General Public License v2.0
134 stars 58 forks source link

Convert testing to pytest #366

Closed esheldon closed 1 year ago

esheldon commented 1 year ago

@beckermr do you know how to pass the "--use-system-fitsio" stuff when using pip?

beckermr commented 1 year ago

Ahhhh you found it! It is something like this. Sorry I did not get to it sooner!

esheldon commented 1 year ago

Looks like I got it right. Not well documented.

esheldon commented 1 year ago

Not sure why it works on some python versions and not others

beckermr commented 1 year ago

there are errors due to

           ref = importlib.resources.files("fitsio") / 'test_images' / 'test_gzip_compressed_image.fits.fz'  # noqa
E           AttributeError: module 'importlib.resources' has no attribute 'files'

Older versions of python do not support this.

esheldon commented 1 year ago

Thanks