From d4fe4dbeaa6c2a86991e77ba072fa4d2acf40e1c Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Fri, 25 Aug 2023 00:21:02 +0200 Subject: [PATCH] remove support for older distros, add wrning about it --- .gitea/workflows/test.yml | 2 +- README.md | 5 ++++- meta/main.yml | 2 -- vars/main.yml | 3 +++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index fd684f6..5264c76 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -34,7 +34,7 @@ jobs: password: ${{ secrets.ACTIONS_TOKEN }} strategy: matrix: - test_os: [debian11, debian12, ubuntu2004, ubuntu2204] + test_os: [debian12, ubuntu2204] scenario: [default, with_custom_packages] env: ANSIBLE_HOST_KEY_CHECKING: 'false' diff --git a/README.md b/README.md index bc6fd3e..54b1c0c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ manage_pipx_packages ========= -A brief description of the role goes here. +This role enables you to manage python packages using pipx, to comply with the [PEP668](https://peps.python.org/pep-0668/) on **debian-based** distributions. It can be used on its own , or be called by other roles the install/remove packages on demand. + +> **Warning** +> This role only supports ubuntu versions starting at 22.04, and debian versions starting a Debian 12. This is due to the pipx package being to out-of-date, or completely absent on older distributions. However, these older distributions typically do not enforce the PEP668, so you can use [ednxzu.manage_pip_packages](https://github.com/ednxzu/manage_pip_packages) instead. Requirements ------------ diff --git a/meta/main.yml b/meta/main.yml index 16ffc5f..c70ce57 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -10,11 +10,9 @@ galaxy_info: platforms: - name: Ubuntu versions: - - focal - jammy - name: Debian versions: - - bullseye - bookworm galaxy_tags: - 'ubuntu' diff --git a/vars/main.yml b/vars/main.yml index 2db69be..394e78b 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -4,6 +4,9 @@ manage_pipx_packages_required_packages: - name: python3 version: latest state: present + - name: python3-venv + version: latest + state: present - name: pipx version: latest state: present