Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 502fa1e

Browse files
committed
pin python inside devcontainer
When pinned outside via .python-version it will fail as soon as your system python does not match .python-version, which forces you to delete it or to install another python binary which isn't optimal. This pins python to 3.12 to match the devcontainer installed one.
1 parent fa0a3b5 commit 502fa1e

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.devfile/Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ RUN dnf -y install make git python3.12 libusbx python3-pyusb golang podman && dn
1717

1818
USER 10001
1919

20+
# Pin python to the 3.12 installed version
21+
RUN uv python pin 3.12
22+
2023
# This will make sure that we always run python from our venv instead
2124
RUN echo "alias python='uv run python'" >> /home/user/.bashrc

.github/workflows/documentation.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
version: "latest"
4343

4444
- name: Install Python
45-
run: uv python install
45+
run: |
46+
uv python pin 3.12
47+
uv python install
4648
4749
- name: Setup Pages
4850
id: pages
@@ -80,7 +82,9 @@ jobs:
8082
version: "latest"
8183

8284
- name: Install Python
83-
run: uv python install
85+
run: |
86+
uv python pin 3.12
87+
uv python install
8488
8589
- name: Build the documentation for the current version (no warnings allowed)
8690
run: make sync && make docs

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)