ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
81 stars 96 forks source link

Switch from distutils LooseVersion to packaging.version #940

Closed cottsay closed 2 years ago

cottsay commented 2 years ago

The distutils package is deprecated. It seems that the 'packaging' package provides is a widely-adopted and viable alternative to LooseVersion.

https://packaging.pypa.io/en/latest/version.html#packaging.version.parse

cottsay commented 2 years ago

Alas, most of the versions we're parsing here end up as a LegacyVersion instance, which is also deprecated. So this does not improve the situation.