# Test container with pqcrypto for ML-KEM / post-quantum crypto tests. # # pqcrypto ships pre-built wheels with CFFI bindings, so no native # compilation is needed (unlike the old liboqs two-stage build). # # Build: # podman build -t i2p-python-test:latest -f Containerfile.test . # # Usage: # podman run --rm -v "$(pwd):/app:Z" -w /app i2p-python-test:latest \ # bash -c "pip install -e '.[dev]' -q 2>/dev/null && python -m pytest tests/ -q" FROM python:3.11-slim # Install build dependencies for CFFI wheels RUN apt-get update -qq \ && apt-get install -y --no-install-recommends gcc libffi-dev \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir pqcrypto WORKDIR /app