uv packages installation improvement
This commit is contained in:
parent
26737e89b4
commit
fea1aa7b7c
1 changed files with 16 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue