datasets icon indicating copy to clipboard operation
datasets copied to clipboard

Remove usage of deprecated `distutils.version` module

Open lgeiger opened this issue 2 years ago • 0 comments

distutils has been deprecated in https://peps.python.org/pep-0632/ and will be completely removed in 3.12.

distutils.version.LooseVersion already started throwing deprecation warnings in Python 3.9 so this PR replaces its usage with packaging.version.parse as the recommended replacement.

Technically this adds packaging as a new direct dependency, but in practice this doesn't matter since it will likely be already installed as an indirect dependency anyway.

lgeiger avatar Apr 07 '22 00:04 lgeiger