feat: install python tools with uv

This commit is contained in:
Matthieu Bessat 2025-03-16 23:18:46 +01:00
parent 2503391427
commit f133c39a20
4 changed files with 12 additions and 9 deletions

View file

@ -11,8 +11,6 @@ common:
- base-devel
- name: mosh
desc: The best to connect to remote server!
- name: python-pipx
desc: To install python stuff
deps:
- name: aur/downgrade
- name: pacman-contrib

View file

@ -1,4 +1,5 @@
base:
- mkdocs
- pipdeptree
- copyparty
- lesspass
@ -7,8 +8,7 @@ base:
- mkdocs
- linkchecker
- imagehash
- pylint
multimedia:
- azlyrics2
- epy-reader
- name: rembg
desc: Remove image background

View file

@ -0,0 +1,5 @@
- name: Install tool with UV
register: uv_tool_install
ansible.builtin.command: |
uv tool install {{ item }}
changed_when: "'already installed' not in uv_tool_install.stdout"

View file

@ -121,6 +121,11 @@
- shell: "rm -rf /etc/pacman.d/gnupg && pacman-key --init && pacman-key --populate archlinux"
- shell: "mkdir -p {{ home }}/.cache/monakhos; echo -n $(date --iso-8601=d) > {{ home }}/.cache/monakhos/pacman_key_state"
- name: Install global tools (Python packages)
include_role:
name: uv_tools
with_items: "{{ lookup('pipe', 'cat python_packages.yaml | python3 parse_arch_packages.py all') | from_json }}"
# AUR SETUP
- name: Create the aur_builder user
become: yes
@ -344,11 +349,6 @@
include_role:
name: popequer_notebook
- name: Install pip packages
community.general.pipx:
name: "{{ item }}"
with_items: "{{ lookup('pipe', 'cat pip_packages.yaml | python3 parse_arch_packages.py all') | from_json }}"
- name: Enable bluetooth service
become: true
ansible.builtin.systemd_service: