Files
computer-playbook/roles/dev-python/tasks/00_core.yml
T
kevinveenbirkenbachandClaude Opus 5.5 0bdb14cc1d fix(dev-python): name the requires-python hand-over outside the .env key space
#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>
2026-11-03 19:55:27 +01:00

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