[PR #8675/5b2711bb backport][stable-9] pipx - add suffix parameter (#8721)

pipx - add suffix parameter (#8675)

* initial commit

* add changelog frag

* Add idempotency when using suffix

(cherry picked from commit 5b2711bbd3)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2024-08-07 15:12:40 +02:00
committed by GitHub
parent 9842b057b0
commit 7c9dd8d8ad
4 changed files with 71 additions and 15 deletions

View File

@@ -28,7 +28,6 @@ def pipx_runner(module, command, **kwargs):
module,
command=command,
arg_formats=dict(
state=fmt.as_map(_state_map),
name=fmt.as_list(),
name_source=fmt.as_func(fmt.unpack_args(lambda n, s: [s] if s else [n])),
@@ -43,6 +42,7 @@ def pipx_runner(module, command, **kwargs):
_list=fmt.as_fixed(['list', '--include-injected', '--json']),
editable=fmt.as_bool("--editable"),
pip_args=fmt.as_opt_eq_val('--pip-args'),
suffix=fmt.as_opt_val('--suffix'),
),
environ_update={'USE_EMOJI': '0'},
check_rc=True,