Deltares / xugrid

Xarray and unstructured grids
https://deltares.github.io/xugrid/
MIT License
58 stars 8 forks source link

Update minimal python version to 3.9 after importlib usage #174

Closed veenstrajelmer closed 9 months ago

veenstrajelmer commented 9 months ago

By moving from pkg_resources to importlib, python 3.8 support was accidentally removed: https://github.com/Deltares/xugrid/commit/86e9013c0c658b4e01c36fb161d312357683d8ec

importlib.resources.files is only available from python 3.9: https://docs.python.org/3/library/importlib.resources.html#importlib.resources.files

This is fine, but the minimal python version in the pyproject.toml has to be updated. Also, it might be wise to add testbanks for multiple python versions.