This is a test setup for pydantic/pydantic#7689 against various armv7 bookworm setups.
Install Docker and Taskfile and then run tests with
PYDANTIC=<version> task armv7-[pi-|piwheels-]bookworm
If you see something like:
Step 16/16 : RUN /test/bin/python /test/test.py
---> Running in 85df32f7a77a
foo='bar'
Removing intermediate container 85df32f7a77a
---> 2c5e979b3bf3
Successfully built 2c5e979b3bf3
the test succeeded and the installed pydantic version worked with the test code. If you see
Step 16/16 : RUN /test/bin/python /test/test.py
---> [Warning] The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64/v4) and no specific platform was requested
---> Running in 1c3af7b9a153
Traceback (most recent call last):
File "/test/test.py", line 9, in <module>
class TestModel(BaseModel):
File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
The command '/bin/sh -c /test/bin/python /test/test.py' returned a non-zero code: 1
task: Failed to run task "armv7-piwheels-bookworm": task: Failed to run task "build-image": exit status 1
it's a test failure and the installed pydantic version runs into pydantic/pydantic#7689.