Skip to content

Commit cab4149

Browse files
authored
Pin uv (#1039)
* Pin uv to 0.5.19 in CI and docker * Add uv installation note * Try bumping to new 0.5.22 release
1 parent 177e8a2 commit cab4149

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.docker/server_dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt update && apt install -y gnupg curl tree mdbtools && apt clean
1212
WORKDIR /opt
1313
RUN wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.9.0.deb && apt install ./mongodb-database-tools-*-100.9.0.deb
1414

15-
COPY --from=ghcr.io/astral-sh/uv:0.5 /uv /usr/local/bin/uv
15+
COPY --from=ghcr.io/astral-sh/uv:0.5.19 /uv /usr/local/bin/uv
1616
ENV UV_LINK_MODE=copy \
1717
UV_COMPILE_BYTECODE=1 \
1818
UV_PYTHON_DOWNLOADS=never \

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up uv
3131
uses: astral-sh/setup-uv@v5
3232
with:
33-
version: "0.5.x"
33+
version: "0.5.22"
3434
enable-cache: true
3535

3636
- name: Install dependencies
@@ -78,7 +78,7 @@ jobs:
7878
- name: Set up uv
7979
uses: astral-sh/setup-uv@v5
8080
with:
81-
version: "0.5.x"
81+
version: "0.5.22"
8282
enable-cache: true
8383

8484
- name: Install locked versions of dependencies

.github/workflows/dependable-bot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up uv
2929
uses: astral-sh/setup-uv@v5
3030
with:
31-
version: "0.4.x"
31+
version: "0.5.22"
3232
enable-cache: true
3333

3434
- name: Sync latest compatible dependencies and commit

INSTALL.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ You will need Python 3.10 or higher to run *datalab*; we recommend using a tool
4747
##### Installation with `uv` or `venv`
4848

4949
We recommend using [`uv`](https://github.com/astral-sh/uv) (see the linked repository or https://docs.astral.sh/uv for installation instructions) for managing your *datalab* installation.
50+
This is still a fledgling tool that is supporting a wider subset of features each day; for now, we recommend using the version pinned in our `.docker/server_dockerfile`, otherwise you may need to regenerate the `uv.lock` file locally (please do not commit this file).
51+
5052

5153
You could also use the standard library `venv` module, but this will not allow you to install pinned dependencies as easily, and is significantly slower than `uv`.
5254

0 commit comments

Comments
 (0)