Prepare for version 11: pipx/pipx_info (#10137)

* Remove various deprecated module helper things.

* pipx/pipx_info: pipx 1.7.0 required from c.g. 11.0.0 onwards

* restore chglog frag

* add changelog frag

* fix chglog

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2025-05-28 08:55:41 +12:00 committed by GitHub
parent 13e3aed86d
commit a249996f91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 61 additions and 63 deletions

View file

@ -211,6 +211,7 @@ version:
from ansible_collections.community.general.plugins.module_utils.module_helper import StateModuleHelper
from ansible_collections.community.general.plugins.module_utils.pipx import pipx_runner, pipx_common_argspec, make_process_dict
from ansible_collections.community.general.plugins.module_utils.pkg_req import PackageRequirement
from ansible_collections.community.general.plugins.module_utils.version import LooseVersion
from ansible.module_utils.facts.compat import ansible_facts
@ -293,6 +294,9 @@ class PipX(StateModuleHelper):
rc, out, err = ctx.run()
self.vars.version = out.strip()
if LooseVersion(self.vars.version) < LooseVersion("1.7.0"):
self.do_raise("The pipx tool must be at least at version 1.7.0")
def __quit_module__(self):
self.vars.application = self._retrieve_installed()