mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-21 19:43:59 -07:00
[PR #8809/43f8adf1 backport][stable-9] pipx: add new states (#8834)
pipx: add new states (#8809)
* ensure minimum version of pip
* ensure pipx 1.7.0 is installed
* pipx: add new states/params
* add tests
* add license to json file
* Update plugins/modules/pipx.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* fix uninject tests
* add changelog frag
* fix doc per review
* refactor license out of pipx spec file
* Update plugins/modules/pipx.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update tests/integration/targets/pipx/files/spec.json.license
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 43f8adf1a5
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
7c3b441246
commit
73a1ac2f1c
10 changed files with 377 additions and 11 deletions
|
@ -3,17 +3,17 @@
|
|||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- name: ensure application pylint is uninstalled
|
||||
- name: Ensure application pylint is uninstalled
|
||||
community.general.pipx:
|
||||
name: pylint
|
||||
state: absent
|
||||
|
||||
- name: install application pylint
|
||||
- name: Install application pylint
|
||||
community.general.pipx:
|
||||
name: pylint
|
||||
register: install_pylint
|
||||
|
||||
- name: inject packages
|
||||
- name: Inject packages
|
||||
community.general.pipx:
|
||||
state: inject
|
||||
name: pylint
|
||||
|
@ -21,7 +21,7 @@
|
|||
- licenses
|
||||
register: inject_pkgs_pylint
|
||||
|
||||
- name: inject packages with apps
|
||||
- name: Inject packages with apps
|
||||
community.general.pipx:
|
||||
state: inject
|
||||
name: pylint
|
||||
|
@ -30,13 +30,13 @@
|
|||
install_apps: true
|
||||
register: inject_pkgs_apps_pylint
|
||||
|
||||
- name: cleanup pylint
|
||||
- name: Cleanup pylint
|
||||
community.general.pipx:
|
||||
state: absent
|
||||
name: pylint
|
||||
register: uninstall_pylint
|
||||
|
||||
- name: check assertions inject_packages
|
||||
- name: Check assertions inject_packages
|
||||
assert:
|
||||
that:
|
||||
- install_pylint is changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue