Find imports of the deprecated distutils.version module

Proprietary

Mark each import of the deprecated distutils.version module, whose LooseVersion and StrictVersion should be migrated to packaging.version.Version. Note: Manual migration is required as packaging.version.Version is not a drop-in replacement. Only import statements are marked, not the uses of what they import.

org.openrewrite.python.migrate.ReplaceDistutilsVersion
mod run . --recipe=org.openrewrite.python.migrate.ReplaceDistutilsVersion

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.