mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pipx: change parameter formatter for pip_args (#7506)
* change parameter formatter for pip_args * add changelog frag
This commit is contained in:
parent
6a514b6843
commit
c2e578cb14
3 changed files with 28 additions and 1 deletions
2
changelogs/fragments/7506-pipx-pipargs.yml
Normal file
2
changelogs/fragments/7506-pipx-pipargs.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- pipx module utils - change the CLI argument formatter for the `pip_args` parameter (https://github.com/ansible-collections/community.general/issues/7497, https://github.com/ansible-collections/community.general/pull/7506).
|
|
@ -42,7 +42,7 @@ def pipx_runner(module, command, **kwargs):
|
|||
system_site_packages=fmt.as_bool("--system-site-packages"),
|
||||
_list=fmt.as_fixed(['list', '--include-injected', '--json']),
|
||||
editable=fmt.as_bool("--editable"),
|
||||
pip_args=fmt.as_opt_val('--pip-args'),
|
||||
pip_args=fmt.as_opt_eq_val('--pip-args'),
|
||||
),
|
||||
environ_update={'USE_EMOJI': '0'},
|
||||
check_rc=True,
|
||||
|
|
|
@ -314,3 +314,28 @@
|
|||
that:
|
||||
- install_tox_sitewide is changed
|
||||
- usrlocaltox.stat.exists
|
||||
|
||||
##############################################################################
|
||||
# Test for issue 7497
|
||||
- name: ensure application pyinstaller is uninstalled
|
||||
community.general.pipx:
|
||||
name: pyinstaller
|
||||
state: absent
|
||||
|
||||
- name: Install Python Package pyinstaller
|
||||
community.general.pipx:
|
||||
name: pyinstaller
|
||||
state: present
|
||||
system_site_packages: true
|
||||
pip_args: "--no-cache-dir"
|
||||
register: install_pyinstaller
|
||||
|
||||
- name: cleanup pyinstaller
|
||||
community.general.pipx:
|
||||
name: pyinstaller
|
||||
state: absent
|
||||
|
||||
- name: check assertions
|
||||
assert:
|
||||
that:
|
||||
- install_pyinstaller is changed
|
||||
|
|
Loading…
Reference in a new issue