Skip to content

Commit 60007ac

Browse files
committed
Some helpers to test Python 3.14 via docker
1 parent 1d85e8a commit 60007ac

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file is only needed for testing Python 3.14 whose image contains no cffi.
2+
# (As a comparison, the official python:3.13-slim works out of the box.)
3+
4+
# TODO: Can this Dockerfile use multi-stage build?
5+
# https://testdriven.io/tips/6da2d9c9-8849-4386-b7f9-13b28514ded8/
6+
FROM python:3.14.0a2-slim
7+
8+
RUN apt-get update && apt-get install -y \
9+
gcc \
10+
libffi-dev
11+

docker_run.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/bash
2+
IMAGE_NAME=msal:latest
3+
4+
docker build -t $IMAGE_NAME - < Dockerfile
5+
6+
echo "=== Integration Test for Python 3.14 which has no AppImage yet ==="
7+
echo "After seeing the bash prompt, run the following to test:"
8+
echo " pip install -e ."
9+
echo " pytest --capture=no -s tests/chosen_test_file.py"
10+
docker run --rm -it \
11+
--privileged \
12+
-w /home -v $PWD:/home \
13+
$IMAGE_NAME \
14+
$@
15+

0 commit comments

Comments
 (0)