mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-06 10:40:32 -07:00
* pipx/pipx_info: add new parameters * add test for --global, refactor int test main file * ensure initial state of test * ensure PATH includes /usr/local/bin * ensure PATH includes /usr/local/bin for entire block * ensure minimum version of pip * ensure pipx 1.6.0 is installed * push recommendation for pipx 1.7.0 instead of 1.6.0 * add changelog frag * add deprecatons to changelog frag * add deprecatons to changelog frag, better * Update changelogs/fragments/8793-pipx-global.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/8793-pipx-global.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
---
|
|
# Copyright (c) Ansible Project
|
|
# 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
|
|
community.general.pipx:
|
|
name: pylint
|
|
state: absent
|
|
|
|
- name: install application pylint
|
|
community.general.pipx:
|
|
name: pylint
|
|
register: install_pylint
|
|
|
|
- name: inject packages
|
|
community.general.pipx:
|
|
state: inject
|
|
name: pylint
|
|
inject_packages:
|
|
- licenses
|
|
register: inject_pkgs_pylint
|
|
|
|
- name: inject packages with apps
|
|
community.general.pipx:
|
|
state: inject
|
|
name: pylint
|
|
inject_packages:
|
|
- black
|
|
install_apps: true
|
|
register: inject_pkgs_apps_pylint
|
|
|
|
- name: cleanup pylint
|
|
community.general.pipx:
|
|
state: absent
|
|
name: pylint
|
|
register: uninstall_pylint
|
|
|
|
- name: check assertions inject_packages
|
|
assert:
|
|
that:
|
|
- install_pylint is changed
|
|
- inject_pkgs_pylint is changed
|
|
- '"pylint" in inject_pkgs_pylint.application'
|
|
- '"licenses" in inject_pkgs_pylint.application["pylint"]["injected"]'
|
|
- inject_pkgs_apps_pylint is changed
|
|
- '"pylint" in inject_pkgs_apps_pylint.application'
|
|
- '"black" in inject_pkgs_apps_pylint.application["pylint"]["injected"]'
|
|
- uninstall_pylint is changed
|