Skip to content

Commit 79a47ca

Browse files
committed
use python 3.12 everywhere to verify if this works
1 parent 5bfc865 commit 79a47ca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Dockerfile.build-whl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#syntax=docker/dockerfile:1
2-
FROM public.ecr.aws/docker/library/python:3.13-slim-bookworm
2+
FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm
33

44
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
55
&& apt update \

Dockerfile.use-whl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#syntax=docker/dockerfile:1
2-
FROM public.ecr.aws/docker/library/python:3.13-slim-bookworm
2+
FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm
33

44
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
55
&& apt update \
@@ -20,7 +20,7 @@ ENV PATH="/venv/bin:$PATH"
2020
RUN /venv/bin/python -m pip install pydantic==2.11.7
2121

2222
# install pydantic wasi to folder
23-
RUN pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: --index-url https://benbrandt.github.io/wasi-wheels/ --extra-index-url https://pypi.org/simple --upgrade pydantic_core pydantic
23+
RUN pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.12" --only-binary :all: --index-url https://benbrandt.github.io/wasi-wheels/ --extra-index-url https://pypi.org/simple --upgrade pydantic_core pydantic
2424

2525
RUN pip install componentize-py
2626
COPY ./app /app

component/build_pydantic.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export OPENSSL_INCLUDE_DIR=/usr/include/openssl
1111
export OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu/
1212
rustup target add wasm32-wasip1
1313
cargo run -- install-build-tools
14-
cargo run -- build pydantic-core 2.33.2 --python-versions py3-13
14+
cargo run -- build pydantic-core 2.33.2 --python-versions py3-12
1515
# cargo run -- generate-index benbrandt/wasi-wheels
1616

1717
# wheel place:
18-
# ./packages/pydantic_core-2.33.2/dist/pydantic_core-2.33.2-cp313-cp313-wasi_0_0_0_wasm32.whl
18+
# ./packages/pydantic_core-2.33.2/dist/pydantic_core-2.33.2-cp312-cp312-wasi_0_0_0_wasm32.whl
1919

2020
# install wheel
21-
pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: `find . -name \*cp313-cp313-wasi_0_0_0_wasm32.whl`
21+
pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.12" --only-binary :all: `find . -name \*cp312-cp312-wasi_0_0_0_wasm32.whl`

0 commit comments

Comments
 (0)