Find imports of the deprecated distutils.version module
ProprietaryMark 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. ReplaceDistutilsVersionmod run . --recipe= org. openrewrite. python. migrate. ReplaceDistutilsVersionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.