mdbartos / pysheds

:earth_americas: Simple and fast watershed delineation in python.
GNU General Public License v3.0
702 stars 188 forks source link

Add capability to run with Python 3.12 #242

Closed mplough-kobold closed 4 months ago

mplough-kobold commented 5 months ago

Python's built-in distutils module was removed in Python 3.12. Pysheds used distutils.LooseVersion to check pyproj versions. This PR uses looseversion as a drop-in replacement for this functionality, adding compatibility with Python 3.12 and minimizing potential disruption to use with older Python versions.

This PR also adds Python 3.12 to the CI run matrix, ensuring that compatibility with Python 3.12 will be preserved.

mdbartos commented 4 months ago

Looks good to me!