fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerCI: use Python from uv's virtualenvccfbfe996

master
1.1 KiB37 linesraw
1name: "Update Python and Sphinx"
2
3sources:
4  python_version:
5    kind: shell
6    spec:
7      command: |
8        build_tools/version-available-in-debian.sh stable python3-defaults
9  sphinx_version:
10    kind: shell
11    spec:
12      shell: bash
13      command: |
14        set -eo pipefail
15        tag=$(curl -fsS https://api.github.com/repos/sphinx-doc/sphinx/releases/latest |
16          jq -r .tag_name)
17        printf %s "$tag" | grep -qE '^v[0-9]+\.[0-9]\..*'
18        version=${tag#v}
19        echo "${version%.*}"
20
21targets:
22  update_python_version:
23    name: "Update Python version"
24    sourceid: python_version
25    kind: file
26    spec:
27      file: pyproject.toml
28      matchpattern: 'requires-python = ">=\d+.\d+".*'
29      replacepattern: 'requires-python = ">={{ source "python_version" }}" # updatecli.d/python.yml'
30  update_sphinx_version:
31    name: "Update Sphinx version"
32    sourceid: sphinx_version
33    kind: file
34    spec:
35      file: pyproject.toml
36      matchpattern: '"sphinx>=\d+\.\d+",(?:\s*#.*)?'
37      replacepattern: '"sphinx>={{ source "sphinx_version" }}", # updatecli.d/python.yml'