Skip to content

Commit

Permalink
Don't try to install dev dependencies in build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Dec 8, 2024
1 parent 15df9c3 commit 3c4b099
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.5.5 /uv /uvx /bin/
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy

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

FROM base

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.4.27"
version: "0.5.x"

- name: "Set up Python"
uses: actions/setup-python@v5
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Install Python packages
run: |
uv sync --extra test
uv sync --extra test --no-dev
- name: Report versions
run: |
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.4.27"
version: "0.5.x"

- name: "Set up Python"
uses: actions/setup-python@v5
Expand All @@ -147,7 +147,7 @@ jobs:

- name: Install Python packages
run: |
uv sync --extra test
uv sync --extra test --no-dev
- name: Report versions
run: |
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.4.27"
version: "0.5.x"

- name: "Set up Python"
uses: actions/setup-python@v5
Expand All @@ -202,7 +202,7 @@ jobs:
- name: Install Python packages
run: |
uv sync --extra test
uv sync --extra test --no-dev
- name: Test
run: |
Expand All @@ -227,7 +227,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.4.27"
version: "0.5.x"

- name: Make wheels and sdist
run: |
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ filterwarnings = [
[[tool.mypy.overrides]]
module = [
'pluggy',
'tqdm',
'coloredlogs',
'img2pdf',
'pdfminer.*',
'reportlab.*',
Expand Down Expand Up @@ -158,8 +156,8 @@ quote-style = "preserve"

[dependency-groups]
dev = [
"mypy>=1.13.0",
"pymupdf>=1.24.14",
"streamlit-pdf-viewer>=0.0.19",
"streamlit>=1.40.2",
"mypy>=1.13.0",
"pymupdf>=1.24.14",
"streamlit-pdf-viewer>=0.0.19",
"streamlit>=1.40.2",
]
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c4b099

Please sign in to comment.