Unvendor distutils.version (#371)

* Unvendor distutils.version.

* Fix version.

* Assume the collection requires ansible-core 2.12+.

This is valid since this only get merged for 3.0.0, which
will drop support for quite a few more ansible-core versions.

* Mark for re-export.
This commit is contained in:
Felix Fontein
2025-04-28 14:30:37 +02:00
committed by GitHub
parent 4e8a0e456b
commit 23de865563
4 changed files with 5 additions and 401 deletions

View File

@@ -12,9 +12,7 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
# Once we drop support for Ansible 2.9, ansible-base 2.10, and ansible-core 2.11, we can
# remove the _version.py file, and replace the following import by
#
# from ansible.module_utils.compat.version import LooseVersion
from ansible.module_utils.compat.version import LooseVersion
from ._version import LooseVersion # noqa: F401, pylint: disable=unused-import
__all__ = ("LooseVersion",)