Skip to content

Commit f19e2b3

Browse files
Copilotjason810496
andcommitted
Address code review feedback: use uv sync in Dockerfile and relax pytest version
Co-authored-by: jason810496 <[email protected]>
1 parent af1d58e commit f19e2b3

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ ENV PATH="/root/.local/bin:$PATH"
3333

3434
# copy project requirement files here to ensure they will be cached.
3535
WORKDIR $PYSETUP_PATH
36-
COPY pyproject.toml ./
36+
COPY pyproject.toml uv.lock ./
3737

3838
# install runtime deps
3939
RUN --mount=type=cache,target=/root/.cache \
40-
uv venv $VENV_PATH && \
41-
uv pip install --python=$VENV_PATH -e .[dev]
40+
uv sync --extra dev
4241

4342
FROM python:3.12-slim-bookworm as runtime
4443

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dev = [
4747
"psycopg2-binary>=2.9.9",
4848
"psycopg2cffi>=2.9.0",
4949
# testing
50-
"pytest==7.4.4",
50+
"pytest>=7.4.4",
5151
"pytest-lazy-fixture>=0.6.3",
5252
"pytest-cov>=5.0.0",
5353
"pytest-xdist>=3.6.1",

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)