forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(devcontainers): Replace PDM with UV (litestar-org#3879)
* fix(devcontainers): Replace PDM with UV * chore(devcontainers): Address review comments * chore(devcontainers): Better approach to get uv --------- Co-authored-by: Alc-Alc <alc@localhost> Co-authored-by: Jacob Coffee <[email protected]>
- Loading branch information
1 parent
db2e4ac
commit 69181fd
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# [Choice] Python version (use -bookworm or -bullseye variants on local arm64/Apple Silicon): 3, 3.13, 3.12, 3.11, 3.10, 3.9, 3.8, 3-bookworm, 3.13-bookworm, 3.12-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3.8-bookworm, 3-bullseye, 3.11-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3-buster, 3.11-buster, 3.10-buster, 3.9-buster, 3.8-buster | ||
ARG VARIANT=3.12-bookworm | ||
FROM python:${VARIANT} | ||
ARG VERSION=3.12 | ||
ARG VARIANT=-bookworm | ||
FROM python:${VERSION}${VARIANT} | ||
|
||
ARG VERSION | ||
ENV UV_LOCKED=1 UV_PYTHON=${VERSION} | ||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||
|
||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get purge -y fish | ||
|
||
RUN python3 -m pip install --upgrade setuptools cython pip pdm | ||
RUN python3 -m pip install --upgrade setuptools cython pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,8 @@ | |
}, | ||
"forwardPorts": [8000], | ||
"postCreateCommand": [ | ||
"pdm", | ||
"install" | ||
"uv", | ||
"sync" | ||
], | ||
"remoteUser": "vscode" | ||
} |