Debian Codegraph @

ansible_collections/community/general/plugins/doc_fragments/_pipx.py

raw
1 # Copyright (c) 2024, Alexei Znamensky <[email protected]>
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class ModuleDocFragment:
12 DOCUMENTATION = r"""
13 options:
14 global:
15 description:
16 - The module passes the C(--global) argument to C(pipx), to execute actions in global scope.
17 type: bool
18 default: false
19 executable:
20 description:
21 - Path to the C(pipx) installed in the system.
22 - If not specified, the module uses C(python -m pipx) to run the tool, using the same Python interpreter as ansible
23 itself.
24 type: path
25 requirements:
26 - This module requires C(pipx) version 1.7.0 or above.
27 - Please note that C(pipx) 1.7.0 requires Python 3.8 or above.
28 - Please note that C(pipx) 1.8.0 requires Python 3.9 or above.
29 notes:
30 - This module does not install the C(pipx) python package, however that can be easily done with the module M(ansible.builtin.pip).
31 - This module does not require C(pipx) to be in the shell C(PATH), but it must be loadable by Python as a module, meaning
32 that C(python -m pipx) must work.
33 - This module honors C(pipx) environment variables such as but not limited to E(PIPX_HOME) and E(PIPX_BIN_DIR) passed using
34 the R(environment Ansible keyword, playbooks_environment).
35 - This module disabled emojis in the output of C(pipx) commands to reduce clutter. In C(pipx) 1.8.0, the environment variable
36 E(USE_EMOJI) was renamed to E(PIPX_USE_EMOJI) and for compatibility with both versions, starting in community.general
37 11.4.0, this module sets them both to C(0) to disable emojis.
38 seealso:
39 - name: C(pipx) command manual page
40 description: Manual page for the command.
41 link: https://pipx.pypa.io/latest/docs/
42 """