Fokko opened a new issue, #4495:
URL: https://github.com/apache/iceberg-python/issues/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`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to