mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-12 21:56:21 +00:00
#1347 passed the supported Python range to the remote install.sh as INFINITO_PYTHON_REQUIRES. Every INFINITO_* name is a key of the generated .env, so test_every_referenced_infinito_key_is_registered fails on main for this one, which no registry entry can carry: its value is derived from pyproject.toml's requires-python, the single source, and a default in default.env would be a second copy of the range. The task environment and the script now call it DEV_PYTHON_REQUIRES; behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
551 B
YAML
18 lines
551 B
YAML
---
|
|
- name: 📂 Include dependency 'sys-pip'
|
|
include_role:
|
|
name: sys-pip
|
|
when: run_once_sys_pip is not defined
|
|
|
|
- name: 📦 Install and prefer the highest supported Python as default
|
|
ansible.builtin.script: "{{ role_path }}/files/shell/install.sh"
|
|
environment:
|
|
SKIP_DOCKER_APT_SANITIZER: "1"
|
|
DEV_PYTHON_REQUIRES: >-
|
|
{{ lookup('file', lookup('path_absolute', 'pyproject.toml'))
|
|
| regex_search('(?m)^requires-python\\s*=\\s*"([^"]+)"', '\\1')
|
|
| first }}
|
|
become: true
|
|
|
|
- include_tasks: utils/once/flag.yml
|