uv packages installation improvement

This commit is contained in:
Ivan Golikov 2025-01-16 18:05:34 +01:00
parent 26737e89b4
commit fea1aa7b7c

View file

@ -25,14 +25,20 @@
apt_packages:
- fd-find
uv_tools_default_python: '3.12'
uv_packages:
- aider-chat
- asciinema
- poetry
- basedpyright
- pre-commit
- posting
- ipython
# python 3.12 is used by default
# if package requires another version, specify item
# - name: numpy
# python: 3.8
- name: aider-chat
- name: asciinema
- name: poetry
- name: basedpyright
- name: pre-commit
- name: posting
- name: ipython
macos_fish_path: /usr/local/bin/fish
arch_fish_path: /usr/bin/fish
@ -113,7 +119,9 @@
state: absent
- name: Install uv packages
ansible.builtin.command: "uv tool install {{ item }}"
ansible.builtin.command: "uv tool install --python {{ item.python | default(uv_tools_default_python) }} {{ item.name }}"
register: uv_install_result
changed_when: "'is already installed' not in uv_install_result.stderr"
loop: "{{ uv_packages }}"
tags:
- dev_tools