python3-protobuf depends on protobuf and python3-ctypes, and the build
depends on protobuf/host. The PyPI source builds its extension module
from the bundled upb and utf8_range sources, ships the generated _pb2
modules and never runs protoc. Nothing in it uses ctypes.
The extension module needs only libc, libgcc_s and libpython in the
snapshot builds of ten architectures. Depend on python3-light alone.
A clean aarch64 system then installs 9.0 MB less, because protobuf,
protobuf-lite, libstdcpp, libatomic, python3-ctypes and libffi are no
longer pulled in.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Add a CI test.sh that imports google.protobuf and round-trips the
Timestamp and Struct well-known types through SerializeToString and
ParseFromString, covering the descriptor pool, encoder and decoder
without needing a compiled .proto. Modelled on python-rpds-py's test.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>