jswhit / pygrib

Python interface for reading and writing GRIB data
https://jswhit.github.io/pygrib
MIT License
319 stars 93 forks source link

Switch dynamic version handling from pkg_resources (in setuptools) to packaging #229

Closed noritada closed 4 months ago

noritada commented 4 months ago

This PR fixes ModuleNotFoundError resulting from missing dependency on setuptools.

In the executable code of pygrib, setuptools is only used for version comparison purposes, and since setuptools is larger than necessary, this commit replaces it with packaging, which is a more compact module containing reusable core utilities for Python packaging compliant with recent PEPs.

Closes #228.