-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use uv dev dependencies, fix test workflow
- Loading branch information
1 parent
7c5c3f1
commit b19e263
Showing
10 changed files
with
191 additions
and
185 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/__pycache__ | ||
**/*.egg-info | ||
/pkcs11/*.c | ||
/pkcs11/*.so | ||
/build/ | ||
/dist/ |
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG IMAGE=debian:stable | ||
FROM $IMAGE | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y gcc python3 python3-dev softhsm2 openssl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||
|
||
WORKDIR /test | ||
|
||
ADD uv.lock pyproject.toml . | ||
ADD pkcs11/ pkcs11/ | ||
ADD extern/ extern/ | ||
|
||
ENV UV_LINK_MODE=copy | ||
RUN --mount=type=cache,target=/root/.cache/uv \ | ||
uv sync --all-extras | ||
|
||
ADD tests/ tests/ | ||
CMD ["uv", "run", "pytest", "-v"] |
Oops, something went wrong.