You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Follow-ups for stdlib compression.zstd and CPython 3.15 wheels #4495
Follow-up to #4395, which switched to the stdlib compression.zstd on Python 3.14+ and started building cp315 wheels. Remaining items from the review:
Fall back when compression.zstd is missing. PEP 784 makes compression.zstd optional; it is only built when libzstd is available (e.g. pyenv building 3.14 without the libzstd headers). On such a build the import in pyiceberg/avro/codecs/zstandard_codec.py raises at module load, and because pyiceberg/avro/codecs/__init__.py imports ZStandardCodec eagerly, import pyiceberg.manifest fails, so reading any manifest breaks. With the python_version < '3.14' marker users also can't recover by installing zstandard. Proposal: try compression.zstd, then zstandard, then the stub that raises on use. Same for pyiceberg/table/puffin.py; ideally the import switch lives in one small shared module.
Smoke test the cp315 wheels.CIBW_TEST_SKIP: "cp315-*" means we publish cp315 wheels where the compiled decoder_fast extension has never been imported. Add a cibuildwheel override for cp315-* that runs a minimal test without the dev group (e.g. import pyiceberg.avro.decoder_fast and read a small zstd Avro file) until pyarrow and numpy ship cp315 wheels, then drop the skip.
Exercise 3.15 in CI. Add the Programming Language :: Python :: 3.15 classifier to pyproject.toml and add 3.15 to lint-and-unit-test in python-ci.yml.
Opened #4498 for the first item here: the shared pyiceberg.utils.zstd fallback (stdlib compression.zstd, then the zstandard package, raising only on use when neither is available), used by both the Avro codec and Puffin.
243 tests passed twice (puffin, avro, manifest); the new no-backend import test fails on base. The cp315 wheel smoke test and 3.15 CI items are not covered by that PR.
Activity
PCTEJA commentedon Nov 26, 2026
Opened #4498 for the first item here: the shared
pyiceberg.utils.zstdfallback (stdlibcompression.zstd, then thezstandardpackage, raising only on use when neither is available), used by both the Avro codec and Puffin.243 tests passed twice (puffin, avro, manifest); the new no-backend import test fails on base. The cp315 wheel smoke test and 3.15 CI items are not covered by that PR.
PCTEJA commentedon Nov 26, 2026
@Fokko, could you please review #4498 when you are free? Thank you!