Files
fish-shell/updatecli.d/python.yml
Johannes Altmanninger fe3c42af9e Work around github actions python failure
github actions runners have python 3.12, so the upgrade to debian
stable's 3.13 broke things:

	+ env UV_PYTHON=python uv --no-managed-python lock --check --exclude-newer=2026-02-01T13:00:00Z
	Using CPython 3.12.3 interpreter at: /usr/bin/python
	error: The requested interpreter resolved to Python 3.12.3, which is incompatible with the project's Python requirement: `>=3.13` (from `project.requires-python`)
	Error: Process completed with exit code 2.

Steps:
1. edit pyproject.toml and
2. uv lock --upgrade --exclude-newer="$(awk -F'"' <uv.lock '/^exclude-newer[[:space:]]*=/ {print $2}')"

In future we should maybe use managed python?
2026-02-08 14:03:53 +11:00

39 lines
1.1 KiB
YAML

name: "Update Python and Sphinx"
sources:
python_version:
kind: shell
spec:
command: |
# TODO github actions might not have this
build_tools/version-available-in-debian.sh stable python3-defaults
sphinx_version:
kind: shell
spec:
shell: bash
command: |
set -eo pipefail
tag=$(curl -fsS https://api.github.com/repos/sphinx-doc/sphinx/releases/latest |
jq -r .tag_name)
printf %s "$tag" | grep -qE '^v[0-9]+\.[0-9]\..*'
version=${tag#v}
echo "${version%.*}"
targets:
update_python_version:
name: "Update Python version"
sourceid: python_version
kind: file
spec:
file: pyproject.toml
matchpattern: 'requires-python = ">=\d+.\d+".*'
replacepattern: 'requires-python = ">={{ source "python_version" }}" # updatecli.d/python.yml'
update_sphinx_version:
name: "Update Sphinx version"
sourceid: sphinx_version
kind: file
spec:
file: pyproject.toml
matchpattern: '"sphinx>=\d+\.\d+",(?:\s*#.*)?'
replacepattern: '"sphinx>={{ source "sphinx_version" }}", # updatecli.d/python.yml'