mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-21 03:23: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
91
tests/integration/targets/pipx/files/spec.json
Normal file
91
tests/integration/targets/pipx/files/spec.json
Normal file
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
"pipx_spec_version": "0.1",
|
||||
"venvs": {
|
||||
"black": {
|
||||
"metadata": {
|
||||
"injected_packages": {},
|
||||
"main_package": {
|
||||
"app_paths": [
|
||||
{
|
||||
"__Path__": "/home/az/.local/pipx/venvs/black/bin/black",
|
||||
"__type__": "Path"
|
||||
},
|
||||
{
|
||||
"__Path__": "/home/az/.local/pipx/venvs/black/bin/blackd",
|
||||
"__type__": "Path"
|
||||
}
|
||||
],
|
||||
"app_paths_of_dependencies": {},
|
||||
"apps": [
|
||||
"black",
|
||||
"blackd"
|
||||
],
|
||||
"apps_of_dependencies": [],
|
||||
"include_apps": true,
|
||||
"include_dependencies": false,
|
||||
"man_pages": [],
|
||||
"man_pages_of_dependencies": [],
|
||||
"man_paths": [],
|
||||
"man_paths_of_dependencies": {},
|
||||
"package": "black",
|
||||
"package_or_url": "black",
|
||||
"package_version": "24.8.0",
|
||||
"pinned": false,
|
||||
"pip_args": [],
|
||||
"suffix": ""
|
||||
},
|
||||
"pipx_metadata_version": "0.5",
|
||||
"python_version": "Python 3.11.9",
|
||||
"source_interpreter": {
|
||||
"__Path__": "/home/az/.pyenv/versions/3.11.9/bin/python3.11",
|
||||
"__type__": "Path"
|
||||
},
|
||||
"venv_args": []
|
||||
}
|
||||
},
|
||||
"pycowsay": {
|
||||
"metadata": {
|
||||
"injected_packages": {},
|
||||
"main_package": {
|
||||
"app_paths": [
|
||||
{
|
||||
"__Path__": "/home/az/.local/pipx/venvs/pycowsay/bin/pycowsay",
|
||||
"__type__": "Path"
|
||||
}
|
||||
],
|
||||
"app_paths_of_dependencies": {},
|
||||
"apps": [
|
||||
"pycowsay"
|
||||
],
|
||||
"apps_of_dependencies": [],
|
||||
"include_apps": true,
|
||||
"include_dependencies": false,
|
||||
"man_pages": [
|
||||
"man6/pycowsay.6"
|
||||
],
|
||||
"man_pages_of_dependencies": [],
|
||||
"man_paths": [
|
||||
{
|
||||
"__Path__": "/home/az/.local/pipx/venvs/pycowsay/share/man/man6/pycowsay.6",
|
||||
"__type__": "Path"
|
||||
}
|
||||
],
|
||||
"man_paths_of_dependencies": {},
|
||||
"package": "pycowsay",
|
||||
"package_or_url": "pycowsay",
|
||||
"package_version": "0.0.0.2",
|
||||
"pinned": false,
|
||||
"pip_args": [],
|
||||
"suffix": ""
|
||||
},
|
||||
"pipx_metadata_version": "0.5",
|
||||
"python_version": "Python 3.11.9",
|
||||
"source_interpreter": {
|
||||
"__Path__": "/home/az/.pyenv/versions/3.11.9/bin/python3.11",
|
||||
"__type__": "Path"
|
||||
},
|
||||
"venv_args": []
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
3
tests/integration/targets/pipx/files/spec.json.license
Normal file
3
tests/integration/targets/pipx/files/spec.json.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue