File tree Expand file tree Collapse file tree 6 files changed +3005
-210
lines changed Expand file tree Collapse file tree 6 files changed +3005
-210
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ jobs:
24
24
fetch-depth : 0
25
25
26
26
- uses : actions/cache@v4
27
- # actions/setup-python poetry cache feature requires poetry to be installed beforehand
28
- # which makes use of it extremely awkward.
29
27
with :
30
28
path : |
31
- /home/runner/.cache/pip
32
29
/home/runner/.cache/pypoetry
33
- # python and poetry version are in docs/pyproject.toml
34
- key : docs-cache-${{ runner.os }}-${{ hashFiles('docs/pyproject.toml', 'docs/Makefile') }}
30
+ key : docs-cache-${{ runner.os }}-${{ hashFiles('docs/poetry.lock') }}
35
31
36
- - name : Set up Python
37
- uses : actions /setup-python@v5
32
+ - name : Install uv
33
+ uses : astral-sh /setup-uv@v6
38
34
with :
39
- python-version-file : docs/pyproject.toml
35
+ version-file : ' docs/pyproject.toml'
36
+ enable-cache : true
37
+ cache-dependency-glob : |
38
+ docs/pyproject.toml
39
+ docs/uv.lock
40
40
41
41
- name : Set up env
42
42
run : make -C docs setupenv
Original file line number Diff line number Diff line change @@ -26,19 +26,19 @@ jobs:
26
26
fetch-depth : 0
27
27
28
28
- uses : actions/cache@v4
29
- # actions/setup-python poetry cache feature requires poetry to be installed beforehand
30
- # which makes use of it extremely awkward.
31
29
with :
32
30
path : |
33
- /home/runner/.cache/pip
34
31
/home/runner/.cache/pypoetry
35
- # python and poetry version are in docs/pyproject.toml
36
- key : docs-cache-${{ runner.os }}-${{ hashFiles('docs/pyproject.toml', 'docs/Makefile') }}
32
+ key : docs-cache-${{ runner.os }}-${{ hashFiles('docs/poetry.lock') }}
37
33
38
- - name : Set up Python
39
- uses : actions /setup-python@v5
34
+ - name : Install uv
35
+ uses : astral-sh /setup-uv@v6
40
36
with :
41
- python-version-file : docs/pyproject.toml
37
+ version-file : ' docs/pyproject.toml'
38
+ enable-cache : true
39
+ cache-dependency-glob : |
40
+ docs/pyproject.toml
41
+ docs/uv.lock
42
42
43
43
- name : Set up env
44
44
run : make -C docs setupenv
Original file line number Diff line number Diff line change 1
1
# Global variables
2
2
# You can set these variables from the command line.
3
+ SHELL = bash
3
4
POETRY = poetry
4
5
SPHINXOPTS = -j auto
5
6
SPHINXBUILD = $(POETRY ) run sphinx-build
@@ -19,8 +20,7 @@ all: dirhtml
19
20
# Setup commands
20
21
.PHONY : setupenv
21
22
setupenv :
22
- pip install -q poetry
23
- sudo apt-get install gcc python3-dev libev4 libev-dev
23
+ uv pip install -r <( uv pip compile pyproject.toml)
24
24
25
25
.PHONY : setup
26
26
setup :
You can’t perform that action at this time.
0 commit comments