Skip to content

Commit 3c4b099

Browse files
committed
Don't try to install dev dependencies in build
1 parent 15df9c3 commit 3c4b099

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.docker/Dockerfile.alpine

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.5.5 /uv /uvx /bin/
3434
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
3535

3636
# Instead of restarting the shell, use uv directly from its installed location.
37-
RUN uv sync --extra test --extra webservice --extra watcher
37+
RUN uv sync --extra test --extra webservice --extra watcher --no-dev
3838

3939
FROM base
4040

.github/workflows/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install uv
4343
uses: astral-sh/setup-uv@v4
4444
with:
45-
version: "0.4.27"
45+
version: "0.5.x"
4646

4747
- name: "Set up Python"
4848
uses: actions/setup-python@v5
@@ -84,7 +84,7 @@ jobs:
8484
8585
- name: Install Python packages
8686
run: |
87-
uv sync --extra test
87+
uv sync --extra test --no-dev
8888
8989
- name: Report versions
9090
run: |
@@ -138,7 +138,7 @@ jobs:
138138
- name: Install uv
139139
uses: astral-sh/setup-uv@v4
140140
with:
141-
version: "0.4.27"
141+
version: "0.5.x"
142142

143143
- name: "Set up Python"
144144
uses: actions/setup-python@v5
@@ -147,7 +147,7 @@ jobs:
147147

148148
- name: Install Python packages
149149
run: |
150-
uv sync --extra test
150+
uv sync --extra test --no-dev
151151
152152
- name: Report versions
153153
run: |
@@ -188,7 +188,7 @@ jobs:
188188
- name: Install uv
189189
uses: astral-sh/setup-uv@v4
190190
with:
191-
version: "0.4.27"
191+
version: "0.5.x"
192192

193193
- name: "Set up Python"
194194
uses: actions/setup-python@v5
@@ -202,7 +202,7 @@ jobs:
202202
203203
- name: Install Python packages
204204
run: |
205-
uv sync --extra test
205+
uv sync --extra test --no-dev
206206
207207
- name: Test
208208
run: |
@@ -227,7 +227,7 @@ jobs:
227227
- name: Install uv
228228
uses: astral-sh/setup-uv@v4
229229
with:
230-
version: "0.4.27"
230+
version: "0.5.x"
231231

232232
- name: Make wheels and sdist
233233
run: |

pyproject.toml

+4-6
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ filterwarnings = [
118118
[[tool.mypy.overrides]]
119119
module = [
120120
'pluggy',
121-
'tqdm',
122-
'coloredlogs',
123121
'img2pdf',
124122
'pdfminer.*',
125123
'reportlab.*',
@@ -158,8 +156,8 @@ quote-style = "preserve"
158156

159157
[dependency-groups]
160158
dev = [
161-
"mypy>=1.13.0",
162-
"pymupdf>=1.24.14",
163-
"streamlit-pdf-viewer>=0.0.19",
164-
"streamlit>=1.40.2",
159+
"mypy>=1.13.0",
160+
"pymupdf>=1.24.14",
161+
"streamlit-pdf-viewer>=0.0.19",
162+
"streamlit>=1.40.2",
165163
]

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)