Skip to content

Commit 5c08dd1

Browse files
committed
Change CI to use uv instead of pip / requirements.txt
Upstream (vimhelp) changed the dependency management system and we need to update our steps to match.
1 parent 25dfbc2 commit 5c08dd1

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ jobs:
6565
- uses: actions/setup-python@v6
6666
with:
6767
python-version: '3.x'
68-
cache: 'pip'
69-
cache-dependency-path: 'vimhelp/requirements.txt'
7068

71-
- name: Set up vimhelp
72-
run: |
73-
pip install -r vimhelp/requirements.txt
69+
- name: Install the latest version of uv
70+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
71+
with:
72+
enable-cache: true
7473

7574
- name: Build the documentation
7675
run: |
@@ -82,7 +81,7 @@ jobs:
8281
echo "Version string: $version_string"
8382
8483
cd vimhelp
85-
python3 scripts/h2h.py -i "$MACVIM_DIR/runtime/doc" -o ../build --project macvim --web-version --output-tags-json --version "$version_string" --commit "$MACVIM_COMMIT"
84+
uv run scripts/h2h.py -i "$MACVIM_DIR/runtime/doc" -o ../build --project macvim --web-version --output-tags-json --version "$version_string" --commit "$MACVIM_COMMIT"
8685
8786
- name: Generate sitemap
8887
run: |

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@ To run the scripts locally, follow vimhelp's [README](vimhelp/README.md) to set
2626

2727
```
2828
cd vimhelp
29-
python3 -m venv --upgrade-deps .venv
30-
.venv/bin/pip install -r requirements.txt
31-
```
32-
33-
Source the venv:
34-
35-
```
36-
. .venv/bin/activate
29+
uv sync
3730
```
3831

3932
Then run the script (make sure to substitute `$macvim_dir` with the directory that you have MacVim cloned to):

0 commit comments

Comments
 (0)